4 * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
6 * Contact: MyoungJune Park <mj2004.park@samsung.com>
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
21 #ifndef __SETTING_RESET_H__
22 #define __SETTING_RESET_H__
25 #include <Elementary.h>
27 #include <glib-object.h>
29 #include <Ecore_IMF.h>
31 #include <setting-common-draw-widget.h>
32 #include <setting-common-view.h>
34 #define RESET_RESULT_STR "IDS_ST_POP_RESETTING_ING"
35 #define RESET_SUCESS_STR "IDS_COM_POP_SUCCESS"
36 #define LOAD_LIB_FAILED_STR "Exception"//"Load LIB failed"
37 #define UNDEFINE_STR "Undefined" //"Resetting undefined"
39 #define RESET_FAILED_STR "IDS_COM_POP_FAILED"//"Reset failed"
40 #define VCONF_RESET_FAILED_STR "IDS_COM_POP_FAILED"//"vconf set failed"
42 #define ADN_STR " and "
43 #define CLOSEING_STR " had been reseted just now, Setting will be closed"
45 //#define RESET_ALL "Reset all"
46 #define RESET_ALL "IDS_ST_BODY_RESET_ALL"
48 //#define RESET_ALL_DESC "IDS_ST_BODY_ALL_SETTINGS_WILL_REVERT_TO_DEFAULT_VALUES"
49 #define RESET_ALL_DESC "IDS_ST_BODY_AFTER_RESETTING_PHONE_WILL_RESTART_AUTOMATICALLY"
51 #define RESET_SETTINGS_STR "IDS_ST_BODY_BACKUP_AND_RESET" //"Reset settings"
52 #define SIM_CARD_PROFILE_SETTINGS_STR "IDS_ST_MBODY_SIM_CARD_PROFILE_SETTINGS" //"SIM card profile sttings"
53 #define FACTORY_RESET_STR "IDS_ST_MBODY_FACTORY_RESET" //"Factory reset"
55 #define SIMPLY_SUPPORT_ALL_RESET 0
56 #define SUPPORT_RESET_DETAILS 1
57 #define SUPPORT_SIM_CARD_PROFILE 1
58 #define SUPPORT_FACTORY_RESET 1
59 #define SUPPORT_RESET_OLD 0
61 typedef struct _SettingResetUG SettingResetUG;
64 * Setting Reset UG context
65 * all UG function has void* as an agument. this is casted back to SettingResetUG
66 * and the functions access app context.
68 struct _SettingResetUG {
70 ui_gadget_h ug_loading;
72 /* add more variables here (move your appdata to here) */
74 Evas_Object *win_main_layout; /* window_layout */
75 Evas_Object *win_get; /* win_main */
78 Evas_Object *old_notify;
79 Evas_Object *ask_popup;
80 Evas_Object *pop_progress;
81 Evas_Object *view_layout;
82 Evas_Object *navi_bar;
83 Evas_Object *controllbar;
84 Evas_Object *reset_list;
85 Evas_Object *main_scroller;
87 Evas_Object *pop_factory_reset;
89 Setting_Done_List_Data list_data;
90 Ecore_Animator *animator;
91 Ecore_Idler *reset_all_idler;
93 Elm_Genlist_Item_Class itc_1text;
94 Elm_Genlist_Item_Class itc_1icon;
95 #if SUPPORT_RESET_DETAILS
96 Elm_Genlist_Item_Class itc_dlg_1text;
97 Elm_Genlist_Item_Class itc_seperator;
98 Evas_Object *ly_reset;
103 extern setting_view setting_view_reset_main;
104 extern setting_view setting_view_reset_settings;
106 int setting_reset_flight_mode();
107 int setting_reset_rotation_lock(void);
108 void setting_reset_result_popup_resp_cb(void *data, Evas_Object *obj, void *event_info);
109 void setting_reset_result_popup_update(void *data);
110 void setting_reset_special_process(void *data);
112 #endif /* __SETTING_RESET_H__ */