21 #ifndef KABC_RESOURCEFILE_H
22 #define KABC_RESOURCEFILE_H
24 #include <tdeconfig.h>
25 #include <kdirwatch.h>
27 #include <sys/types.h>
29 #include <tdeabc/resource.h>
34 class ResourceConfigWidget;
55 ResourceFile(
const TQString &fileName,
const TQString &formatName =
"vcard" );
65 virtual void writeConfig(
TDEConfig *cfg );
71 virtual bool doOpen();
76 virtual void doClose();
81 virtual Ticket *requestSaveTicket();
83 virtual void releaseSaveTicket(
Ticket* );
91 virtual bool asyncLoad();
99 virtual bool save(
Ticket *ticket );
101 virtual bool asyncSave(
Ticket *ticket );
106 void setFileName(
const TQString & );
111 TQString fileName()
const;
116 void setFormat(
const TQString &name );
121 TQString format()
const;
127 virtual void removeAddressee(
const Addressee& addr );
130 void emitLoadingFinished();
131 void emitLoadingError();
132 void emitSavingFinished();
133 void emitSavingError();
139 void init(
const TQString &fileName,
const TQString &format );
141 bool lock(
const TQString &fileName );
142 void unlock(
const TQString &fileName );
146 TQString mFormatName;
156 class ResourceFilePrivate;
157 ResourceFilePrivate *d;
This class provides locking functionality for a file, directory or an arbitrary string-represented re...
This resource allows access to a local file.
Helper class for handling coordinated save of address books.
static data, shared by ALL addressee objects