1
/*
2
 * Copyright (C) 2009 Simon Wenner <simon@wenner.ch>
3
 * Copyright (C) 2010-2012 Jiri Techet <techet@gmail.com>
4
 *
5
 * This library is free software; you can redistribute it and/or
6
 * modify it under the terms of the GNU Lesser General Public
7
 * License as published by the Free Software Foundation; either
8
 * version 2.1 of the License, or (at your option) any later version.
9
 *
10
 * This library is distributed in the hope that it will be useful,
11
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13
 * Lesser General Public License for more details.
14
 *
15
 * You should have received a copy of the GNU Lesser General Public
16
 * License along with this library; if not, write to the Free Software
17
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
 */
19
20
#if !defined (__CHAMPLAIN_CHAMPLAIN_H_INSIDE__) && !defined (CHAMPLAIN_COMPILATION)
21
#error "Only <champlain/champlain.h> can be included directly."
22
#endif
23
24
#ifndef _CHAMPLAIN_FILE_TILE_SOURCE
25
#define _CHAMPLAIN_FILE_TILE_SOURCE
26
27
#include <glib-object.h>
28
29
#include <champlain/champlain-tile-source.h>
30
31
G_BEGIN_DECLS
32
33
#define CHAMPLAIN_TYPE_FILE_TILE_SOURCE champlain_file_tile_source_get_type ()
34
35
#define CHAMPLAIN_FILE_TILE_SOURCE(obj) \
36
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHAMPLAIN_TYPE_FILE_TILE_SOURCE, ChamplainFileTileSource))
37
38
#define CHAMPLAIN_FILE_TILE_SOURCE_CLASS(klass) \
39
  (G_TYPE_CHECK_CLASS_CAST ((klass), CHAMPLAIN_TYPE_FILE_TILE_SOURCE, ChamplainFileTileSourceClass))
40
41
#define CHAMPLAIN_IS_FILE_TILE_SOURCE(obj) \
42
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CHAMPLAIN_TYPE_FILE_TILE_SOURCE))
43
44
#define CHAMPLAIN_IS_FILE_TILE_SOURCE_CLASS(klass) \
45
  (G_TYPE_CHECK_CLASS_TYPE ((klass), CHAMPLAIN_TYPE_FILE_TILE_SOURCE))
46
47
#define CHAMPLAIN_FILE_TILE_SOURCE_GET_CLASS(obj) \
48
  (G_TYPE_INSTANCE_GET_CLASS ((obj), CHAMPLAIN_TYPE_FILE_TILE_SOURCE, ChamplainFileTileSourceClass))
49
50
typedef struct _ChamplainFileTileSourcePrivate ChamplainFileTileSourcePrivate;
51
52
typedef struct _ChamplainFileTileSource ChamplainFileTileSource;
53
typedef struct _ChamplainFileTileSourceClass ChamplainFileTileSourceClass;
54
55
/**
56
 * ChamplainFileTileSource:
57
 *
58
 * The #ChamplainFileTileSource structure contains only private data
59
 * and should be accessed using the provided API
60
 *
61
 * Since: 0.8
62
 */
63
struct _ChamplainFileTileSource
64
{
65
  ChamplainTileSource parent;
66
};
67
68
struct _ChamplainFileTileSourceClass
69
{
70
  ChamplainTileSourceClass parent_class;
71
};
72
73
GType champlain_file_tile_source_get_type (void);
74
75
ChamplainFileTileSource *champlain_file_tile_source_new_full (const gchar *id,
76
    const gchar *name,
77
    const gchar *license,
78
    const gchar *license_uri,
79
    guint min_zoom,
80
    guint max_zoom,
81
    guint tile_size,
82
    ChamplainMapProjection projection,
83
    ChamplainRenderer *renderer);
84
85
void champlain_file_tile_source_load_map_data (
86
    ChamplainFileTileSource *self,
87
    const gchar *map_path);
88
89
G_END_DECLS
90
91
#endif /* _CHAMPLAIN_FILE_TILE_SOURCE */