bf3b7ae92abf765391f0beb43b1b9b78eb56bed0
[platform/framework/web/crosswalk-tizen.git] / src / extension / widget / widget.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_EXTENSION_WIDGET_H_
6 #define WRT_EXTENSION_WIDGET_H_
7
8 #include <string>
9
10 namespace wrt {
11 class ApplicationData;
12 class Widget {
13  public:
14   static Widget* GetInstance();
15   void Initialize(const ApplicationData* appdata);
16   int Length();
17   bool Key(int idx, std::string* key);
18   bool GetItem(const std::string& key, std::string* value);
19   bool SetItem(const std::string& key, const std::string& value);
20   bool RemoveItem(const std::string& key);
21   void Clear();
22  private:
23   Widget();
24   virtual ~Widget();
25 };
26 }  // namespace wrt
27
28 #endif  // WRT_EXTENSION_WIDGET_H_