From 5f7262f5c410cf3f36116c221d28dd393664228d Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Tue, 9 Dec 2014 22:01:35 +0100 Subject: add another read method and expose a basic error handler for convenience also, add some todos --- common/storage.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'common/storage.h') diff --git a/common/storage.h b/common/storage.h index 83c307c..a051043 100644 --- a/common/storage.h +++ b/common/storage.h @@ -32,16 +32,17 @@ public: const std::function &resultHandler); void read(const std::string &sKey, const std::function &resultHandler, - const std::function &errors); + const std::function &errorHandler); void read(const std::string &sKey, const std::function &resultHandler); void read(const std::string &sKey, const std::function & resultHandler, const std::function &errorHandler); void scan(const std::string &sKey, const std::function &resultHandler); - void scan(const std::string &sKey, - const std::function & resultHandler, + void scan(const char *keyData, uint keySize, + const std::function &resultHandler, const std::function &errorHandler); + static std::function basicErrorHandler(); qint64 diskUsage() const; void removeFromDisk() const; private: -- cgit v1.2.3