upload tizen1.0 source
[framework/location/libslp-location.git] / location / map-service / map-service.h
1 /*
2  * libslp-location
3  *
4  * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. All rights reserved.
5  *
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>
8  *
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
12  *
13  * http://www.apache.org/licenses/LICENSE-2.0
14  *
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.
20  */
21
22 #ifndef __MAP_SERVICE_H__
23 #define __MAP_SERVICE_H__
24
25 #include <glib-object.h>
26 #include <module-internal.h>
27
28 /**
29  * @file map-service.h
30  * @brief This file contains the internal definitions and structures related to a service provider.
31  */
32
33 G_BEGIN_DECLS
34
35 typedef struct _MapService        MapService;
36 typedef struct _MapServiceClass   MapServiceClass;
37 typedef struct _MapServicePrivate          MapServicePrivate;
38
39 #define MAP_TYPE_SERVICE                        (map_service_get_type ())
40 #define MAP_SERVICE(obj)                        (G_TYPE_CHECK_INSTANCE_CAST ((obj), MAP_TYPE_SERVICE, MapService))
41 #define MAP_IS_SERVICE(obj)             (G_TYPE_CHECK_INSTANCE_TYPE ((obj), MAP_TYPE_SERVICE))
42 #define MAP_SERVICE_CLASS(klass)                (G_TYPE_CHECK_CLASS_CAST ((klass), MAP_TYPE_SERVICE, MapServiceClass))
43 #define MAP_IS_SERVICE_CLASS(klass)     (G_TYPE_CHECK_CLASS_TYPE ((klass), MAP_TYPE_SERVICE))
44 #define MAP_SERVICE_GET_CLASS(obj)              (G_TYPE_INSTANCE_GET_CLASS ((obj), MAP_TYPE_SERVICE, MapServiceClass))
45
46 #define DEFAULT_SERVICE "decarta"
47
48 #define GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MAP_TYPE_SERVICE, MapServicePrivate))
49
50 struct _MapService
51 {
52         GObject parent_instance;
53 };
54
55 struct _MapServiceClass
56 {
57         GObjectClass parent_class;
58 };
59
60 struct _MapServicePrivate {
61         LocationServiceMod* mod;
62         LocationPreference *pref;
63 };
64
65 GType map_service_get_type (void);
66
67 LocationPreference *map_service_get_pref(GObject *obj);
68
69 gboolean map_service_set_preference (GObject *obj, LocationPreference *pref);
70
71 G_END_DECLS
72
73 #endif /* __MAP_SERVICE_H__ */