1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
4 * Copyright (C) Guilhem Bonnefille 2009 <guilhem.bonnefille@gmail.com>
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.
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.
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/>.
20 #ifndef _VIK_SLIPPY_MAP_SOURCE_H
21 #define _VIK_SLIPPY_MAP_SOURCE_H
25 #include "vikmapsourcedefault.h"
30 #define VIK_TYPE_SLIPPY_MAP_SOURCE (vik_slippy_map_source_get_type ())
31 #define VIK_SLIPPY_MAP_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIK_TYPE_SLIPPY_MAP_SOURCE, VikSlippyMapSource))
32 #define VIK_SLIPPY_MAP_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIK_TYPE_SLIPPY_MAP_SOURCE, VikSlippyMapSourceClass))
33 #define VIK_IS_SLIPPY_MAP_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIK_TYPE_SLIPPY_MAP_SOURCE))
34 #define VIK_IS_SLIPPY_MAP_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIK_TYPE_SLIPPY_MAP_SOURCE))
35 #define VIK_SLIPPY_MAP_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIK_TYPE_SLIPPY_MAP_SOURCE, VikSlippyMapSourceClass))
37 typedef struct _VikSlippyMapSourceClass VikSlippyMapSourceClass;
38 typedef struct _VikSlippyMapSource VikSlippyMapSource;
40 struct _VikSlippyMapSourceClass
42 VikMapSourceDefaultClass parent_class;
44 gchar * (*get_uri) ( VikSlippyMapSource *self, MapCoord *src );
45 gchar * (*get_hostname) ( VikSlippyMapSource *self );
46 DownloadOptions * (*get_download_options) ( VikSlippyMapSource *self );
49 struct _VikSlippyMapSource
51 VikMapSourceDefault parent_instance;
54 GType vik_slippy_map_source_get_type (void) G_GNUC_CONST;
56 VikSlippyMapSource * vik_slippy_map_source_new_with_id (guint8 id, const gchar *label, const gchar *hostname, const gchar *url);
58 gchar * vik_slippy_map_source_get_uri( VikSlippyMapSource *self, MapCoord *src );
59 gchar * vik_slippy_map_source_get_hostname( VikSlippyMapSource *self );
60 DownloadOptions * vik_slippy_map_source_get_download_options( VikSlippyMapSource *self );
64 #endif /* _VIK_SLIPPY_MAP_SOURCE_H_ */