kabc
21 #ifndef KABC_RESOURCEFILE_H
22 #define KABC_RESOURCEFILE_H
24 #include "kabc_file_core_export.h"
26 #include "kabc/resource.h"
29 #include <kdirwatch.h>
31 #include <sys/types.h>
79 virtual void writeConfig( KConfigGroup &group );
85 virtual bool doOpen();
90 virtual void doClose();
95 virtual Ticket *requestSaveTicket();
97 virtual void releaseSaveTicket(
Ticket *ticket );
105 virtual bool asyncLoad();
113 virtual bool save(
Ticket *ticket );
115 virtual bool asyncSave(
Ticket *ticket );
120 void setFileName(
const QString & );
130 void setFormat(
const QString &name );
145 virtual void removeAddressee(
const Addressee &addr );
148 void emitLoadingFinished();
149 void emitSavingFinished();
152 void fileChanged(
const QString &path );
157 bool lock(
const QString &fileName );
158 void unlock(
const QString &fileName );
161 bool clearAndLoad(
QFile *file );
162 void saveToFile(
QFile *file );
163 bool createLocalTempFile();
164 void deleteLocalTempFile();
165 void deleteStaleTempFile();
166 bool hasTempFile()
const {
return mTempFile != 0; }
167 bool loadDistributionLists();
168 void saveDistributionLists();
179 KTemporaryFile *mTempFile;
183 class ResourceFilePrivate;
184 ResourceFilePrivate *d;
This class provides locking functionality for a file, directory or an arbitrary string-represented re...
Helper class for handling coordinated save of address books.
This resource allows access to a local file.
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
KDE's Doxygen guidelines are available online.