1 // Copyright 2015 Samsung Electronics Co, Ltd. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WRT_RUNTIME_APPDB_H_
6 #define WRT_RUNTIME_APPDB_H_
14 static AppDB* GetInstance();
15 virtual bool HasKey(const std::string& section,
16 const std::string& key) const = 0;
17 virtual std::string Get(const std::string& section,
18 const std::string& key) const = 0;
19 virtual void Set(const std::string& section,
20 const std::string& key,
21 const std::string& value) = 0;
22 virtual void GetKeys(const std::string& section,
23 std::list<std::string>* keys) const = 0;
24 virtual void Remove(const std::string& section,
25 const std::string& key) = 0;
28 #endif // WRT_RUNTIME_APPDB_H_