2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
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
9 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 * @file FWebCtrl_WebSettingImpl.h
20 * @brief The file contains the declaration of _WebSettingImpl class.
22 * The file contains the declaration of _WebSettingImpl class.
24 #ifndef _FWEB_CTRL_INTERNAL_WEB_SETTING_IMPL_H_
25 #define _FWEB_CTRL_INTERNAL_WEB_SETTING_IMPL_H_
27 #include <FBaseObject.h>
28 #include <FUiCtrlInputTypes.h>
29 #include <FWebCtrlWebSetting.h>
31 namespace Tizen { namespace Web { namespace Controls
37 : public Tizen::Base::Object
41 _WebSettingImpl(void);
43 virtual ~_WebSettingImpl(void);
45 void SetCacheControl(CacheMode mode);
47 CacheMode GetCacheControl(void) const;
49 void SetFontSize(int fontSize);
51 int GetFontSize(void) const;
53 void SetDefaultTextEncoding(const Tizen::Base::String& encoding);
55 Tizen::Base::String GetDefaultTextEncoding(void) const;
57 void SetJavascriptEnabled(bool enable);
59 void SetAutoImageLoadEnabled(bool enable);
61 bool IsJavascriptEnabled(void) const;
63 bool IsAutoImageLoadEnabled(void) const;
65 void SetInputStyle(Tizen::Ui::Controls::InputStyle inputStyle);
67 Tizen::Ui::Controls::InputStyle GetInputStyle(void) const;
69 void SetCertificateErrorHandlingMode(CertificateErrorHandlingMode mode);
71 CertificateErrorHandlingMode GetCertificateErrorHandlingMode(void) const;
73 void SetUserAgent(const Tizen::Base::String& agent);
75 Tizen::Base::String GetUserAgent(void) const;
77 void SetScrollEnabled(bool enable);
79 bool IsScrollEnabled(void) const;
81 void SetPrivateBrowsingEnabled(bool enable);
83 bool IsPrivateBrowsingEnabled(void) const;
85 void SetCookiEnabled(bool enable);
87 bool IsCookieEnabled(void) const;
89 void SetZoomLevel(float level);
91 float GetZoomLevel(void) const;
93 void SetAutoFittingEnabled(bool enable);
95 bool IsAutoFittingEnabled(void) const;
97 void SetJavaScriptPopupEnabled(bool enable);
99 bool IsJavaScriptPopupEnabled(void) const;
101 void SetGeolocationEnabled(bool enable);
103 bool IsGeolocationEnabled(void) const;
105 void SetAutoFormDataShowEnabled(bool enable);
107 bool IsAutoFormDataShowEnabled(void) const;
109 void SetAutoLoginFormFillEnabled(bool enable);
111 bool IsAutoLoginFormFillEnabled(void) const;
113 virtual bool Equals(const Object& obj) const;
115 virtual int GetHashCode(void) const;
117 static _WebSettingImpl* GetInstance(WebSetting* pWebSetting);
119 static const _WebSettingImpl* GetInstance(const WebSetting* pWebSetting);
122 CacheMode __cacheMode;
124 Tizen::Base::String __encoding;
128 bool __javascriptEnabled;
130 bool __autoImageEnabled;
132 bool __isScrollEnabled;
134 bool __isPrivateBrowsingEnabled;
136 bool __isCookieEnabled;
140 Tizen::Ui::Controls::InputStyle __inputStyle;
142 CertificateErrorHandlingMode __certificateErrorHandlingMode;
144 Tizen::Base::String __userAgent;
146 bool __autoFittingEnabled;
148 bool __javaScriptPopupEnabled;
150 bool __geolocationEnabled;
152 bool __autoFormDataEnabled;
154 bool __autoLoginFormEnabled;
155 }; // _WebSettingImpl
157 }}} // Tizen::Web::Controls
158 #endif // _FWEB_CTRL_INTERNAL_WEB_SETTING_IMPL_H_