diff options
Diffstat (limited to 'common/storage.h')
-rw-r--r-- | common/storage.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/storage.h b/common/storage.h index 22bf06c..daeace8 100644 --- a/common/storage.h +++ b/common/storage.h | |||
@@ -90,6 +90,11 @@ public: | |||
90 | const std::function<void(const QByteArray &key, const QByteArray &value)> &resultHandler, | 90 | const std::function<void(const QByteArray &key, const QByteArray &value)> &resultHandler, |
91 | const std::function<void(const Storage::Error &error)> &errorHandler = std::function<void(const Storage::Error &error)>()) const; | 91 | const std::function<void(const Storage::Error &error)> &errorHandler = std::function<void(const Storage::Error &error)>()) const; |
92 | 92 | ||
93 | /** | ||
94 | * Returns true if the database contains the substring key. | ||
95 | */ | ||
96 | bool contains(const QByteArray &uid); | ||
97 | |||
93 | NamedDatabase(NamedDatabase&& other) : d(other.d) | 98 | NamedDatabase(NamedDatabase&& other) : d(other.d) |
94 | { | 99 | { |
95 | d = other.d; | 100 | d = other.d; |