fa01ca6746efae5aeb7810b57a0691dbb859b2fc
[platform/framework/web/crosswalk-tizen.git] / src / common / app_db.h
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.
4
5 #ifndef WRT_RUNTIME_APPDB_H_
6 #define WRT_RUNTIME_APPDB_H_
7
8 #include <string>
9 #include <list>
10
11 namespace wrt {
12 class AppDB {
13  public:
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;
26 };
27 }  // namespace wrt
28 #endif  // WRT_RUNTIME_APPDB_H_