4 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Youngae Kang <youngae.kang@samsung.com>, Yunhan Kim <yhan.kim@samsung.com>,
7 * Genie Kim <daejins.kim@samsung.com>, Minjune Kim <sena06.kim@samsung.com>
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
22 #ifndef __LOCATION_MAP_PREF_H__
23 #define __LOCATION_MAP_PREF_H__
25 #include <location-map-types.h>
30 * @file location-map-pref.h
31 * @brief This file contains the internal definitions and structures related to a service provider.
32 * @addtogroup LocationMapService
34 * @defgroup LocationMapServiceProvider Service Provider
35 * @brief This represents preference and capability of Service providers
36 * @addtogroup LocationMapServiceProvider
41 * @brief Get provider name to be used in the service request
43 gchar *location_map_pref_get_provider_name (const LocationMapPref *pref);
46 * @brief Get language to be used in the service request.
48 gchar *location_map_pref_get_language (const LocationMapPref *pref);
51 * @brief Get country to be used in the service request.
53 gchar *location_map_pref_get_country (const LocationMapPref *pref);
56 * @brief Get the preferred length unit to be used in the service request.
58 gchar *location_map_pref_get_distance_unit (const LocationMapPref *pref);
61 * @brief Get available service of the service provider.
63 GList *location_map_pref_get_property_key (const LocationMapPref *pref);
66 * @brief Get property to be used in the service request.
68 gconstpointer location_map_pref_get_property (const LocationMapPref *pref, gconstpointer key);
71 * @brief Set provider's name to be used in the service request.
73 gboolean location_map_pref_set_provider_name (LocationMapPref *pref, const gchar *name);
76 * @brief Set language to be used in the service request.
78 gboolean location_map_pref_set_language (LocationMapPref *pref, const gchar *language);
81 * @brief Set country to be used in the service request.
83 gboolean location_map_pref_set_country (LocationMapPref *pref, const gchar *country);
86 * @brief Get the preferred length unit to be used in the service request.
88 gboolean location_map_pref_set_distance_unit (LocationMapPref *pref, const gchar * unit);
91 * @brief Set property to be used in the service request.
93 gboolean location_map_pref_set_property (LocationMapPref *pref, gconstpointer key, gconstpointer value);
96 * @brief Create a new LocationMapPref.
98 LocationMapPref * location_map_pref_new (void);
101 * @brief Copy a new LocationMapPref.
103 LocationMapPref * location_map_pref_copy (LocationMapPref *pref);
106 * @brief Free a LocationMapPref.
108 void location_map_pref_free (LocationMapPref *pref);
116 #endif /* __LOCATION_MAP_PREF_H__ */