Update change log and spec for wrt-plugins-tizen_0.4.51
[framework/web/wrt-plugins-tizen.git] / src / WebSetting / JSWebSettingManager.h
1 //
2 // Tizen Web Device API
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 //
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
8 //
9 // http://www.apache.org/licenses/LICENSE-2.0
10 //
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
16 //
17
18 #ifndef __TIZEN_JS_WEB_SETTING_MANAGER_H__
19 #define __TIZEN_JS_WEB_SETTING_MANAGER_H__
20
21 #include <JavaScriptCore/JavaScript.h>
22
23 #include "WebSettingManager.h"
24
25 namespace DeviceAPI
26 {
27 namespace WebSetting
28 {
29
30 class JSWebSettingManager
31 {
32 public:
33     static const JSClassDefinition* getClassInfo();
34     static const JSClassRef getClassRef();
35 private:
36
37     /**
38      * The callback invoked when an object is first created.
39      */
40     static void initialize(JSContextRef context,
41                            JSObjectRef object);
42
43     /**
44      * The callback invoked when an object is finalized.
45      */
46     static void finalize(JSObjectRef object);
47
48     static JSValueRef setUserAgentString(JSContextRef context,
49                                          JSObjectRef object,
50                                          JSObjectRef thisObject,
51                                          size_t argumentCount,
52                                          const JSValueRef arguments[],
53                                          JSValueRef* exception);
54
55     static JSValueRef removeAllCookies(JSContextRef context,
56                                        JSObjectRef object,
57                                        JSObjectRef thisObject,
58                                        size_t argumentCount,
59                                        const JSValueRef arguments[],
60                                        JSValueRef* exception);
61
62     /**
63      * This member variable contains the values which has to be passed
64      * when the this class is embedded into JS Engine.
65      */
66     static JSClassDefinition m_classInfo;
67
68     /**
69      * This structure describes a statically declared function property.
70      */
71     static JSStaticFunction m_function[];
72
73     /**
74      * This member variable contains the initialization values for the
75      * properties of this class. The values are given according to
76      * the data structure JSPropertySpec
77      */
78     static JSStaticValue m_property[];
79
80     static JSClassRef m_jsClassRef;
81 };
82
83
84
85 } // WebSetting
86 } // DeviceAPI
87
88 #endif // __TIZEN_JS_DOWNLOAD_MANAGER_H__