summaryrefslogtreecommitdiffstats
path: root/common/storage.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/storage.h')
-rw-r--r--common/storage.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/storage.h b/common/storage.h
index bb8c1fa..a8c486c 100644
--- a/common/storage.h
+++ b/common/storage.h
@@ -109,6 +109,15 @@ public:
109 const std::function<void(const DataStore::Error &error)> &errorHandler = std::function<void(const DataStore::Error &error)>()) const; 109 const std::function<void(const DataStore::Error &error)> &errorHandler = std::function<void(const DataStore::Error &error)>()) const;
110 110
111 /** 111 /**
112 * Finds all the keys and values whose keys are in a given range
113 * (inclusive).
114 */
115 int findAllInRange(const QByteArray &lowerBound, const QByteArray &upperBound,
116 const std::function<void(const QByteArray &key, const QByteArray &value)> &resultHandler,
117 const std::function<void(const DataStore::Error &error)> &errorHandler =
118 std::function<void(const DataStore::Error &error)>()) const;
119
120 /**
112 * Returns true if the database contains the substring key. 121 * Returns true if the database contains the substring key.
113 */ 122 */
114 bool contains(const QByteArray &uid); 123 bool contains(const QByteArray &uid);