stdaddressbook.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KABC_STDADDRESSBOOK_H
00022 #define KABC_STDADDRESSBOOK_H
00023
00024 #include "addressbook.h"
00025
00026 namespace KABC {
00027
00056 class KABC_EXPORT StdAddressBook : public AddressBook
00057 {
00058 public:
00059
00063 ~StdAddressBook();
00064
00069 static StdAddressBook *self();
00070
00079 static StdAddressBook *self( bool asynchronous );
00080
00086 static bool save() KDE_DEPRECATED;
00087
00091 static void handleCrash() KDE_DEPRECATED;
00092
00096 static QString fileName();
00097
00101 static QString directoryName();
00102
00110 static void setAutomaticSave( bool state );
00111
00116 static void close();
00117
00122 static bool automaticSave();
00123
00129 Addressee whoAmI();
00130
00136 void setWhoAmI( const Addressee &addr );
00137
00138 protected:
00139 StdAddressBook();
00140 StdAddressBook( bool asynchronous );
00141
00142 void init( bool asynchronous );
00143 bool saveAll();
00144
00145 private:
00146 static StdAddressBook *mSelf;
00147 static bool mAutomaticSave;
00148 };
00149
00150 }
00151
00152 #endif
00153
|