tizen 2.4 release
[apps/home/settings.git] / setting-moreconnections / include / setting-moreconnections.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_MORECONNECTIONS_H__
22 #define __SETTING_MORECONNECTIONS_H__
23
24 #include <stdio.h>
25 #include <string.h>
26 #include <Elementary.h>
27 #include <glib-object.h>
28 #include <setting-common-draw-widget.h>
29 #include <setting-common-view.h>
30 #include <setting-common-data-type.h>
31 #include <setting-cfg.h>
32 #include <locations.h>
33
34 #define KeyStr_On                               "IDS_ST_BODY_ON"
35 #define KeyStr_Off                              "IDS_ST_BODY_ALERTTYPE_OFF"
36 #define KeyStr_LocationService  "IDS_LBS_BODY_LOCATION_SERVICE"
37 #define KeyStr_VPN                              "IDS_ST_BODY_VPN"
38
39 typedef struct _SettingMoreConnectionsUG SettingMoreConnectionsUG;
40
41 /**
42  * Setting MoreConnections UG context
43  * all UG function has void* as an agument. this is casted back to SettingMoreConnectionsUG
44  * and the functions access app context.
45  */
46 struct _SettingMoreConnectionsUG {
47         ui_gadget_h ug;
48
49         /* add more variables here (move your appdata to here) */
50         Evas *evas;
51         Evas_Object *win_main_layout;
52         Evas_Object *win_get;
53
54         Evas_Object *ly_main;
55
56         /*  for navigation effect */
57         Evas_Object *navi_bar;
58         Elm_Object_Item *navi_item;
59
60         /* genlist */
61         Evas_Object *genlist;
62         Setting_GenGroupItem_Data *location_service;
63         Setting_GenGroupItem_Data *VPN;
64
65         /* item class */
66         Elm_Genlist_Item_Class itc_2text_2;
67         Elm_Genlist_Item_Class itc_1text;
68
69         bool empty_flag;
70
71 };
72
73 extern setting_view setting_view_moreconnections_main;
74 char *setting_location_is_enable(void *data);
75 void setting_moreconnections_layout_ug_cb(ui_gadget_h ug, enum ug_mode mode, void *priv);
76
77 #endif                          /* __SETTING_MORECONNECTIONS_H__ */