diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-10-29 17:52:45 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-10-29 17:52:45 +0100 |
commit | 0a2d20c474206553d5c981fd2a772188083101e9 (patch) | |
tree | 37a46837b4fa93834a9380ee02ef4188786e9acd /common/index.cpp | |
parent | 70faf80be4146b17a59f9616404b21625d7400f6 (diff) | |
download | sink-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.cpp | 5 |
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 | ||
22 | void Index::remove(const QByteArray &key, const QByteArray &value) | ||
23 | { | ||
24 | mDb.remove(key, value); | ||
25 | } | ||
26 | |||
22 | void Index::lookup(const QByteArray &key, const std::function<void(const QByteArray &value)> &resultHandler, | 27 | void 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 | { |