kabc
resourcedir.cpp
bool remove()
This class provides locking functionality for a file, directory or an arbitrary string-represented re...
Definition: lock.h:34
QString fileName() const
virtual bool save(Ticket *ticket)
Saves all addressees synchronously.
Definition: resourcedir.cpp:251
QChar separator()
Format * format(const QString &type)
Returns a pointer to a format object or a null pointer if format type doesn't exist.
Definition: formatfactory.cpp:145
void savingFinished(Resource *resource)
This signal is emitted when the resource has finished the saving of all addressees from the internal ...
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...
virtual void removeAddressee(const Addressee &addr)
Remove a addressee from its source.
Definition: resourcedir.cpp:327
bool isEmpty() const
static QString directoryName()
Returns the default directory name for vcard-based addressbook.
Definition: stdaddressbook.cpp:69
typedef Iterator
T & first()
iterator end()
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
iterator begin()
iterator end()
virtual void close()
void loadingFinished(Resource *resource)
This signal is emitted when the resource has finished the loading of all addressees from the backend ...
Definition: resourcedir.h:37
Definition: resource.h:64
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 QString resourceName() const
QStringList entryList(QFlags< QDir::Filter > filters, QFlags< QDir::SortFlag > sort) const
Ticket * createTicket(Resource *)
Factory method, just creates and returns a new Ticket for the given resource.
Definition: resource.cpp:279
typedef Iterator
void emitAddressBookLocked()
Emits the signal addressBookLocked() using this as the parameter.
Definition: addressbook.h:589
virtual void releaseSaveTicket(Ticket *ticket)
Releases the ticket previousely requested with requestSaveTicket().
Definition: resourcedir.cpp:170
virtual void writeConfig(KConfigGroup &group)
Writes the resource specific config to file.
Definition: resourcedir.cpp:134
QString path() const
Return path used for loading and saving the address book.
Definition: resourcedir.cpp:307
virtual bool asyncSave(Ticket *ticket)
Saves all addressees asynchronously.
Definition: resourcedir.cpp:284
QObject * parent() const
Addressee::Map mAddrMap
A mapping from KABC UIDs to the respective addressee.
Definition: resource.h:527
iterator begin()
virtual void writeConfig(KConfigGroup &group)
Writes the resource specific config to file.
Definition: resource.cpp:264
virtual Ticket * requestSaveTicket()
Request a ticket, you have to pass through save() to allow locking.
Definition: resourcedir.cpp:147
int remove(const Key &key)
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.