summaryrefslogtreecommitdiffstats
path: root/libkdepim
diff options
context:
space:
mode:
Diffstat (limited to 'libkdepim')
-rw-r--r--libkdepim/kabcresourcecached.cpp6
-rw-r--r--libkdepim/kabcresourcecached.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/libkdepim/kabcresourcecached.cpp b/libkdepim/kabcresourcecached.cpp
index f2cbfbdcf..334ac4f22 100644
--- a/libkdepim/kabcresourcecached.cpp
+++ b/libkdepim/kabcresourcecached.cpp
@@ -124,6 +124,12 @@ void ResourceCached::saveCache()
file.close();
}
+void ResourceCached::clearCache()
+{
+ // TEST ME
+ mAddrMap.clear();
+}
+
void ResourceCached::cleanUpCache( const KABC::Addressee::List &addrList )
{
// load cache
diff --git a/libkdepim/kabcresourcecached.h b/libkdepim/kabcresourcecached.h
index 87ad9e4b9..e650eec6c 100644
--- a/libkdepim/kabcresourcecached.h
+++ b/libkdepim/kabcresourcecached.h
@@ -53,6 +53,7 @@ class KDE_EXPORT ResourceCached : public Resource
void loadCache();
void saveCache();
+ void clearCache();
void cleanUpCache( const KABC::Addressee::List &list );
/**