summaryrefslogtreecommitdiffstats
path: root/common/index.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/index.cpp')
-rw-r--r--common/index.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/index.cpp b/common/index.cpp
index f752f5f..2fc0fe3 100644
--- a/common/index.cpp
+++ b/common/index.cpp
@@ -19,6 +19,11 @@ void Index::add(const QByteArray &key, const QByteArray &value)
19 mDb.write(key, value); 19 mDb.write(key, value);
20} 20}
21 21
22void Index::remove(const QByteArray &key, const QByteArray &value)
23{
24 mDb.remove(key, value);
25}
26
22void Index::lookup(const QByteArray &key, const std::function<void(const QByteArray &value)> &resultHandler, 27void Index::lookup(const QByteArray &key, const std::function<void(const QByteArray &value)> &resultHandler,
23 const std::function<void(const Error &error)> &errorHandler) 28 const std::function<void(const Error &error)> &errorHandler)
24{ 29{