summaryrefslogtreecommitdiff
path: root/src/viktmsmapsource.h
blob: 5b8d179ba26c35e4bfdadb869e0d72f5d40ff277 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */
/*
 * viking
 * Copyright (C) 2010, Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
 * 
 * viking is free software: you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * viking is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef _VIK_TMS_MAP_SOURCE_H
#define _VIK_TMS_MAP_SOURCE_H

#include "vikcoord.h"
#include "mapcoord.h"
#include "vikmapsourcedefault.h"

G_BEGIN_DECLS

#define VIK_TYPE_TMS_MAP_SOURCE             (vik_tms_map_source_get_type ())
#define VIK_TMS_MAP_SOURCE(obj)             (G_TYPE_CHECK_INSTANCE_CAST ((obj), VIK_TYPE_TMS_MAP_SOURCE, VikTmsMapSource))
#define VIK_TMS_MAP_SOURCE_CLASS(klass)     (G_TYPE_CHECK_CLASS_CAST ((klass), VIK_TYPE_TMS_MAP_SOURCE, VikTmsMapSourceClass))
#define VIK_IS_TMS_MAP_SOURCE(obj)          (G_TYPE_CHECK_INSTANCE_TYPE ((obj), VIK_TYPE_TMS_MAP_SOURCE))
#define VIK_IS_TMS_MAP_SOURCE_CLASS(klass)  (G_TYPE_CHECK_CLASS_TYPE ((klass), VIK_TYPE_TMS_MAP_SOURCE))
#define VIK_TMS_MAP_SOURCE_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), VIK_TYPE_TMS_MAP_SOURCE, VikTmsMapSourceClass))

typedef struct _VikTmsMapSourceClass VikTmsMapSourceClass;
typedef struct _VikTmsMapSource VikTmsMapSource;

struct _VikTmsMapSourceClass
{
	VikMapSourceDefaultClass parent_class;
};

struct _VikTmsMapSource
{
	VikMapSourceDefault parent_instance;
};

GType vik_tms_map_source_get_type (void) G_GNUC_CONST;

VikTmsMapSource * vik_tms_map_source_new_with_id (guint16 id, const gchar *label, const gchar *hostname, const gchar *url);

G_END_DECLS

#endif /* _VIK_TMS_MAP_SOURCE_H_ */