AddressWidget Class Reference

[kab Index] [kab Hierarchy] [Headers]


#include <kab.h>

Inherits: QWidget (qt), AddressBook

Public Members

Public Slots

Protected Members

Signals


bool emailAddress(const string& key, string& address, bool select=true) [public]

This method returns an email address. It is rather the first address or a user selection, if select is true. The method returns false if there is no entry with the given key or the entry has no email address. In the latter case, "address" is not modified. If select is true, the method may also return false if the user rejected the dialog.

void currentChanged() [public]

currentChanged() will be called by AddressBook-objects if the currently selected entry has been changed.

bool updateDB() [public]

updateDB() is called at the program startup. It has to do adifficult task: if the database file the user has used before has been created by an earlier version of kab, it might possibly use some fields that have changed its meaning or are no more supported. updateDB() will update the data in the database to the new format. It will use the version tag in the configuration section for this.

bool sendEmail(const string& address, const string& subject="") [public]

sendEmail sends an email to the address given.

void updateSelector() [public]

Synchronize selector combobox and addressbook contents.


Documentation generated by tasin@cd1 on Die Nov 30 17:32:39 CET 1999
Kdoc