summaryrefslogtreecommitdiffstats
path: root/common/storage.h
diff options
context:
space:
mode:
authorAaron Seigo <aseigo@kde.org>2014-12-05 09:46:53 +0100
committerAaron Seigo <aseigo@kde.org>2014-12-05 09:46:53 +0100
commit351a66b5fb1c8659bff8ea20d60f5a6d2d3263ad (patch)
tree3ba738fdc01f2b73bc3942ed530db34ef4cc1d6e /common/storage.h
parent0c1400c7f0cf2f545a6cd7347314c1158fbfa36f (diff)
downloadsink-351a66b5fb1c8659bff8ea20d60f5a6d2d3263ad.tar.gz
sink-351a66b5fb1c8659bff8ea20d60f5a6d2d3263ad.zip
make read return a bool on success
not happy with this API, but we need to discuss the whole read thing anyways
Diffstat (limited to 'common/storage.h')
-rw-r--r--common/storage.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/storage.h b/common/storage.h
index f7dbd89..0b548fb 100644
--- a/common/storage.h
+++ b/common/storage.h
@@ -16,8 +16,8 @@ public:
16 bool write(const char *key, size_t keySize, const char *value, size_t valueSize); 16 bool write(const char *key, size_t keySize, const char *value, size_t valueSize);
17 bool write(const std::string &sKey, const std::string &sValue); 17 bool write(const std::string &sKey, const std::string &sValue);
18 //Perhaps prefer iterators (assuming we need to be able to match multiple values 18 //Perhaps prefer iterators (assuming we need to be able to match multiple values
19 void read(const std::string &sKey, const std::function<void(const std::string &value)> &); 19 bool read(const std::string &sKey, const std::function<void(const std::string &value)> &);
20 void read(const std::string &sKey, const std::function<void(void *ptr, int size)> &); 20 bool read(const std::string &sKey, const std::function<void(void *ptr, int size)> &);
21 21
22 qint64 diskUsage() const; 22 qint64 diskUsage() const;
23 void removeFromDisk() const; 23 void removeFromDisk() const;