]> git.street.me.uk Git - andy/viking.git/blame - src/vikslippymapsource.h
[QA] Rename and correct some map cache variables usage for better understanding.
[andy/viking.git] / src / vikslippymapsource.h
CommitLineData
8eb12ac6
GB
1/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
2/*
3 * viking
a482007a 4 * Copyright (C) 2009, Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
8eb12ac6
GB
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
98264f5e 8 * Free Software Foundation, either version 2 of the License, or
8eb12ac6
GB
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_SLIPPY_MAP_SOURCE_H
21#define _VIK_SLIPPY_MAP_SOURCE_H
22
2190abbc
GB
23#include <glib.h>
24
8eb12ac6
GB
25#include "vikcoord.h"
26#include "mapcoord.h"
27#include "vikmapsourcedefault.h"
8eb12ac6
GB
28
29G_BEGIN_DECLS
30
31#define VIK_TYPE_SLIPPY_MAP_SOURCE (vik_slippy_map_source_get_type ())
32#define VIK_SLIPPY_MAP_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIK_TYPE_SLIPPY_MAP_SOURCE, VikSlippyMapSource))
33#define VIK_SLIPPY_MAP_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), VIK_TYPE_SLIPPY_MAP_SOURCE, VikSlippyMapSourceClass))
34#define VIK_IS_SLIPPY_MAP_SOURCE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIK_TYPE_SLIPPY_MAP_SOURCE))
35#define VIK_IS_SLIPPY_MAP_SOURCE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), VIK_TYPE_SLIPPY_MAP_SOURCE))
36#define VIK_SLIPPY_MAP_SOURCE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), VIK_TYPE_SLIPPY_MAP_SOURCE, VikSlippyMapSourceClass))
37
38typedef struct _VikSlippyMapSourceClass VikSlippyMapSourceClass;
39typedef struct _VikSlippyMapSource VikSlippyMapSource;
40
41struct _VikSlippyMapSourceClass
42{
43 VikMapSourceDefaultClass parent_class;
8eb12ac6
GB
44};
45
46struct _VikSlippyMapSource
47{
48 VikMapSourceDefault parent_instance;
49};
50
51GType vik_slippy_map_source_get_type (void) G_GNUC_CONST;
52
d7e495b2 53VikSlippyMapSource * vik_slippy_map_source_new_with_id (guint16 id, const gchar *label, const gchar *hostname, const gchar *url);
8eb12ac6 54
8eb12ac6
GB
55G_END_DECLS
56
57#endif /* _VIK_SLIPPY_MAP_SOURCE_H_ */