Diffstat (limited to 'kabc/plugins/sharpdtm/resourcesharpdtm.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | kabc/plugins/sharpdtm/resourcesharpdtm.cpp | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/kabc/plugins/sharpdtm/resourcesharpdtm.cpp b/kabc/plugins/sharpdtm/resourcesharpdtm.cpp index 31b99ca..7b909de 100644 --- a/kabc/plugins/sharpdtm/resourcesharpdtm.cpp +++ b/kabc/plugins/sharpdtm/resourcesharpdtm.cpp | |||
@@ -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 | ||
@@ -64,4 +64,4 @@ extern "C" | |||
64 | 64 | ||
65 | ResourceSharpDTM::ResourceSharpDTM( const KConfig *config ) | 65 | ResourceSharpDTM::ResourceSharpDTM( const KConfig *config, bool syncable ) |
66 | : Resource( config ), mConverter (0) | 66 | : Resource( config, syncable ), mConverter (0) |
67 | { | 67 | { |
@@ -73,4 +73,4 @@ ResourceSharpDTM::ResourceSharpDTM( const KConfig *config ) | |||
73 | 73 | ||
74 | ResourceSharpDTM::ResourceSharpDTM( const QString &fileName ) | 74 | ResourceSharpDTM::ResourceSharpDTM( const QString &fileName, bool syncable ) |
75 | : Resource( 0 ) | 75 | : Resource( 0, syncable ) |
76 | { | 76 | { |
@@ -357 +357,26 @@ void ResourceSharpDTM::cleanUp() | |||
357 | 357 | ||
358 | /** | ||
359 | * This method returns the number of elements that are currently in the resource. | ||
360 | */ | ||
361 | int ResourceSharpDTM::count() const | ||
362 | { | ||
363 | if (mAccess != 0) | ||
364 | return mAccess->count(); | ||
365 | else | ||
366 | return 0; | ||
367 | } | ||
368 | |||
369 | |||
370 | /** | ||
371 | * This method removes all elements from the resource!! (Not from the addressbook) | ||
372 | */ | ||
373 | bool ResourceSharpDTM::clear() | ||
374 | { | ||
375 | if (mAccess != 0) | ||
376 | return mAccess->deleteCard(0, SlZDataBase::AllCard ); | ||
377 | else | ||
378 | return false; | ||
379 | } | ||
380 | |||
381 | |||
382 | |||