#include <addressbook.h>
Inheritance diagram for KABC::AddressBook:

Signals | |
| void | addressBookChanged (AddressBook *) |
| void | addressBookLocked (AddressBook *) |
| void | addressBookUnlocked (AddressBook *) |
Public Methods | |
| AddressBook () | |
| Ticket * | requestSaveTicket (Resource *resource=0) |
| bool | load () |
| bool | save (Ticket *ticket) |
| Iterator | begin () |
| ConstIterator | begin () const |
| Iterator | end () |
| ConstIterator | end () const |
| void | clear () |
| void | insertAddressee (const Addressee &) |
| void | removeAddressee (const Addressee &) |
| void | removeAddressee (const Iterator &) |
| Iterator | find (const Addressee &) |
| Addressee | findByUid (const QString &) |
| Addressee::List | findByName (const QString &) |
| Addressee::List | findByEmail (const QString &) |
| Addressee::List | findByCategory (const QString &) |
| virtual QString | identifier () |
| void | dump () const |
| Field::List | fields (int category=Field::All) |
| bool | addCustomField (const QString &label, int category=Field::All, const QString &key=QString::null, const QString &app=QString::null) |
| bool | addResource (Resource *) |
| bool | removeResource (Resource *) |
| QPtrList< Resource > | resources () |
| void | setErrorHandler (ErrorHandler *) |
| void | error (const QString &) |
| void | cleanUp () |
This class provides access to a collection of address book entries.
Definition at line 41 of file addressbook.h.
|
|
Constructs a address book object.
|
|
||||||||||||||||||||
|
Add custom field to address book.
|
|
|
Add address book resource. |
|
|
Emitted, when the address book has changed on disk. |
|
|
Emitted, when the address book has been locked for writing. |
|
|
Emitted, when the address book has been unlocked. |
|
|
Returns a const iterator for first entry of address book. |
|
|
Returns a iterator for first entry of address book. |
|
|
Query all resources to clean up their lock files |
|
|
Removes all entries from address book. |
|
|
Used for debug output. |
|
|
Returns a const iterator for first entry of address book. |
|
|
Returns a iterator for first entry of address book. |
|
|
Shows gui independend error messages. |
|
|
Return list of all Fields known to the address book which are associated with the given field category. |
|
|
Find the specified entry in address book. Returns end(), if the entry couldn't be found. |
|
|
Find all entries wich have the specified category in the address book. Returns an empty list, if no entries couldn't be found. |
|
|
Find all entries with the specified email address in the address book. Returns an empty list, if no entries couldn't be found. |
|
|
Find all entries with the specified name in the address book. Returns an empty list, if no entries couldn't be found. |
|
|
Find the entry specified by an unique id. Returns an empty Addressee object, if the address book does not contain an entry with this id. |
|
|
Return a string identifying this addressbook. |
|
|
Insert an Addressee object into address book. If an object with the same unique id already exists in the address book it it replaced by the new one. If not the new object is appended to the address book. |
|
|
Load address book from file. |
|
|
This is like removeAddressee() just above, with the difference that the first element is a iterator, returned by begin(). |
|
|
Removes entry from the address book. |
|
|
Remove address book resource. |
|
|
Requests a ticket for saving the addressbook. Calling this function locks the addressbook for all other processes. If the address book is already locked the function returns 0. You need the returned Ticket object for calling the save() function.
|
|
|
Return pointer list of all resources. |
|
|
Save address book. The address book is saved to the file, the Ticket object has been requested for by requestSaveTicket().
|
|
|
Set the |
1.2.18