diff options
author | Aaron Seigo <aseigo@kde.org> | 2014-12-10 08:48:41 +0100 |
---|---|---|
committer | Aaron Seigo <aseigo@kde.org> | 2014-12-11 01:02:32 +0100 |
commit | 52607c5d331bb997acb0c96c6a68ded5e679b071 (patch) | |
tree | 953a6ff9a075d3d19e2abba5086ce526c8c1602a /common/storage.h | |
parent | 482a80866de2613ad83a6f3e153cc905b1fcdf47 (diff) | |
download | sink-52607c5d331bb997acb0c96c6a68ded5e679b071.tar.gz sink-52607c5d331bb997acb0c96c6a68ded5e679b071.zip |
add a read that gets keys and values
(this really really really needs a cleanup now)
Diffstat (limited to 'common/storage.h')
-rw-r--r-- | common/storage.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/storage.h b/common/storage.h index a051043..64a632d 100644 --- a/common/storage.h +++ b/common/storage.h | |||
@@ -41,6 +41,8 @@ public: | |||
41 | void scan(const char *keyData, uint keySize, | 41 | void scan(const char *keyData, uint keySize, |
42 | const std::function<bool(void *keyPtr, int keySize, void *ptr, int size)> &resultHandler, | 42 | const std::function<bool(void *keyPtr, int keySize, void *ptr, int size)> &resultHandler, |
43 | const std::function<void(const Storage::Error &error)> &errorHandler); | 43 | const std::function<void(const Storage::Error &error)> &errorHandler); |
44 | void readAll(const std::function<bool(void *key, int keySize, void *data, int dataSize)> &resultHandler, | ||
45 | const std::function<void(const Storage::Error &error)> &errorHandler); | ||
44 | 46 | ||
45 | static std::function<void(const Storage::Error &error)> basicErrorHandler(); | 47 | static std::function<void(const Storage::Error &error)> basicErrorHandler(); |
46 | qint64 diskUsage() const; | 48 | qint64 diskUsage() const; |