kabc
resourcefile.cpp
Entry::List entries() const
Return list of entries belonging to this distribution list.
Definition: distributionlist.cpp:192
void emitAddressBookChanged()
Emits the signal addressBookChanged() using this as the parameter.
Definition: addressbook.h:597
virtual void clear()
Removes all addressees and distribution lists from the resource.
Definition: resource.cpp:354
bool remove()
This class provides locking functionality for a file, directory or an arbitrary string-represented re...
Definition: lock.h:34
virtual bool save(Ticket *ticket)
Saves all addresses from address book to file.
Definition: resourcefile.cpp:245
void insertEntry(const Addressee &, const QString &email=QString())
Insert an entry into this distribution list.
Definition: distributionlist.cpp:141
static QString fileName()
Returns the default file name for vcard-based addressbook.
Definition: stdaddressbook.cpp:64
virtual Ticket * requestSaveTicket()
Requests a save ticket, that is used by save()
Definition: resourcefile.cpp:131
QString join(const QString &separator) const
bool exists() const
void clear()
Addressee findByUid(const QString &uid) const
Searches an addressee with the specified unique identifier.
Definition: addressbook.cpp:613
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
bool isNull() const
QString fileName() const
Return name of file used for loading and saving the address book.
Definition: resourcefile.cpp:412
const char * name() const
QString number(int n, int base)
void append(const T &value)
virtual bool load()
Loads all addressees from file to the address book.
Definition: resourcefile.cpp:203
void savingFinished(Resource *resource)
This signal is emitted when the resource has finished the saving of all addressees from the internal ...
QString identifier() const
bool isEmpty() const
virtual bool doOpen()
Tries to open the file and checks for the proper format.
Definition: resourcefile.cpp:164
Definition: contactgrouptool.h:30
virtual void saveAll(AddressBook *, Resource *, QFile *file)=0
Save whole addressbook to file.
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
virtual bool loadAll(AddressBook *, Resource *, QFile *file)=0
Load whole addressbook from file.
QString identifier() const
Returns the distribution list's identifier.
Definition: distributionlist.cpp:126
iterator end()
virtual bool readOnly() const
virtual qint64 size() const
virtual void close()
void loadingFinished(Resource *resource)
This signal is emitted when the resource has finished the loading of all addressees from the backend ...
virtual bool asyncSave(Ticket *ticket)
Saves all addressees asynchronously.
Definition: resourcefile.cpp:273
void emitAddressBookUnlocked()
Emits the signal addressBookUnlocked() using this as the parameter.
Definition: addressbook.h:593
virtual void removeAddressee(const Addressee &addr)
Remove a addressee from its source.
Definition: resourcefile.cpp:466
Definition: resource.h:64
void setFileName(const QString &)
Set name of file to be used for saving.
Definition: resourcefile.cpp:399
QDate currentDate()
typedef ConstIterator
bool isWritable() const
virtual void writeConfig(KConfigGroup &group)
Writes the config back.
Definition: resourcefile.cpp:118
Ticket * createTicket(Resource *)
Factory method, just creates and returns a new Ticket for the given resource.
Definition: resource.cpp:279
DistributionListMap mDistListMap
A mapping from unique identifiers to the respective distribution list.
Definition: resource.h:532
void emitAddressBookLocked()
Emits the signal addressBookLocked() using this as the parameter.
Definition: addressbook.h:589
const_iterator constEnd() const
const_iterator constBegin() const
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
virtual bool checkFormat(QFile *file) const =0
Checks if given file contains the right format.
Addressee::Map mAddrMap
A mapping from KABC UIDs to the respective addressee.
Definition: resource.h:527
virtual void releaseSaveTicket(Ticket *ticket)
Releases the ticket previousely requested with requestSaveTicket().
Definition: resourcefile.cpp:154
iterator begin()
virtual void writeConfig(KConfigGroup &group)
Writes the resource specific config to file.
Definition: resource.cpp:264
int remove(const Key &key)
singleShot
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:39 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:39 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.