author | ulf69 <ulf69> | 2004-08-02 18:32:08 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-02 18:32:08 (UTC) |
commit | 863c4c3678e59ef125c08c00e9532ded5b540f67 (patch) (unidiff) | |
tree | 449428c45689ffe10ff1ce4caa18f959c4dfe402 /kabc/plugins/sharpdtm/resourcesharpdtm.h | |
parent | 983127ce46c9ff6663d08dedd450da3fe7dd549b (diff) | |
download | kdepimpi-863c4c3678e59ef125c08c00e9532ded5b540f67.zip kdepimpi-863c4c3678e59ef125c08c00e9532ded5b540f67.tar.gz kdepimpi-863c4c3678e59ef125c08c00e9532ded5b540f67.tar.bz2 |
added support for syncprofiles for resources and export/import capabilities
Diffstat (limited to 'kabc/plugins/sharpdtm/resourcesharpdtm.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | kabc/plugins/sharpdtm/resourcesharpdtm.h | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/kabc/plugins/sharpdtm/resourcesharpdtm.h b/kabc/plugins/sharpdtm/resourcesharpdtm.h index d2e2a52..f495e9d 100644 --- a/kabc/plugins/sharpdtm/resourcesharpdtm.h +++ b/kabc/plugins/sharpdtm/resourcesharpdtm.h | |||
@@ -2,3 +2,3 @@ | |||
2 | This file is part of libkabc. | 2 | This file is part of libkabc. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2004 Ulf Schenk |
4 | 4 | ||
@@ -58,3 +58,3 @@ public: | |||
58 | */ | 58 | */ |
59 | ResourceSharpDTM( const KConfig *cfg ); | 59 | ResourceSharpDTM( const KConfig *cfg, bool syncable ); |
60 | 60 | ||
@@ -63,3 +63,3 @@ public: | |||
63 | */ | 63 | */ |
64 | ResourceSharpDTM( const QString &fileName ); | 64 | ResourceSharpDTM( const QString &fileName, bool syncable ); |
65 | 65 | ||
@@ -106,22 +106,28 @@ public: | |||
106 | /** | 106 | /** |
107 | * Remove a addressee from its source. | ||
108 | * This method is mainly called by KABC::AddressBook. | ||
109 | */ | ||
110 | virtual void removeAddressee( const Addressee& addr ); | ||
111 | |||
112 | /** | ||
107 | * Set name of file to be used for saving. | 113 | * Set name of file to be used for saving. |
108 | */ | 114 | */ |
109 | void setFileName( const QString & ); | 115 | virtual void setFileName( const QString & ); |
110 | 116 | ||
111 | /** | 117 | /** |
112 | * Return name of file used for loading and saving the address book. | 118 | * This method is called by an error handler if the application |
119 | * crashed | ||
113 | */ | 120 | */ |
114 | QString fileName() const; | 121 | virtual void cleanUp(); |
115 | 122 | ||
116 | /** | 123 | /** |
117 | * Remove a addressee from its source. | 124 | * This method returns the number of elements that are currently in the resource. |
118 | * This method is mainly called by KABC::AddressBook. | ||
119 | */ | 125 | */ |
120 | virtual void removeAddressee( const Addressee& addr ); | 126 | virtual int count() const; |
121 | 127 | ||
122 | /** | 128 | /** |
123 | * This method is called by an error handler if the application | 129 | * This method removes all elements from the resource!! (Not from the addressbook) |
124 | * crashed | ||
125 | */ | 130 | */ |
126 | virtual void cleanUp(); | 131 | virtual bool clear(); |
132 | |||
127 | 133 | ||
@@ -139,4 +145,2 @@ private: | |||
139 | 145 | ||
140 | QString mFileName; | ||
141 | |||
142 | QString mLockUniqueName; | 146 | QString mLockUniqueName; |