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 __MAP_SERVICE_H__
23 #define __MAP_SERVICE_H__
25 #include <glib-object.h>
26 #include <module-internal.h>
30 * @brief This file contains the internal definitions and structures related to a service provider.
35 typedef struct _MapService MapService;
36 typedef struct _MapServiceClass MapServiceClass;
37 typedef struct _MapServicePrivate MapServicePrivate;
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))
46 #define GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), MAP_TYPE_SERVICE, MapServicePrivate))
50 GObject parent_instance;
53 struct _MapServiceClass
55 GObjectClass parent_class;
58 struct _MapServicePrivate {
59 LocationServiceMod* mod;
60 LocationMapPref *pref;
63 GType map_service_get_type (void);
65 LocationMapPref *map_service_get_pref(GObject *obj);
67 gboolean map_service_set_pref (GObject *obj, LocationMapPref *pref);
71 #endif /* __MAP_SERVICE_H__ */