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 "Reset results"
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_HEADER_RESET_SETTINGS" //"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_RESET_OLD 0
60 typedef struct _SettingResetUG SettingResetUG;
63 * Setting Reset UG context
64 * all UG function has void* as an agument. this is casted back to SettingResetUG
65 * and the functions access app context.
67 struct _SettingResetUG {
69 ui_gadget_h ug_loading;
71 /* add more variables here (move your appdata to here) */
73 Evas_Object *win_main_layout; /* window_layout */
74 Evas_Object *win_get; /* win_main */
77 Evas_Object *old_notify;
78 Evas_Object *ask_popup;
79 Evas_Object *pop_progress;
80 Evas_Object *view_layout;
81 Evas_Object *navi_bar;
82 Evas_Object *controllbar;
83 Evas_Object *reset_list;
84 Evas_Object *main_scroller;
86 Setting_Done_List_Data list_data;
87 Ecore_Animator *animator;
88 Ecore_Idler *reset_all_idler;
90 Elm_Genlist_Item_Class itc_1text;
91 Elm_Genlist_Item_Class itc_1icon;
92 #if SUPPORT_RESET_DETAILS
93 Elm_Genlist_Item_Class itc_dlg_1text;
94 Elm_Genlist_Item_Class itc_seperator;
95 Evas_Object *ly_reset;
100 extern setting_view setting_view_reset_main;
101 extern setting_view setting_view_reset_settings;
103 int setting_reset_flight_mode();
104 int setting_reset_rotation_lock(void);
105 void setting_reset_result_popup_resp_cb(void *data, Evas_Object *obj, void *event_info);
106 void setting_reset_result_popup_update(void *data);
107 void setting_reset_special_process(void *data);
109 #endif /* __SETTING_RESET_H__ */