Diffstat (limited to 'kabc/plugins/qtopia/resourceqtopia.h') (more/less context) (show whitespace changes)
-rw-r--r-- | kabc/plugins/qtopia/resourceqtopia.h | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/kabc/plugins/qtopia/resourceqtopia.h b/kabc/plugins/qtopia/resourceqtopia.h index bf9dd45..90ab1f4 100644 --- a/kabc/plugins/qtopia/resourceqtopia.h +++ b/kabc/plugins/qtopia/resourceqtopia.h | |||
@@ -38,2 +38,3 @@ $Id$ | |||
38 | 38 | ||
39 | class AddressBookAccess; | ||
39 | 40 | ||
@@ -59,3 +60,3 @@ public: | |||
59 | */ | 60 | */ |
60 | ResourceQtopia( const KConfig *cfg ); | 61 | ResourceQtopia( const KConfig *cfg, bool syncable ); |
61 | 62 | ||
@@ -64,3 +65,3 @@ public: | |||
64 | */ | 65 | */ |
65 | ResourceQtopia( const QString &fileName ); | 66 | ResourceQtopia( const QString &fileName, bool syncable ); |
66 | 67 | ||
@@ -107,22 +108,27 @@ public: | |||
107 | /** | 108 | /** |
109 | * Remove a addressee from its source. | ||
110 | * This method is mainly called by KABC::AddressBook. | ||
111 | */ | ||
112 | virtual void removeAddressee( const Addressee& addr ); | ||
113 | |||
114 | /** | ||
108 | * Set name of file to be used for saving. | 115 | * Set name of file to be used for saving. |
109 | */ | 116 | */ |
110 | void setFileName( const QString & ); | 117 | virtual void setFileName( const QString & ); |
111 | 118 | ||
112 | /** | 119 | /** |
113 | * Return name of file used for loading and saving the address book. | 120 | * This method is called by an error handler if the application |
121 | * crashed | ||
114 | */ | 122 | */ |
115 | QString fileName() const; | 123 | virtual void cleanUp(); |
116 | 124 | ||
117 | /** | 125 | /** |
118 | * Remove a addressee from its source. | 126 | * This method returns the number of elements that are currently in the resource. |
119 | * This method is mainly called by KABC::AddressBook. | ||
120 | */ | 127 | */ |
121 | virtual void removeAddressee( const Addressee& addr ); | 128 | virtual int count() const; |
122 | 129 | ||
123 | /** | 130 | /** |
124 | * This method is called by an error handler if the application | 131 | * This method removes all elements from the resource!! (Not from the addressbook) |
125 | * crashed | ||
126 | */ | 132 | */ |
127 | virtual void cleanUp(); | 133 | virtual bool clear(); |
128 | 134 | ||
@@ -138,6 +144,5 @@ protected: | |||
138 | private: | 144 | private: |
145 | AddressBookAccess* mAccess; | ||
139 | QtopiaConverter* mConverter; | 146 | QtopiaConverter* mConverter; |
140 | 147 | ||
141 | QString mFileName; | ||
142 | |||
143 | QString mLockUniqueName; | 148 | QString mLockUniqueName; |