apply FSL license
[apps/home/settings.git] / setting-connectivity / include / setting-connectivity.h
1 /*
2   * Copyright 2012  Samsung Electronics Co., Ltd
3   *
4   * Licensed under the Flora License, Version 1.0 (the "License");
5   * you may not use this file except in compliance with the License.
6   * You may obtain a copy of the License at
7   *
8   *     http://www.tizenopensource.org/license
9   *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16
17
18 #ifndef __SETTING_CONNECTIVITY_H__
19 #define __SETTING_CONNECTIVITY_H__
20
21 #include <stdio.h>
22 #include <appcore-efl.h>
23 #include <Elementary.h>
24
25 #include <glib-object.h>
26
27 #include <ui-gadget.h>
28 #include <ui-gadget-module.h>
29 #include <bundle.h>
30
31 #include <heynoti.h>
32 #include <utilX.h>
33
34 #include <setting-common-draw-widget.h>
35 #include <setting-common-view.h>
36
37 enum mode_change {
38         NO_CHANGE = 0x00,
39         IN_CHANGE
40 };
41
42 enum usb_connection_status {
43         USB_CONNECTED = 0,
44         USB_DISCONNECTED,
45         GETTING_STATUS_FAIL
46 };
47
48 typedef struct _SettingConnectivityUG SettingConnectivityUG;
49
50 /**
51  * Setting Connectivity UG context
52  * all UG function has void* as an agument. this is casted back to SettingConnectivityUG 
53  * and the functions access app context.
54  */
55 struct _SettingConnectivityUG {
56         struct ui_gadget *ug;
57
58         /* add more variables here (move your appdata to here) */
59         Evas *evas;
60         Evas_Object *win_main_layout;
61         Evas_Object *win_get;
62         Evas_Object *navi_bar;
63
64         Evas_Object *ly_tvout;
65
66         Evas_Object *ly_usb;
67         Evas_Object *chk_con;
68
69         /*****/
70         setting_view *view_to_load;
71
72         Elm_Genlist_Item_Class itc_1text_1icon_2;
73         Elm_Genlist_Item_Class itc_2text_2;
74         Elm_Genlist_Item_Class itc_group_item;
75         Elm_Genlist_Item_Class itc_seperator;
76         Elm_Genlist_Item_Class itc_help_style;
77         int noti_fd;
78         int isUsbConnected;
79 };
80
81 extern setting_view setting_view_connectivity_usb;
82 extern setting_view setting_view_connectivity_usb_help;
83
84 int check_usb_jack_status();
85 void set_usb_mode_default();
86
87 #endif                          /* __SETTING_CONNECTIVITY_H__ */