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>
26 #include <dpl/string.h>
34 namespace WebAppDetailSetting {
38 enum GroupSettingsIndex {
40 GROUP_IDX_SECURITY_SETTINGS = GROUP_IDX_START,
41 GROUP_IDX_DEVELOPER_OPTIONS,
42 GROUP_IDX_END = GROUP_IDX_DEVELOPER_OPTIONS,
46 SECURITY_SETTINGS_IDX_START = 0,
47 SECURITY_SETTINGS_IDX_SECURITY_POPUP_USAGE,
48 SECURITY_SETTINGS_IDX_GEOLOCATION_USAGE = SECURITY_SETTINGS_IDX_START,
49 SECURITY_SETTINGS_IDX_WEB_NOTIFICATION_USAGE,
50 SECURITY_SETTINGS_IDX_EXCEPTIONS_SETTINGS,
51 SECURITY_SETTINGS_IDX_END = SECURITY_SETTINGS_IDX_EXCEPTIONS_SETTINGS,
52 DEVELOPER_OPTIONS_IDX_START = SECURITY_SETTINGS_IDX_END,
53 DEVELOPER_OPTIONS_IDX_MEMORY_SAVING_MODE = DEVELOPER_OPTIONS_IDX_START,
54 DEVELOPER_OPTIONS_IDX_END = DEVELOPER_OPTIONS_IDX_MEMORY_SAVING_MODE,
57 class AdvancedView : public View
60 AdvancedView(Evas_Object *naviframe, DPL::String appID);
64 void loadSecuritySettingsMenu(Evas_Object* genlist);
65 void loadDeveloperOptionsMenu(Evas_Object* genlist);
68 Evas_Object *m_naviframe;
70 DPL::ScopedPtr<ExceptionsView> m_exceptionsView;
71 std::map<int, std::string> m_groupMenuMap;
72 std::map<int, std::string> m_menuMap;
74 static char* getGroupText(
78 static void delGroupData(
82 static char* getSettingText(
86 static Evas_Object* getSettingContent(
90 static void delSettingData(
93 static void settingSelectedCallback(
97 static void settingChangedCallback(
101 static char* getSecurityExceptionsSettingsText(
105 static void securityExceptionsSettingsSelectedCallback(
111 class AdvancedSettingsGroupData
114 std::string m_menuText;
115 AdvancedSettingsGroupData(std::string menuText) :
124 DPL::ScopedPtr<WrtDB::WidgetDAO> m_dao;
126 std::string m_menuText;
127 std::string m_iconPart;
129 SettingData(DPL::String appID, int index, std::string menuText);
131 void saveChange(bool state);
134 } /* WebAppDetailSetting */
136 #endif /* WEB_SRC_SETTING_WEBAPP_DETAIL_ADVANCEDVIEW_H_ */