]> git.street.me.uk Git - andy/viking.git/blob - src/vikmapsourcedefault.h
Tidy up: simpler and better use of trackpoint free methods in TRW Layer.
[andy/viking.git] / src / vikmapsourcedefault.h
1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2 /*
3  * viking
4  * Copyright (C) 2009, Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
5  * 
6  * viking is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by the
8  * Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  * 
11  * viking is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  * See the GNU General Public License for more details.
15  * 
16  * You should have received a copy of the GNU General Public License along
17  * with this program.  If not, see <http://www.gnu.org/licenses/>.
18  */
19
20 #ifndef _VIK_MAP_SOURCE_DEFAULT_H_
21 #define _VIK_MAP_SOURCE_DEFAULT_H_
22
23 #include <glib-object.h>
24
25 #include "vikmapsource.h"
26 #include "download.h"
27
28 G_BEGIN_DECLS
29
30 #define VIK_TYPE_MAP_SOURCE_DEFAULT             (vik_map_source_default_get_type ())
31 #define VIK_MAP_SOURCE_DEFAULT(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIK_TYPE_MAP_SOURCE_DEFAULT, VikMapSourceDefault))
32 #define VIK_MAP_SOURCE_DEFAULT_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), VIK_TYPE_MAP_SOURCE_DEFAULT, VikMapSourceDefaultClass))
33 #define VIK_IS_MAP_SOURCE_DEFAULT(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIK_TYPE_MAP_SOURCE_DEFAULT))
34 #define VIK_IS_MAP_SOURCE_DEFAULT_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), VIK_TYPE_MAP_SOURCE_DEFAULT))
35 #define VIK_MAP_SOURCE_DEFAULT_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), VIK_TYPE_MAP_SOURCE_DEFAULT, VikMapSourceDefaultClass))
36
37 typedef struct _VikMapSourceDefaultClass VikMapSourceDefaultClass;
38 typedef struct _VikMapSourceDefault VikMapSourceDefault;
39
40 struct _VikMapSourceDefaultClass
41 {
42         VikMapSourceClass parent_class;
43
44         gchar * (*get_uri) ( VikMapSourceDefault *self, MapCoord *src );
45         gchar * (*get_hostname) ( VikMapSourceDefault *self );
46         DownloadMapOptions * (*get_download_options) ( VikMapSourceDefault *self );
47 };
48
49 struct _VikMapSourceDefault
50 {
51         VikMapSource parent_instance;
52 };
53
54 GType vik_map_source_default_get_type (void) G_GNUC_CONST;
55 gchar * vik_map_source_default_get_uri( VikMapSourceDefault *self, MapCoord *src );
56 gchar * vik_map_source_default_get_hostname( VikMapSourceDefault *self );
57 DownloadMapOptions * vik_map_source_default_get_download_options( VikMapSourceDefault *self );
58
59 G_END_DECLS
60
61 #endif /* _VIK_MAP_SOURCE_DEFAULT_H_ */