resourcenet.h
00001 #ifndef KABC_RESOURCENET_H
00002 #define KABC_RESOURCENET_H
00003
00004 #include <kconfig.h>
00005
00006 #include <sys/types.h>
00007
00008 #include "resource.h"
00009
00010 class QTimer;
00011
00012 namespace KABC {
00013
00014 class FormatPlugin;
00015
00019 class ResourceNet : public QObject, public Resource
00020 {
00021 Q_OBJECT
00022
00023 public:
00024 ResourceNet( AddressBook *, const KConfig * );
00025 ResourceNet( AddressBook *, const KURL &url, FormatPlugin *format=0 );
00026 ~ResourceNet();
00027
00028 bool open();
00029 void close();
00030
00031 Ticket *requestSaveTicket();
00032
00033 bool load();
00034 bool save( Ticket * );
00035
00039 void setUrl( const KURL & );
00040
00044 KURL url() const;
00045
00049 virtual QString identifier() const;
00050
00055 void removeAddressee( const Addressee& addr );
00056
00057 private:
00058 void init( const KURL &url, FormatPlugin *format );
00059
00060 FormatPlugin *mFormat;
00061
00062 KURL mUrl;
00063 };
00064
00065 }
00066 #endif
This file is part of the documentation for kdelibs Version 3.1.0.