2 * Copyright 2012 Samsung Electronics Co., Ltd
4 * Licensed under the Flora License, Version 1.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef WEB_SRC_SETTING_WEBAPP_DETAIL_ADVANCEDVIEW_H_
18 #define WEB_SRC_SETTING_WEBAPP_DETAIL_ADVANCEDVIEW_H_
25 #include <dpl/scoped_ptr.h>
33 namespace WebAppDetailSetting {
37 enum GroupSettingsIndex {
39 GROUP_IDX_SECURITY_SETTINGS = GROUP_IDX_START,
40 GROUP_IDX_DEVELOPER_OPTIONS,
41 GROUP_IDX_END = GROUP_IDX_DEVELOPER_OPTIONS,
45 SECURITY_SETTINGS_IDX_START = 0,
46 SECURITY_SETTINGS_IDX_SECURITY_POPUP_USAGE = SECURITY_SETTINGS_IDX_START,
47 SECURITY_SETTINGS_IDX_GEOLOCATION_USAGE,
48 SECURITY_SETTINGS_IDX_WEB_NOTIFICATION_USAGE,
49 SECURITY_SETTINGS_IDX_WEB_DATABASE_USAGE,
50 SECURITY_SETTINGS_IDX_FILE_SYSTEM_USAGE,
51 SECURITY_SETTINGS_IDX_EXCEPTIONS_SETTINGS,
52 SECURITY_SETTINGS_IDX_END = SECURITY_SETTINGS_IDX_EXCEPTIONS_SETTINGS,
53 DEVELOPER_OPTIONS_IDX_START = SECURITY_SETTINGS_IDX_END,
54 DEVELOPER_OPTIONS_IDX_MEMORY_SAVING_MODE = DEVELOPER_OPTIONS_IDX_START,
55 DEVELOPER_OPTIONS_IDX_END = DEVELOPER_OPTIONS_IDX_MEMORY_SAVING_MODE,
58 class AdvancedView : public View
61 AdvancedView(Evas_Object *naviframe, int appID);
65 void loadSecuritySettingsMenu(Evas_Object* genlist);
66 void loadDeveloperOptionsMenu(Evas_Object* genlist);
69 Evas_Object *m_naviframe;
71 DPL::ScopedPtr<ExceptionsView> m_exceptionsView;
72 std::map<int, std::string> m_groupMenuMap;
73 std::map<int, std::string> m_menuMap;
75 static char* getGroupText(
79 static void delGroupData(
83 static char* getSettingText(
87 static Evas_Object* getSettingContent(
91 static void delSettingData(
94 static void settingSelectedCallback(
98 static void settingChangedCallback(
102 static char* getSecurityExceptionsSettingsText(
106 static void securityExceptionsSettingsSelectedCallback(
112 class AdvancedSettingsGroupData
115 std::string m_menuText;
116 AdvancedSettingsGroupData(std::string menuText) :
125 DPL::ScopedPtr<WrtDB::WidgetDAO> m_dao;
127 std::string m_menuText;
128 std::string m_iconPart;
130 SettingData(int appID, int index, std::string menuText);
132 void saveChange(bool state);
135 } /* WebAppDetailSetting */
137 #endif /* WEB_SRC_SETTING_WEBAPP_DETAIL_ADVANCEDVIEW_H_ */