kabc
addressbook.cpp
const Addressee * operator->() const
Arrow Dereference operator, provided for convenience.
Definition addressbook.cpp:230
Addressee * operator->()
Arrow Dereference operator, provided for convenience.
Definition addressbook.cpp:104
void insertAddressee(const Addressee &addr)
Insert an addressee into the address book.
Definition addressbook.cpp:546
Iterator find(const Addressee &addr)
Returns an iterator pointing to the specified addressee.
Definition addressbook.cpp:589
void savingFinished(Resource *resource)
Emitted when the asynchronous saving of one resource has finished after calling asyncSave().
bool asyncSave(Ticket *ticket)
Saves all addressees of one resource asynchronously.
Definition addressbook.cpp:399
void removeAddressee(const Addressee &addr)
Removes an addressee from the address book.
Definition addressbook.cpp:575
virtual QString identifier() const
Returns a string identifying this addressbook.
Definition addressbook.cpp:755
Addressee::List findByName(const QString &name) const
Searches all addressees which match the specified name.
Definition addressbook.cpp:638
bool addResource(Resource *resource)
Adds a resource to the address book.
Definition addressbook.cpp:831
Addressee::List allAddressees() const
Returns a list of all addressees in the address book.
Definition addressbook.cpp:626
void setStandardResource(Resource *resource)
Sets the resource manager's standard resource.
Definition addressbook.cpp:915
void releaseSaveTicket(Ticket *ticket)
Releases the ticket requested previously with requestSaveTicket().
Definition addressbook.cpp:535
Field::List fields(int category=Field::All) const
Returns a list of all Fields known to the address book which are associated with the given field cate...
Definition addressbook.cpp:769
DistributionList * findDistributionListByName(const QString &name, Qt::CaseSensitivity caseSensitivity=Qt::CaseSensitive)
Returns a distribution list with the given name or 0.
Definition addressbook.cpp:705
Ticket * requestSaveTicket(Resource *resource=0)
Requests a ticket for saving the addressbook.
Definition addressbook.cpp:513
bool loadingHasFinished() const
Returns true when the loading of the addressbook has finished, otherwise false.
Definition addressbook.cpp:930
bool addCustomField(const QString &label, int category=Field::All, const QString &key=QString(), const QString &app=QString()) const
Add custom field to address book.
Definition addressbook.cpp:790
DistributionList * findDistributionListByIdentifier(const QString &identifier)
Returns a distribution list for the given identifier or 0.
Definition addressbook.cpp:692
void resourceLoadingFinished(Resource *resource)
Handles loading success.
Definition addressbook.cpp:935
Addressee::List findByCategory(const QString &category) const
Searches all addressees which belongs to the specified category.
Definition addressbook.cpp:662
QStringList allDistributionListNames() const
Returns a list of names of all distribution lists of all resources of this address book.
Definition addressbook.cpp:731
Addressee::List findByEmail(const QString &email) const
Searches all addressees which match the specified email address.
Definition addressbook.cpp:650
Addressee findByUid(const QString &uid) const
Searches an addressee with the specified unique identifier.
Definition addressbook.cpp:613
void addressBookChanged(AddressBook *addressBook)
Emitted when one of the resources discovered a change in its backend or the asynchronous loading of a...
void setErrorHandler(ErrorHandler *errorHandler)
Sets the ErrorHandler, that is used by error() to provide GUI independent error messages.
Definition addressbook.cpp:895
QList< DistributionList * > allDistributionLists()
Returns a list of all distribution lists of all resources of this address book.
Definition addressbook.cpp:719
void resourceSavingFinished(Resource *resource)
Handles saving success.
Definition addressbook.cpp:945
Resource * standardResource()
Returns the addressbook resource manager's standard resource.
Definition addressbook.cpp:920
void loadingFinished(Resource *resource)
Emitted when the asynchronous loading of one resource has finished after calling asyncLoad().
void resourceLoadingError(Resource *resource, const QString &errMsg)
Handles loading errors.
Definition addressbook.cpp:952
ConstIterator begin() const
Returns an iterator pointing to the first addressee of address book.
Definition addressbook.cpp:446
bool removeResource(Resource *resource)
Removes a resource from the address book.
Definition addressbook.cpp:854
bool save(Ticket *ticket)
Saves all addressees of one resource synchronously.
Definition addressbook.cpp:384
void removeDistributionList(DistributionList *list)
Removes a distribution list from its associated resource.
Definition addressbook.cpp:683
void resourceSavingError(Resource *resource, const QString &errMsg)
Handles saving errors.
Definition addressbook.cpp:963
DistributionList * createDistributionList(const QString &name, Resource *resource=0)
Creates a distribution list with a given name storing it in a given resource.
Definition addressbook.cpp:674
ConstIterator end() const
Returns an iterator pointing to the last addressee of address book.
Definition addressbook.cpp:491
KRES::Manager< Resource > * resourceManager()
Returns the addressbook's resource manager.
Definition addressbook.cpp:925
a QValueList of Addressee, with sorting functionality
Definition addresseelist.h:289
void setResource(Resource *resource)
Set resource where the addressee is from.
Definition addressee.cpp:2147
This class prints the error messages to stderr via kError().
Definition errorhandler.h:59
Abstract class that provides displaying of error messages.
Definition errorhandler.h:40
static Field * createCustomField(const QString &label, int category, const QString &key, const QString &app)
Creates a custom field.
Definition field.cpp:623
Definition resource.h:65
virtual void releaseSaveTicket(Ticket *ticket)=0
Releases the ticket previousely requested with requestSaveTicket().
virtual void removeAddressee(const Addressee &addr)
Removes an addressee from resource.
Definition resource.cpp:289
virtual void insertAddressee(const Addressee &addr)
Insert an addressee into the resource.
Definition resource.cpp:284
virtual Addressee findByUid(const QString &uid)
Searches an addressee with the specified unique identifier.
Definition resource.cpp:294
virtual bool asyncSave(Ticket *ticket)
Saves all addressees asynchronously.
Definition resource.cpp:445
virtual void removeDistributionList(DistributionList *list)
Removes a distribution list from this resource.
Definition resource.cpp:373
Resource * resource()
Returns the resource for which this ticket has been created.
Definition resource.cpp:49
T * standardResource()
void readConfig(KConfig *cfg=0)
ActiveIterator activeBegin()
ActiveIterator activeEnd()
void setStandardResource(T *resource)
void add(Resource *resource)
void remove(Resource *resource)
bool open()
void close()
QDataStream & operator<<(QDataStream &stream, const Address &address)
Serializes the address object into the stream.
Definition address.cpp:680
QDataStream & operator>>(QDataStream &stream, Address &address)
Initializes the address object from the stream.
Definition address.cpp:688
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Jan 24 2024 00:00:00 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.