KABC::StdAddressBook Class Reference
Standard KDE address book. More...
#include <stdaddressbook.h>
Inheritance diagram for KABC::StdAddressBook:

Static Public Methods | |
AddressBook * | self () |
Return the standard addressbook object. | |
AddressBook * | self (bool onlyFastResources) |
This is the same as above, but with specified behaviour of resource loading. | |
bool | save () |
Save the standard address book to disk. | |
QString | fileName () |
Returns the default file name for vcard-based addressbook. | |
QString | directoryName () |
Returns the default directory name for vcard-based addressbook. | |
void | setAutomaticSave (bool enable) |
Set the automatic save property of the address book. | |
void | close () |
Closes the address book. | |
bool | automaticSave () |
Returns whether the address book is saved at destruction time. |
Detailed Description
Standard KDE address book.This class provides access to the standard KDE address book shared by all applications.
It's implemented as a singleton. Use self() to get the address book object.
Example:
KABC::AddressBook *ab = KABC::StdAddressBook::self(); if ( !ab->load() ) { // error } KABC::AddressBook::Iterator it; for ( it = ab->begin(); it != ab->end(); ++it ) { kdDebug() << "UID=" << (*it).uid() << endl; // do some other stuff } KABC::StdAddressBook::save();
Definition at line 56 of file stdaddressbook.h.
Member Function Documentation
|
Return the standard addressbook object.
Definition at line 85 of file stdaddressbook.cpp. Referenced by save(). |
|
This is the same as above, but with specified behaviour of resource loading.
Definition at line 95 of file stdaddressbook.cpp. |
|
Save the standard address book to disk.
Definition at line 105 of file stdaddressbook.cpp. References QPtrList::at(), QPtrList::count(), KABC::AddressBook::deleteRemovedAddressees(), KABC::AddressBook::error(), KABC::AddressBook::requestSaveTicket(), KABC::AddressBook::resources(), KABC::AddressBook::save(), and self(). |
|
Returns the default file name for vcard-based addressbook.
Definition at line 75 of file stdaddressbook.cpp. |
|
Returns the default directory name for vcard-based addressbook.
Definition at line 80 of file stdaddressbook.cpp. |
|
Set the automatic save property of the address book.
If Definition at line 212 of file stdaddressbook.cpp. |
|
Closes the address book. Depending on automaticSave() it will save the address book first. Definition at line 206 of file stdaddressbook.cpp. |
|
Returns whether the address book is saved at destruction time. See also setAutomaticSave(). Definition at line 217 of file stdaddressbook.cpp. |
The documentation for this class was generated from the following files: