diff options
author | Darin Petkov <petkov@chromium.org> | 2011-06-30 12:54:12 -0700 |
---|---|---|
committer | Darin Petkov <petkov@chromium.org> | 2011-06-30 15:06:35 -0700 |
commit | b2841fda690034b6952fe56ef1931200bb3b8e12 (patch) | |
tree | 591cf61fef3d2a36e3d68c057c96d81608cb0a1f /key_file_store.h | |
parent | 52cd19bfd52226611d924930f1178307f79d5fdc (diff) | |
download | shill-b2841fda690034b6952fe56ef1931200bb3b8e12.tar.gz |
shill: Add persistent store support for getting/setting string lists.
BUG=chromium-os:17144
TEST=unit tests
Change-Id: Ib85935f3e53b606757aa50786d94975b1fe5109c
Reviewed-on: http://gerrit.chromium.org/gerrit/3486
Tested-by: Darin Petkov <petkov@chromium.org>
Reviewed-by: Chris Masone <cmasone@chromium.org>
Diffstat (limited to 'key_file_store.h')
-rw-r--r-- | key_file_store.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/key_file_store.h b/key_file_store.h index 3e88de27..b448256e 100644 --- a/key_file_store.h +++ b/key_file_store.h @@ -19,7 +19,7 @@ namespace shill { // of the key file format. class KeyFileStore : public StoreInterface { public: - KeyFileStore(GLib *glib); + explicit KeyFileStore(GLib *glib); virtual ~KeyFileStore(); void set_path(const FilePath &path) { path_ = path; } @@ -50,13 +50,18 @@ class KeyFileStore : public StoreInterface { virtual bool SetInt(const std::string &group, const std::string &key, int value); + virtual bool GetStringList(const std::string &group, + const std::string &key, + std::vector<std::string> *value); + virtual bool SetStringList(const std::string &group, + const std::string &key, + const std::vector<std::string> &value); virtual bool GetCryptedString(const std::string &group, const std::string &key, std::string *value); virtual bool SetCryptedString(const std::string &group, const std::string &key, const std::string &value); - private: FRIEND_TEST(KeyFileStoreTest, OpenClose); FRIEND_TEST(KeyFileStoreTest, OpenFail); |