kabc
addressbook.cpp
674 DistributionList *AddressBook::createDistributionList( const QString &name, Resource *resource )
Ticket * requestSaveTicket(Resource *resource=0)
Requests a ticket for saving the addressbook.
Definition: addressbook.cpp:513
const Addressee * operator->() const
Arrow Dereference operator, provided for convenience.
Definition: addressbook.cpp:230
ConstIterator end() const
Returns an iterator pointing to the last addressee of address book.
Definition: addressbook.cpp:491
void addressBookChanged(AddressBook *addressBook)
Emitted when one of the resources discovered a change in its backend or the asynchronous loading of a...
void resourceLoadingError(Resource *resource, const QString &errMsg)
Handles loading errors.
Definition: addressbook.cpp:952
Abstract class that provides displaying of error messages.
Definition: errorhandler.h:39
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
bool removeResource(Resource *resource)
Removes a resource from the address book.
Definition: addressbook.cpp:854
virtual bool asyncSave(Ticket *ticket)
Saves all addressees asynchronously.
Definition: resource.cpp:445
QStringList allDistributionListNames() const
Returns a list of names of all distribution lists of all resources of this address book...
Definition: addressbook.cpp:731
a QValueList of Addressee, with sorting functionality
Definition: addresseelist.h:288
void removeAddressee(const Addressee &addr)
Removes an addressee from the address book.
Definition: addressbook.cpp:575
void setResource(Resource *resource)
Set resource where the addressee is from.
Definition: addressee.cpp:2147
bool asyncSave(Ticket *ticket)
Saves all addressees of one resource asynchronously.
Definition: addressbook.cpp:399
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
void releaseSaveTicket(Ticket *ticket)
Releases the ticket requested previously with requestSaveTicket().
Definition: addressbook.cpp:535
bool open()
Addressee * operator->()
Arrow Dereference operator, provided for convenience.
Definition: addressbook.cpp:104
bool addResource(Resource *resource)
Adds a resource to the address book.
Definition: addressbook.cpp:831
void loadingFinished(Resource *resource)
Emitted when the asynchronous loading of one resource has finished after calling asyncLoad().
Addressee::List findByCategory(const QString &category) const
Searches all addressees which belongs to the specified category.
Definition: addressbook.cpp:662
QString join(const QString &separator) const
virtual void insertAddressee(const Addressee &addr)
Insert an addressee into the resource.
Definition: resource.cpp:284
bool disconnect(const QObject *sender, const char *signal, const QObject *receiver, const char *method)
Addressee findByUid(const QString &uid) const
Searches an addressee with the specified unique identifier.
Definition: addressbook.cpp:613
void insertAddressee(const Addressee &addr)
Insert an addressee into the address book.
Definition: addressbook.cpp:546
bool isNull() const
KRES::Manager< Resource > * resourceManager()
Returns the addressbook's resource manager.
Definition: addressbook.cpp:925
QDataStream & operator<<(QDataStream &stream, const Address &address)
Serializes the address object into the stream.
Definition: address.cpp:680
This class prints the error messages to stderr via kError().
Definition: errorhandler.h:58
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
int count(const T &value) const
void append(const T &value)
virtual QString identifier() const
Returns a string identifying this addressbook.
Definition: addressbook.cpp:755
virtual void removeDistributionList(DistributionList *list)
Removes a distribution list from this resource.
Definition: resource.cpp:373
ConstIterator begin() const
Returns an iterator pointing to the first addressee of address book.
Definition: addressbook.cpp:446
bool isEmpty() const
Definition: contactgrouptool.h:30
void resourceLoadingFinished(Resource *resource)
Handles loading success.
Definition: addressbook.cpp:935
Iterator find(const Addressee &addr)
Returns an iterator pointing to the specified addressee.
Definition: addressbook.cpp:589
Resource * resource()
Returns the resource for which this ticket has been created.
Definition: resource.cpp:49
virtual void removeAddressee(const Addressee &addr)
Removes an addressee from resource.
Definition: resource.cpp:289
bool loadingHasFinished() const
Returns true when the loading of the addressbook has finished, otherwise false.
Definition: addressbook.cpp:930
Addressee::List allAddressees() const
Returns a list of all addressees in the address book.
Definition: addressbook.cpp:626
DistributionList * findDistributionListByIdentifier(const QString &identifier)
Returns a distribution list for the given identifier or 0.
Definition: addressbook.cpp:692
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
QDataStream & operator>>(QDataStream &stream, Address &address)
Initializes the address object from the stream.
Definition: address.cpp:688
QDateTime currentDateTime()
Addressee::List findByName(const QString &name) const
Searches all addressees which match the specified name.
Definition: addressbook.cpp:638
Definition: resource.h:64
virtual Addressee findByUid(const QString &uid)
Searches an addressee with the specified unique identifier.
Definition: resource.cpp:294
DistributionList * findDistributionListByName(const QString &name, Qt::CaseSensitivity caseSensitivity=Qt::CaseSensitive)
Returns a distribution list with the given name or 0.
Definition: addressbook.cpp:705
void savingFinished(Resource *resource)
Emitted when the asynchronous saving of one resource has finished after calling asyncSave().
typedef ConstIterator
virtual void releaseSaveTicket(Ticket *ticket)=0
Releases the ticket previousely requested with requestSaveTicket().
static Field * createCustomField(const QString &label, int category, const QString &key, const QString &app)
Creates a custom field.
Definition: field.cpp:623
void removeDistributionList(DistributionList *list)
Removes a distribution list from its associated resource.
Definition: addressbook.cpp:683
void setStandardResource(Resource *resource)
Sets the resource manager's standard resource.
Definition: addressbook.cpp:915
void prepend(const T &value)
void setErrorHandler(ErrorHandler *errorHandler)
Sets the ErrorHandler, that is used by error() to provide GUI independent error messages.
Definition: addressbook.cpp:895
Addressee::List findByEmail(const QString &email) const
Searches all addressees which match the specified email address.
Definition: addressbook.cpp:650
QList< Resource * > resources() const
Returns a list of all resources.
Definition: addressbook.cpp:879
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
bool save(Ticket *ticket)
Saves all addressees of one resource synchronously.
Definition: addressbook.cpp:384
Resource * standardResource()
Returns the addressbook resource manager's standard resource.
Definition: addressbook.cpp:920
void resourceSavingError(Resource *resource, const QString &errMsg)
Handles saving errors.
Definition: addressbook.cpp:963
void close()
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:38 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.