add patch
[framework/osp/web.git] / src / controls / FWebCtrl_WebSettingImpl.h
1 //
2 // Open Service Platform
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 /**
19  * @file                FWebCtrl_WebSettingImpl.h
20  * @brief               The file contains the declaration of _WebSettingImpl class.
21  *
22  * The file contains the declaration of _WebSettingImpl class.
23  */
24 #ifndef _FWEB_CTRL_INTERNAL_WEB_SETTING_IMPL_H_
25 #define _FWEB_CTRL_INTERNAL_WEB_SETTING_IMPL_H_
26
27 #include <FBaseObject.h>
28 #include <FUiCtrlInputTypes.h>
29 #include <FWebCtrlWebSetting.h>
30
31 namespace Tizen { namespace Web { namespace Controls
32 {
33 class WebSetting;
34
35
36 class _WebSettingImpl
37         : public Tizen::Base::Object
38 {
39
40 public:
41         _WebSettingImpl(void);
42
43         virtual ~_WebSettingImpl(void);
44
45         void SetCacheControl(CacheMode mode);
46
47         CacheMode GetCacheControl(void) const;
48
49         void SetFontSize(int fontSize);
50
51         int GetFontSize(void) const;
52
53         void SetDefaultTextEncoding(const Tizen::Base::String& encoding);
54
55         Tizen::Base::String GetDefaultTextEncoding(void) const;
56
57         void SetJavascriptEnabled(bool enable);
58
59         void SetAutoImageLoadEnabled(bool enable);
60
61         bool IsJavascriptEnabled(void) const;
62
63         bool IsAutoImageLoadEnabled(void) const;
64
65         void SetInputStyle(Tizen::Ui::Controls::InputStyle inputStyle);
66
67         Tizen::Ui::Controls::InputStyle GetInputStyle(void) const;
68
69         void SetCertificateErrorHandlingMode(CertificateErrorHandlingMode mode);
70
71         CertificateErrorHandlingMode GetCertificateErrorHandlingMode(void) const;
72
73         void SetUserAgent(const Tizen::Base::String& agent);
74
75         Tizen::Base::String GetUserAgent(void) const;
76
77         void SetScrollEnabled(bool enable);
78
79         bool IsScrollEnabled(void) const;
80
81         void SetPrivateBrowsingEnabled(bool enable);
82
83         bool IsPrivateBrowsingEnabled(void) const;
84
85         void SetCookiEnabled(bool enable);
86
87         bool IsCookieEnabled(void) const;
88
89         void SetZoomLevel(float level);
90
91         float GetZoomLevel(void) const;
92
93         void SetAutoFittingEnabled(bool enable);
94
95         bool IsAutoFittingEnabled(void) const;
96
97         void SetJavaScriptPopupEnabled(bool enable);
98
99         bool IsJavaScriptPopupEnabled(void) const;
100
101         void SetGeolocationEnabled(bool enable);
102
103         bool IsGeolocationEnabled(void) const;
104
105         void SetAutoFormDataShowEnabled(bool enable);
106
107         bool IsAutoFormDataShowEnabled(void) const;
108
109         void SetAutoLoginFormFillEnabled(bool enable);
110
111         bool IsAutoLoginFormFillEnabled(void) const;
112
113         virtual bool Equals(const Object& obj) const;
114
115         virtual int GetHashCode(void) const;
116
117         static _WebSettingImpl* GetInstance(WebSetting* pWebSetting);
118
119         static const _WebSettingImpl* GetInstance(const WebSetting* pWebSetting);
120
121 private:
122         CacheMode __cacheMode;
123
124         Tizen::Base::String __encoding;
125
126         int __fontSize;
127
128         bool __javascriptEnabled;
129
130         bool __autoImageEnabled;
131
132         bool __isScrollEnabled;
133
134         bool __isPrivateBrowsingEnabled;
135
136         bool __isCookieEnabled;
137
138         float __zoomLevel;
139
140         Tizen::Ui::Controls::InputStyle __inputStyle;
141
142         CertificateErrorHandlingMode __certificateErrorHandlingMode;
143
144         Tizen::Base::String __userAgent;
145
146         bool __autoFittingEnabled;
147
148         bool __javaScriptPopupEnabled;
149
150         bool __geolocationEnabled;
151
152         bool __autoFormDataEnabled;
153
154         bool __autoLoginFormEnabled;
155 }; // _WebSettingImpl
156
157 }}} // Tizen::Web::Controls
158 #endif // _FWEB_CTRL_INTERNAL_WEB_SETTING_IMPL_H_