kabc
21#ifndef KABC_RESOURCEFILE_H
22#define KABC_RESOURCEFILE_H
24#include "kabc_file_core_export.h"
26#include "kabc/resource.h"
69 const QString &formatName = QLatin1String(
"vcard" ) );
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 & );
125 QString fileName()
const;
130 void setFormat(
const QString &name );
135 QString format()
const;
145 virtual void removeAddressee(
const Addressee &addr );
148 void emitLoadingFinished();
149 void emitSavingFinished();
152 void fileChanged(
const QString &path );
155 void init(
const QString &fileName,
const QString &format );
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...
This resource allows access to a local file.
Helper class for handling coordinated save of address books.
Class that holds a Calendar Url (FBURL/CALADRURI/CALURI)
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by
doxygen 1.9.5 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.