summaryrefslogtreecommitdiff
path: root/libug-setting-location-efl.h
blob: bcbe0f926b4950d7edf305b52836be9201fe131e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*
 * Copyright 2012  Samsung Electronics Co., Ltd
 *
 * Licensed under the Flora License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.tizenopensource.org/license
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef __libug_setting_location_efl_H__
#define __libug_setting_location_efl_H__

#include <Elementary.h>
#include <libintl.h>
#include <vconf.h>
#include <locations.h>
#include <dlog.h>

#define VCONF_LOCATION_PATH 	"db/location"

#define LOCATION_SETTING_PATH 	VCONF_LOCATION_PATH"/setting"
#define LOCATION_ENABLED 	LOCATION_SETTING_PATH"/GpsEnabled"
#define AGPS_ENABLED 		LOCATION_SETTING_PATH"/AgpsEnabled"
#define NETWORK_ENABLED 	LOCATION_SETTING_PATH"/NetworkEnabled"
#define SENSOR_ENABLED 		LOCATION_SETTING_PATH"/SensorEnabled"

#ifndef FALSE
#define FALSE (0)
#endif

#ifndef TRUE
#define TRUE (!FALSE)
#endif

#define _EDJ(x) 		(Evas_Object *)elm_layout_edje_get(x)

#define PKGNAME			"ug-setting-location-efl"

#define _(s)			dgettext(PKGNAME, s)
#define S_(s)			dgettext("sys_string", s)
#define dgettext_noop(s)	(s)
#define N_(s)			dgettext_noop(s)

struct ug_data {
	Evas_Object *base;

	struct ui_gadget *ug;

	Evas_Object *naviframe;
	Evas_Object *genlist;
	Elm_Object_Item *gi_gps, *gi_net, *gi_agps, *gi_sensor;
	Elm_Object_Item *gi_mypos, *gi_help;
	Elm_Object_Item *gi_lat, *gi_long, *gi_alt, *gi_speed;
	Evas_Object *tg_gps, *tg_net, *tg_agps, *tg_sensor;
	Elm_Genlist_Item_Class *itc_gps, *itc_agps, *itc_net, *itc_sensor,
	    *itc_mypos, *itc_help;
	Elm_Genlist_Item_Class *itc_sep, *itc_msg, *itc_help_msg;
	Elm_Genlist_Item_Class *itc_lat, *itc_long, *itc_alt, *itc_speed;
	int is_location, is_net, is_agps, is_sensor;
	Eina_Bool restricted;

	location_manager_h loc;
	double latitude, longitude, altitude, speed;
};

#endif				/* __libug_setting_location_efl_H__ */