removed the unused symbol for csc
[apps/core/preloaded/settings.git] / setting-reset / include / setting-reset.h
1 /*
2  * setting
3  *
4  * Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd.
5  *
6  * Contact: MyoungJune Park <mj2004.park@samsung.com>
7  *
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
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
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.
19  *
20  */
21 #ifndef __SETTING_RESET_H__
22 #define __SETTING_RESET_H__
23
24 #include <stdio.h>
25 #include <Elementary.h>
26
27 #include <glib-object.h>
28
29 #include <Ecore_IMF.h>
30
31 #include <setting-common-draw-widget.h>
32 #include <setting-common-view.h>
33
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"
38
39 #define RESET_FAILED_STR "IDS_COM_POP_FAILED"//"Reset failed"
40 #define VCONF_RESET_FAILED_STR "IDS_COM_POP_FAILED"//"vconf set failed"
41
42 #define ADN_STR " and "
43 #define CLOSEING_STR " had been reseted just now, Setting will be closed"
44
45 //#define RESET_ALL "Reset all"
46 #define RESET_ALL "IDS_ST_BODY_RESET_ALL"
47
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"
50
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"
54
55 #define SIMPLY_SUPPORT_ALL_RESET 0
56 #define SUPPORT_RESET_DETAILS 1
57 #define SUPPORT_SIM_CARD_PROFILE 0
58 #define SUPPORT_FACTORY_RESET 1
59 #define SUPPORT_RESET_OLD 0
60
61 typedef struct _SettingResetUG SettingResetUG;
62
63 /**
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.
67  */
68 struct _SettingResetUG {
69         ui_gadget_h ug;
70         ui_gadget_h ug_loading;
71
72         /* add more variables here (move your appdata to here) */
73         Evas *evas;
74         Evas_Object *win_main_layout;   /*  window_layout */
75         Evas_Object *win_get;   /*  win_main */
76         Evas_Object *ly_main;
77         Evas_Object *notify;
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;
86
87         Evas_Object *pop_factory_reset;
88
89         Setting_Done_List_Data list_data;
90         Ecore_Animator *animator;
91         Ecore_Idler *reset_all_idler;
92         int gl_index;
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;
99         Evas_Object *pop;
100 #endif
101         Evas_Object *pop_btn;
102 };
103
104 extern setting_view setting_view_reset_main;
105 extern setting_view setting_view_reset_settings;
106
107 int setting_reset_flight_mode();
108 int setting_reset_rotation_lock(void);
109 void setting_reset_result_popup_resp_cb(void *data, Evas_Object *obj, void *event_info);
110 void setting_reset_result_popup_update(void *data);
111 void setting_reset_special_process(void *data);
112
113 #endif                          /* __SETTING_RESET_H__ */