summaryrefslogtreecommitdiffstats
path: root/common/index.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-29 17:52:45 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-29 17:52:45 +0100
commit0a2d20c474206553d5c981fd2a772188083101e9 (patch)
tree37a46837b4fa93834a9380ee02ef4188786e9acd /common/index.cpp
parent70faf80be4146b17a59f9616404b21625d7400f6 (diff)
downloadsink-0a2d20c474206553d5c981fd2a772188083101e9.tar.gz
sink-0a2d20c474206553d5c981fd2a772188083101e9.zip
Updated the index on modifications and removals.
Misses tests.
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{