kabc
resource.cpp
154Resource::ConstIterator &Resource::ConstIterator::operator=( const Resource::ConstIterator &other )
a QValueList of Addressee, with sorting functionality
Definition: addresseelist.h:289
QString identifier() const
Returns the distribution list's identifier.
Definition: distributionlist.cpp:126
virtual ConstIterator & operator=(const ConstIterator &)
Assignment operator.
Definition: resource.cpp:154
virtual const Addressee & operator*() const
Constant Dereference operator.
Definition: resource.cpp:168
virtual bool operator!=(const ConstIterator &it) const
Inequality operator.
Definition: resource.cpp:202
virtual bool operator==(const ConstIterator &it) const
Equality operator.
Definition: resource.cpp:197
Definition: resource.h:65
virtual void insertDistributionList(DistributionList *list)
Adds a distribution list into this resource.
Definition: resource.cpp:366
Ticket * createTicket(Resource *)
Factory method, just creates and returns a new Ticket for the given resource.
Definition: resource.cpp:279
void savingFinished(Resource *resource)
This signal is emitted when the resource has finished the saving of all addressees from the internal ...
virtual QList< DistributionList * > allDistributionLists()
Returns a list of all distribution lists of this resource.
Definition: resource.cpp:415
virtual ConstIterator end() const
Returns an iterator pointing to the last addressee in the resource.
Definition: resource.cpp:257
virtual DistributionList * findDistributionListByName(const QString &name, Qt::CaseSensitivity caseSensitivity=Qt::CaseSensitive)
Returns a distribution list with the given name or 0.
Definition: resource.cpp:390
virtual QStringList allDistributionListNames() const
Returns a list of names of all distribution lists of this resource.
Definition: resource.cpp:420
Addressee::Map mAddrMap
A mapping from KABC UIDs to the respective addressee.
Definition: resource.h:527
virtual DistributionList * findDistributionListByIdentifier(const QString &identifier)
Returns a distribution list for the given identifier or 0.
Definition: resource.cpp:385
virtual Addressee::List findByName(const QString &name)
Searches all addressees which match the specified name.
Definition: resource.cpp:305
virtual void removeAddressee(const Addressee &addr)
Removes an addressee from resource.
Definition: resource.cpp:289
void savingError(Resource *resource, const QString &msg)
This signal is emitted when an error occurred during saving the addressees from the internal cache to...
virtual void clear()
Removes all addressees and distribution lists from the resource.
Definition: resource.cpp:354
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
DistributionListMap mDistListMap
A mapping from unique identifiers to the respective distribution list.
Definition: resource.h:532
virtual Addressee::List findByCategory(const QString &category)
Searches all addressees which belongs to the specified category.
Definition: resource.cpp:339
virtual Addressee::List findByEmail(const QString &email)
Searches all addressees which match the specified email address.
Definition: resource.cpp:320
virtual void writeConfig(KConfigGroup &group)
Writes the resource specific config to file.
Definition: resource.cpp:264
void loadingError(Resource *resource, const QString &msg)
This signal is emitted when an error occurred during loading the addressees from the backend to the i...
void loadingFinished(Resource *resource)
This signal is emitted when the resource has finished the loading of all addressees from the backend ...
virtual ConstIterator begin() const
Returns an iterator pointing to the first addressee in the resource.
Definition: resource.cpp:242
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
QString identifier() const
virtual QString resourceName() const
virtual void writeConfig(KConfigGroup &group)
QMap< QString, DistributionList * > DistributionListMap
Typedef for map from IDs to respective DistribtionList.
Definition: distributionlist.h:205
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.