21 #ifndef KABC_RESOURCENET_H
22 #define KABC_RESOURCENET_H
24 #include <tdeconfig.h>
26 #include <sys/types.h>
28 #include <tdeabc/resource.h>
45 class KABC_EXPORT ResourceNet :
public Resource
51 ResourceNet(
const KURL &url,
const TQString &format );
56 virtual bool doOpen();
57 virtual void doClose();
59 virtual Ticket *requestSaveTicket();
60 virtual void releaseSaveTicket( Ticket* );
63 virtual bool asyncLoad();
64 virtual bool save( Ticket* ticket );
65 virtual bool asyncSave( Ticket* ticket );
70 void setUrl(
const KURL & );
80 void setFormat(
const TQString &name );
85 TQString format()
const;
88 void init(
const KURL &url,
const TQString &format );
91 void downloadFinished( TDEIO::Job* );
92 void uploadFinished( TDEIO::Job* );
96 bool clearAndLoad( TQFile *file );
97 void saveToFile( TQFile *file );
98 bool hasTempFile()
const {
return mTempFile != 0; }
99 void abortAsyncLoading();
100 void abortAsyncSaving();
101 bool createLocalTempFile();
102 void deleteLocalTempFile();
103 void deleteStaleTempFile();
105 FormatPlugin *mFormat;
106 TQString mFormatName;
111 class ResourceNetPrivate;
112 ResourceNetPrivate *d;
static data, shared by ALL addressee objects
const TDEShortcut & save()