kaddressbook Library API Documentation

KABBasicLook Class Reference

This is a pure virtual base class that defines the interface for how to display and change entries of the KDE addressbook. More...

#include <look_basic.h>

Inheritance diagram for KABBasicLook:

QVBox KABDetailedView List of all members.

Public Slots

virtual void setReadOnly (bool state)

Signals

void entryChanged ()
void saveMe ()
void sendEmail (const QString &email)
void browse (const QString &url)

Public Methods

 KABBasicLook (QWidget *parent=0, const char *name=0)
virtual void setAddressee (const KABC::Addressee &addressee)
virtual KABC::Addressee addressee ()
virtual void restoreSettings (KConfig *)
virtual void saveSettings (KConfig *)
bool isReadOnly () const

Detailed Description

This is a pure virtual base class that defines the interface for how to display and change entries of the KDE addressbook.

This basic widget does not show anything in its client space. Derive it and implement its look and how the user may edit the entry.

The paintEvent() has to paint the whole widget, since repaint() calls will not delete the widgets background.

Definition at line 44 of file look_basic.h.


Constructor & Destructor Documentation

KABBasicLook::KABBasicLook QWidget   parent = 0,
const char *    name = 0
 

The constructor.

Definition at line 28 of file look_basic.cpp.


Member Function Documentation

void KABBasicLook::setAddressee const KABC::Addressee &    addressee [virtual]
 

Set the entry.

It will be displayed automatically.

Reimplemented in KABDetailedView.

Definition at line 43 of file look_basic.cpp.

Referenced by KABDetailedView::setAddressee().

KABC::Addressee KABBasicLook::addressee   [virtual]
 

Get the current entry.

Definition at line 52 of file look_basic.cpp.

Referenced by KABDetailedView::setAddressee().

void KABBasicLook::restoreSettings KConfig *    [virtual]
 

Configure the view from the configuration file.

Reimplemented in KABDetailedView.

Definition at line 57 of file look_basic.cpp.

void KABBasicLook::saveSettings KConfig *    [virtual]
 

Save the view settings to the configuration file.

Definition at line 61 of file look_basic.cpp.

bool KABBasicLook::isReadOnly   const
 

Retrieve read-write state.

Definition at line 38 of file look_basic.cpp.

void KABBasicLook::entryChanged   [signal]
 

This signal is emitted when the user changed the entry.

void KABBasicLook::saveMe   [signal]
 

This signal indicates that the entry needs to be changed immidiately in the database.

This might be due to changes in values that are available in menus.

void KABBasicLook::sendEmail const QString   email [signal]
 

The user acticated the email address displayed.

This may happen by, for example, clicking on the displayed mailto-URL.

void KABBasicLook::browse const QString   url [signal]
 

The user activated one of the displayed HTTP URLs.

For example by clicking on the displayed homepage address.

void KABBasicLook::setReadOnly bool    state [virtual, slot]
 

Set read-write state.

Reimplemented in KABDetailedView.

Definition at line 33 of file look_basic.cpp.

Referenced by KABDetailedView::setReadOnly().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kaddressbook Library Version 3.2.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Sat May 1 11:38:53 2004 by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2003