KABC::ResourceFile Class Reference
#include <resourcefile.h>
Detailed Description
This resource allows access to a local file.
Definition at line 48 of file resourcefile.h.
Public Member Functions | |
ResourceFile (const KConfig *cfg) | |
ResourceFile (const QString &fileName, const QString &formatName="vcard") | |
~ResourceFile () | |
virtual void | writeConfig (KConfig *cfg) |
virtual bool | doOpen () |
virtual void | doClose () |
virtual Ticket * | requestSaveTicket () |
virtual void | releaseSaveTicket (Ticket *) |
virtual bool | load () |
virtual bool | asyncLoad () |
virtual bool | save (Ticket *ticket) |
virtual bool | asyncSave (Ticket *ticket) |
void | setFileName (const QString &) |
QString | fileName () const |
void | setFormat (const QString &name) |
QString | format () const |
virtual void | removeAddressee (const Addressee &addr) |
Protected Slots | |
void | fileChanged () |
Protected Member Functions | |
void | init (const QString &fileName, const QString &format) |
bool | lock (const QString &fileName) |
void | unlock (const QString &fileName) |
Constructor & Destructor Documentation
|
Constructor.
|
|
Construct file resource on file.
|
|
Destructor.
|
Member Function Documentation
|
Closes the file again.
|
|
Tries to open the file and checks for the proper format. This method should be called before load(). |
|
Return name of file used for loading and saving the address book.
|
|
Returns the format name.
|
|
Loads all addressees from file to the address book. Returns true if all addressees could be loaded otherwise false. |
|
Remove a addressee from its source. This method is mainly called by KABC::AddressBook. |
|
Requests a save ticket, that is used by save().
|
|
Saves all addresses from address book to file. Returns true if all addressees could be saved otherwise false.
|
|
Set name of file to be used for saving.
|
|
Sets a new format by name.
|
|
Writes the config back.
|
The documentation for this class was generated from the following file: