tizen 2.3 release
[apps/home/settings.git] / setting-connectivity / include / setting-connectivity.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_CONNECTIVITY_H__
22 #define __SETTING_CONNECTIVITY_H__
23
24
25
26 #include <stdio.h>
27 #include <Elementary.h>
28
29 #include <glib-object.h>
30
31 #include <utilX.h>
32
33 #include <setting-common-draw-widget.h>
34 #include <setting-common-view.h>
35
36 #include <runtime_info.h>
37
38
39 #define DEVOPTION_STR_USB_DEBUGGING                             "IDS_ST_BODY_USB_DEBUGGING"
40 #define DEVOPTION_STR_SHOW_CPU_USAGE                    "IDS_ST_MBODY_SHOW_CPU_USAGE"
41 #define DEVOPTION_STR_RENDERTING_ENGINE                 "IDS_ST_BODY_DEFAULT_RENDERING_ENGINE"
42 #define DEVOPTION_STR_LIMIT_BACKGROUND_PRECESS  "IDS_ST_BODY_LIMIT_BACKGROUND_PROCESSES"
43 #define DEVOPTION_STR_CRASH_VIEWER                              "IDS_ST_BODY_CRASH_VIEWER"
44
45 enum mode_change {
46         CHANGE_COMPLETE = 0,
47         IN_MODE_CHANGE,
48         IN_MODE_CHANGE_NONE
49 };
50
51 enum usb_connection_status {
52         USB_DISCONNECTED = 0,
53         USB_CONNECTED,
54         GETTING_STATUS_FAIL
55 };
56
57 typedef struct _SettingConnectivityUG SettingConnectivityUG;
58
59 /**
60  * Setting Connectivity UG context
61  * all UG function has void* as an agument. this is casted back to SettingConnectivityUG
62  * and the functions access app context.
63  */
64 struct _SettingConnectivityUG {
65         ui_gadget_h ug;
66
67         /* add more variables here (move your appdata to here) */
68         Evas *evas;
69         Evas_Object *win_main_layout;
70         Evas_Object *win_get;
71         Evas_Object *navi_bar;
72
73         Evas_Object *ly_usb;
74         Evas_Object *chk_con;
75
76         Evas_Object *pop;
77
78         Evas_Object *view_layout;
79         Evas_Object *selectioninfo_popup;
80
81         Setting_GenGroupItem_Data *debug_mode;          /* debug mode */
82         Setting_GenGroupItem_Data *cpu_usage;           /* Show CPU Usage */
83         Setting_GenGroupItem_Data *gpu_render;          /* Force GPU Rendering */
84         Setting_GenGroupItem_Data *bg_processes;        /* Limit background processes */
85
86         /*****/
87         setting_view *view_to_load;
88
89         Elm_Genlist_Item_Class itc_title;
90         Elm_Genlist_Item_Class itc_1text;
91         Elm_Genlist_Item_Class itc_1text_1progress;
92         Elm_Genlist_Item_Class itc_1text_1icon;
93         Elm_Genlist_Item_Class itc_1text_1icon_gen;
94         Elm_Genlist_Item_Class itc_2text_3;
95         Elm_Genlist_Item_Class itc_group_item;
96         Elm_Genlist_Item_Class itc_help_style;
97         Elm_Genlist_Item_Class itc_2text_3_parent;
98         Elm_Genlist_Item_Class itc_1icon_1text_sub;
99
100         int noti_fd;
101         Eina_Bool blockUI;
102
103 };
104
105 extern setting_view setting_view_connectivity_usb;
106 extern setting_view setting_view_connectivity_usb_help;
107
108 int check_usb_jack_status();
109 void set_usb_mode_default();
110
111 #endif                          /* __SETTING_CONNECTIVITY_H__ */