* limitations under the License.
*/
-#ifndef __LOCATION_TYPE_H__
-#define __LOCATION_TYPE_H__
+#ifndef __LOCATION_TYPES_H__
+#define __LOCATION_TYPES_H__
#include <glib.h>
#include <glib-object.h>
G_BEGIN_DECLS
-#ifndef LOCATION_DEPRECATED_API
-#define LOCATION_DEPRECATED_API __attribute__ ((deprecated))
-#endif
-
/**
* @file location-types.h
* @brief This file contains the Location related structure, enumeration, and asynchronous function definitions.
* @{
*/
+
/**
* @brief This represents the returned error code of used functions.
*/
LOCATION_METHOD_GPS, ///< This method uses Global Positioning System.
LOCATION_METHOD_WPS, ///< This method uses Wifi Positioning System.
LOCATION_METHOD_CPS, ///< This method uses cell ID of base station.
- LOCATION_METHOD_IPS, ///< This method uses IP address.
- LOCATION_METHOD_SPS ///< This method uses sensor.
} LocationMethod;
/**
- * @brief This represents the update type given by signal callback.
+ * @brief This represents the update type given by signal callback.
*/
typedef enum {
UPDATE_TYPE_NONE = -1, ///< Undefined update type.
POSITION_UPDATED = 0, ///< This type is used when position information is updated.
VELOCITY_UPDATED, ///< This type is used when velocity information is updated.
SATELLITE_UPDATED, ///< This type is used when satellite information is updated.
- ADDRESS_UPDATED, ///< This type is used when address information is updated. This is not implemented yet.
- GEOCODE_UPDATED, ///< This type is used when geocode information is updated. This is not implemented yet.
- REVERSEGEOCODE_UPDATED ///< This type is used when reverse geocode information is updated. This is not implemented yet.
} LocationUpdateType;
-typedef enum {
- MAP_SERVICE_PREF_LANGUAGE,
- MAP_SERVICE_PREF_DISTANCE_UNIT,
-
- MAP_SERVICE_PREF_PROPERTY,
-
- MAP_SERVICE_GEOCODE_TYPE,
- MAP_SERVICE_REVERSE_GEOCODE_TYPE,
-
- MAP_SERVICE_POI_TYPE,
- MAP_SERVICE_POI_SEARCH_BY_ADDRESS,
- MAP_SERVICE_POI_SEARCH_BY_FREEFORM_ADDRESS,
- MAP_SERVICE_POI_SEARCH_BY_CIRCLE_BOUNDARY,
- MAP_SERVICE_POI_SEARCH_BY_RECT_BOUNDARY,
- MAP_SERVICE_POI_SEARCH_BY_POLYGON_BOUNDARY,
- MAP_SERVICE_POI_PREF_SORT_BY,
- MAP_SERVICE_POI_PREF_PROPERTY,
- MAP_SERVICE_POI_FILTER,
- MAP_SERVICE_POI_FILTER_CATEGORY,
-
- MAP_SERVICE_ROUTE_REQUEST_FREEFORM_ADDR_TO_AVOID,
- MAP_SERVICE_ROUTE_REQUEST_STRUCTED_ADDR_TO_AVOID,
- MAP_SERVICE_ROUTE_REQUEST_CIRCLE_AREA_TO_AVOID,
- MAP_SERVICE_ROUTE_REQUEST_RECT_AREA_TO_AVOID,
- MAP_SERVICE_ROUTE_REQUEST_POLYGON_AREA_TO_AVOID,
- MAP_SERVICE_ROUTE_REQUEST_FEATURE_TO_AVOID,
- MAP_SERVICE_ROUTE_PREF_TYPE,
- MAP_SERVICE_ROUTE_PREF_TRANSPORT_MODE,
- MAP_SERVICE_ROUTE_PREF_GEOMETRY_BOUNDING_BOX,
- MAP_SERVICE_ROUTE_PREF_GEOMETRY_RETRIEVAL,
- MAP_SERVICE_ROUTE_PREF_INSTRUCTION_GEOMETRY,
- MAP_SERVICE_ROUTE_PREF_INSTRUCTION_BOUNDING_BOX,
- MAP_SERVICE_ROUTE_PREF_INSTRUCTION_RETRIEVAL,
- MAP_SERVICE_ROUTE_PREF_REALTIME_TRAFFIC,
- MAP_SERVICE_ROUTE_PREF_PROPERTY,
- MAP_SERVICE_ROUTE_DISTANCE_UNIT,
- MAP_SERVICE_ROUTE_PROPERTY,
- MAP_SERVICE_ROUTE_SEGMENT_PROPERTY,
- MAP_SERVICE_ROUTE_STEP_PROPERTY,
- MAP_SERVICE_TYPE_MAX
-
-} LocationMapServiceType;
-
/**
* @brief Location object redefined by GObject.
*/
typedef struct _LocationBoundary LocationBoundary;
/**
- * @brief This represents address information such as building number, street name, etc.
- */
-typedef struct _LocationAddress LocationAddress;
-
-/**
- * @brief This represents a structure of Location preference.
- */
-typedef struct _LocationPreference LocationPreference;
-
-/**
- * @brief This represents a structure of Location POI filter.
- */
-typedef struct _LocationPOIFilter LocationPOIFilter;
-
-/**
- * @brief This represents a structure of Location POI preference.
- */
-typedef struct _LocationPOIPreference LocationPOIPreference;
-
-/**
- * @brief This represents a structure of Landmark information.
- */
-typedef struct _LocationLandmark LocationLandmark;
-
-/**
- * @brief This represents a structure of Landmark Url.
- */
-typedef struct _LocationLandmarkUrl LocationLandmarkUrl;
-
-/**
- * @brief This represents a structure of Location route preference.
- */
-typedef struct _LocationRoutePreference LocationRoutePreference;
-
-/**
- * @brief This represents a structure of Location route.
- */
-typedef struct _LocationRoute LocationRoute;
-
-/**
- * @brief This represents a structure of Location route segment.
- */
-typedef struct _LocationRouteSegment LocationRouteSegment;
-
-/**
- * @brief This represents a structure of Location route step.
- */
-typedef struct _LocationRouteStep LocationRouteStep;
-
-/**
- * @brief This represents callback function which will be called to give position information.
- */
-typedef void (*LocationPositionCB)(LocationError error, GList *position_list, GList *accuracy_list, gpointer userdata);
-
-/**
- * @brief This represents callback function which will be called to give address information.
- */
-typedef void (*LocationAddressCB)(LocationError error, LocationAddress *address, LocationAccuracy *acc, gpointer userdata);
-
-/**
- * @brief This represents callback function which will be called to give POI information.
- */
-typedef void (*LocationPOICB)(LocationError error, guint req_id, GList *landmark_list, gchar *error_code, gchar *error_msg, gpointer userdata);
-
-/**
- * @brief This represents callback function which will be called to give Route information.
- */
-typedef void (*LocationRouteCB)(LocationError error, guint req_id, GList *route_list, gchar *error_code, gchar *error_msg, gpointer userdata);
-
-/**
* @}@}
*/
G_END_DECLS
-#endif /* __LOCATION_TYPE_H__ */
+#endif /* __LOCATION_TYPES_H__ */