Tizen 2.1 base
[apps/core/preloaded/ug-camera-efl.git] / include / cam_lbs.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://floralicense.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 __DEF_cam_lbs_H_
19 #define __DEF_cam_lbs_H_
20
21 #include <glib.h>
22
23 typedef enum {
24         CAM_LBS_STATE_DISABLE = 0,      /* disable or stop */
25         CAM_LBS_STATE_SERVICE_START,    /* start */
26         CAM_LBS_STATE_SERVICE_ENABLE,   /* enable service */
27         CAM_LBS_STATE_ACCURANCY_ROUGH,  /* rough,  if < LOCATION_ACCURACY_LEVEL_STREET */
28         CAM_LBS_STATE_ACCURANCY_DETAILED,       /* detail,  if >= LOCATION_ACCURACY_LEVEL_STREET */
29         CAM_LBS_STATE_NUM
30 } CamLBSState;
31
32 gboolean cam_lbs_init(void);
33 gboolean cam_lbs_finialize(void);
34 gboolean cam_lbs_start(void (*lbs_update_cb) (void *data, int lbs_state),
35                        void *data);
36 gboolean cam_lbs_stop(void);
37
38 gboolean cam_lbs_is_valid(void);
39
40 gboolean cam_lbs_get_current_position(double *longitude, double *latitude,
41                                                                                         double *altitude, time_t *time_stamp);
42 gboolean cam_lbs_get_address(char *address, int max_length);
43
44 int cam_lbs_get_state(void);
45
46 #endif                          /* __DEF_cam_lbs_H_ */