kabc
21 #ifndef KABC_RESOURCEFILE_H
22 #define KABC_RESOURCEFILE_H
24 #include "kabc/kabc_export.h"
25 #include "kabc/resource.h"
28 #include <kdirwatch.h>
30 #include <sys/types.h>
68 const QString &formatName = QLatin1String(
"vcard" ) );
78 virtual void writeConfig( KConfigGroup &group );
84 virtual bool doOpen();
89 virtual void doClose();
94 virtual Ticket *requestSaveTicket();
96 virtual void releaseSaveTicket(
Ticket *ticket );
104 virtual bool asyncLoad();
112 virtual bool save(
Ticket *ticket );
114 virtual bool asyncSave(
Ticket *ticket );
119 void setFileName(
const QString & );
124 QString fileName()
const;
129 void setFormat(
const QString &name );
134 QString format()
const;
144 virtual void removeAddressee(
const Addressee &addr );
147 void emitLoadingFinished();
148 void emitSavingFinished();
151 void fileChanged(
const QString &path );
154 void init(
const QString &fileName,
const QString &format );
156 bool lock(
const QString &fileName );
157 void unlock(
const QString &fileName );
160 bool clearAndLoad( QFile *file );
161 void saveToFile( QFile *file );
162 bool createLocalTempFile();
163 void deleteLocalTempFile();
164 void deleteStaleTempFile();
165 bool hasTempFile()
const {
return mTempFile != 0; }
166 bool loadDistributionLists();
167 void saveDistributionLists();
178 KTemporaryFile *mTempFile;
182 class ResourceFilePrivate;
183 ResourceFilePrivate *d;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:29:41 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.