21 #ifndef KABC_RESOURCEDIR_H
22 #define KABC_RESOURCEDIR_H
24 #include <tdeconfig.h>
25 #include <kdirwatch.h>
27 #include <sys/types.h>
29 #include <tdeabc/resource.h>
41 class KABC_EXPORT ResourceDir :
public Resource
47 ResourceDir(
const TQString &path,
const TQString &type =
"vcard" );
52 virtual bool doOpen();
53 virtual void doClose();
55 virtual Ticket *requestSaveTicket();
56 virtual void releaseSaveTicket( Ticket* );
59 virtual bool asyncLoad();
60 virtual bool save( Ticket* ticket );
61 virtual bool asyncSave( Ticket* ticket );
66 void setPath(
const TQString & );
71 TQString path()
const;
76 void setFormat(
const TQString &format );
81 TQString format()
const;
87 virtual void removeAddressee(
const Addressee& addr );
93 void init(
const TQString &path,
const TQString &format );
96 FormatPlugin *mFormat;
101 TQString mFormatName;
107 class ResourceDirPrivate;
108 ResourceDirPrivate *d;
static data, shared by ALL addressee objects
const TDEShortcut & save()