Fix ug-setting-location-efl build into pure Wayland profile.
[platform/core/location/ug-setting-location-efl.git] / libug-setting-location-efl.h
1 /*
2  * Open Service Platform
3  * Copyright (c) 2012-2013  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
18 #ifndef __libug_setting_location_efl_H__
19 #define __libug_setting_location_efl_H__
20
21 #include <Elementary.h>
22 #include <ui-gadget.h>
23 #include <libintl.h>
24 #include <locations.h>
25 #include <dlog.h>
26 #include <glib.h>
27
28 #define _EDJ(x)                 (Evas_Object *)elm_layout_edje_get(x)
29
30 #define PKGNAME                 "ug-setting-location-efl"
31
32 #define _(s)                    dgettext(PKGNAME, s)
33 #define S_(s)                   dgettext("sys_string", s)
34 #define dgettext_noop(s)        (s)
35 #define N_(s)                   dgettext_noop(s)
36
37 #define KEY_ENABLED     1
38 #define KEY_DISABLED    0
39
40 struct ug_data {
41         Evas_Object *base;
42
43         ui_gadget_h ug;
44
45         Evas_Object *naviframe;
46         Evas_Object *genlist;
47         Elm_Object_Item *gi_gps, *gi_net, *gi_agps;
48         Elm_Object_Item *gi_mypos, *gi_help, *gi_msg;
49         Elm_Object_Item *gi_top_sep, *gi_mid_sep, *gi_bot_sep;
50         Elm_Object_Item *gi_lat, *gi_long, *gi_alt, *gi_speed;
51         Evas_Object *tg_gps, *tg_net, *tg_agps;
52         Elm_Genlist_Item_Class *itc_gps, *itc_agps, *itc_net, *itc_mypos, *itc_help;
53         Elm_Genlist_Item_Class *itc_msg, *itc_help_msg;
54         Elm_Genlist_Item_Class *itc_top_sep, *itc_mid_sep, *itc_bot_sep;
55         Elm_Genlist_Item_Class *itc_lat, *itc_long, *itc_alt, *itc_speed;
56         int is_gps, is_net, is_agps;
57
58         location_manager_h loc;
59         double latitude, longitude, altitude, speed;
60
61         int app_count;
62         int opt_index;
63 };
64
65 #endif                          /* __libug_setting_location_efl_H__ */