Initialize Tizen 2.3
[apps/home/settings.git] / setting-connectivity / include / setting-connectivity.h
1 /*
2  * setting
3  * Copyright (c) 2012 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Flora License, Version 1.1 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://floralicense.org/license/
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 #ifndef __SETTING_CONNECTIVITY_H__
18 #define __SETTING_CONNECTIVITY_H__
19
20 #include <stdio.h>
21 #include <Elementary.h>
22
23 #include <glib-object.h>
24
25 #include <utilX.h>
26
27 #include <setting-common-draw-widget.h>
28 #include <setting-common-view.h>
29
30 #include <runtime_info.h>
31
32 enum mode_change {
33         CHANGE_COMPLETE = 0,
34         IN_MODE_CHANGE,
35         IN_MODE_CHANGE_NONE
36 };
37
38 enum usb_connection_status {
39         USB_DISCONNECTED = 0,
40         USB_CONNECTED,
41         GETTING_STATUS_FAIL
42 };
43
44 typedef struct _SettingConnectivityUG SettingConnectivityUG;
45
46 /**
47  * Setting Connectivity UG context
48  * all UG function has void* as an agument. this is casted back to SettingConnectivityUG
49  * and the functions access app context.
50  */
51 struct _SettingConnectivityUG {
52         ui_gadget_h ug;
53
54         /* add more variables here (move your appdata to here) */
55         Evas *evas;
56         Evas_Object *win_main_layout;
57         Evas_Object *win_get;
58         Evas_Object *navi_bar;
59
60         Evas_Object *ly_usb;
61         Evas_Object *chk_con;
62
63         Evas_Object *pop;
64
65         Setting_GenGroupItem_Data *debug_mode;          /* debug mode */
66         Setting_GenGroupItem_Data *cpu_usage;           /* Show CPU Usage */
67         Setting_GenGroupItem_Data *gpu_render;          /* Force GPU Rendering */
68         Setting_GenGroupItem_Data *bg_processes;        /* Limit background processes */
69
70         /*****/
71         setting_view *view_to_load;
72
73         Elm_Genlist_Item_Class itc_title;
74         Elm_Genlist_Item_Class itc_1text;
75         Elm_Genlist_Item_Class itc_1text_1progress;
76         Elm_Genlist_Item_Class itc_1text_1icon;
77         Elm_Genlist_Item_Class itc_1text_1icon_gen;
78         Elm_Genlist_Item_Class itc_2text_3;
79         Elm_Genlist_Item_Class itc_group_item;
80         Elm_Genlist_Item_Class itc_seperator;
81         Elm_Genlist_Item_Class itc_help_style;
82         Elm_Genlist_Item_Class itc_2text_3_parent;
83         Elm_Genlist_Item_Class itc_1icon_1text_sub;
84
85         int noti_fd;
86         Eina_Bool blockUI;
87 };
88
89 extern setting_view setting_view_connectivity_usb;
90 extern setting_view setting_view_connectivity_usb_help;
91
92 int check_usb_jack_status();
93 void set_usb_mode_default();
94
95 #endif                          /* __SETTING_CONNECTIVITY_H__ */