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
#ifndef _CHAMPLAIN_NETWORK_BBOX_TILE_SOURCE
21
#define _CHAMPLAIN_NETWORK_BBOX_TILE_SOURCE
22
23
#include <glib-object.h>
24
25
#include <champlain/champlain-tile-source.h>
26
#include <champlain/champlain-bounding-box.h>
27
28
G_BEGIN_DECLS
29
30
#define CHAMPLAIN_TYPE_NETWORK_BBOX_TILE_SOURCE champlain_network_bbox_tile_source_get_type ()
31
32
#define CHAMPLAIN_NETWORK_BBOX_TILE_SOURCE(obj) \
33
  (G_TYPE_CHECK_INSTANCE_CAST ((obj), CHAMPLAIN_TYPE_NETWORK_BBOX_TILE_SOURCE, ChamplainNetworkBboxTileSource))
34
35
#define CHAMPLAIN_NETWORK_BBOX_TILE_SOURCE_CLASS(klass) \
36
  (G_TYPE_CHECK_CLASS_CAST ((klass), CHAMPLAIN_TYPE_NETWORK_BBOX_TILE_SOURCE, ChamplainNetworkBboxTileSourceClass))
37
38
#define CHAMPLAIN_IS_NETWORK_BBOX_TILE_SOURCE(obj) \
39
  (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CHAMPLAIN_TYPE_NETWORK_BBOX_TILE_SOURCE))
40
41
#define CHAMPLAIN_IS_NETWORK_BBOX_TILE_SOURCE_CLASS(klass) \
42
  (G_TYPE_CHECK_CLASS_TYPE ((klass), CHAMPLAIN_TYPE_NETWORK_BBOX_TILE_SOURCE))
43
44
#define CHAMPLAIN_NETWORK_BBOX_TILE_SOURCE_GET_CLASS(obj) \
45
  (G_TYPE_INSTANCE_GET_CLASS ((obj), CHAMPLAIN_TYPE_NETWORK_BBOX_TILE_SOURCE, ChamplainNetworkBboxTileSourceClass))
46
47
typedef struct _ChamplainNetworkBboxTileSourcePrivate ChamplainNetworkBboxTileSourcePrivate;
48
49
typedef struct _ChamplainNetworkBboxTileSource ChamplainNetworkBboxTileSource;
50
typedef struct _ChamplainNetworkBboxTileSourceClass ChamplainNetworkBboxTileSourceClass;
51
52
/**
53
 * ChamplainNetworkBboxTileSource:
54
 *
55
 * The #ChamplainNetworkBboxTileSource structure contains only private data
56
 * and should be accessed using the provided API
57
 *
58
 * Since: 0.8
59
 */
60
struct _ChamplainNetworkBboxTileSource
61
{
62
  ChamplainTileSource parent;
63
64
  ChamplainNetworkBboxTileSourcePrivate *priv;
65
};
66
67
struct _ChamplainNetworkBboxTileSourceClass
68
{
69
  ChamplainTileSourceClass parent_class;
70
};
71
72
GType champlain_network_bbox_tile_source_get_type (void);
73
74
ChamplainNetworkBboxTileSource *champlain_network_bbox_tile_source_new_full (const gchar *id,
75
    const gchar *name,
76
    const gchar *license,
77
    const gchar *license_uri,
78
    guint min_zoom,
79
    guint max_zoom,
80
    guint tile_size,
81
    ChamplainMapProjection projection,
82
    ChamplainRenderer *renderer);
83
84
void champlain_network_bbox_tile_source_load_map_data (
85
    ChamplainNetworkBboxTileSource *map_data_source,
86
    ChamplainBoundingBox *bbox);
87
88
const gchar *champlain_network_bbox_tile_source_get_api_uri (
89
    ChamplainNetworkBboxTileSource *map_data_source);
90
91
void champlain_network_bbox_tile_source_set_api_uri (
92
    ChamplainNetworkBboxTileSource *map_data_source,
93
    const gchar *api_uri);
94
95
G_END_DECLS
96
97
#endif /* _CHAMPLAIN_NETWORK_BBOX_TILE_SOURCE */