1 /* -*- Mode: C; indent-tabs-mode: nil; c-basic-offset: 4; tab-width: 4 -*- */
2 /* vim:set et sw=4 ts=4 */
3 /*
4  * Copyright (C) 2013 John Stowers <john.stowers@gmail.com>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License
8  * as published by the Free Software Foundation; either version 2
9  * of the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, see <http://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef _OSM_GPS_MAP_SOURCE_H_
21 #define _OSM_GPS_MAP_SOURCE_H_
22 
23 #include <glib.h>
24 
25 G_BEGIN_DECLS
26 
27 typedef enum {
28     OSM_GPS_MAP_SOURCE_NULL,
29     OSM_GPS_MAP_SOURCE_OPENSTREETMAP,
30     OSM_GPS_MAP_SOURCE_OPENSTREETMAP_RENDERER,
31     OSM_GPS_MAP_SOURCE_OPENAERIALMAP,
32     OSM_GPS_MAP_SOURCE_MAPS_FOR_FREE,
33     OSM_GPS_MAP_SOURCE_OPENCYCLEMAP,
34     OSM_GPS_MAP_SOURCE_OSM_PUBLIC_TRANSPORT,
35     OSM_GPS_MAP_SOURCE_GOOGLE_STREET,
36     OSM_GPS_MAP_SOURCE_GOOGLE_SATELLITE,
37     OSM_GPS_MAP_SOURCE_GOOGLE_HYBRID,
38     OSM_GPS_MAP_SOURCE_VIRTUAL_EARTH_STREET,
39     OSM_GPS_MAP_SOURCE_VIRTUAL_EARTH_SATELLITE,
40     OSM_GPS_MAP_SOURCE_VIRTUAL_EARTH_HYBRID,
41     OSM_GPS_MAP_SOURCE_OSMC_TRAILS,
42 
43     OSM_GPS_MAP_SOURCE_LAST
44 } OsmGpsMapSource_t;
45 
46 const char* osm_gps_map_source_get_friendly_name    (OsmGpsMapSource_t source);
47 const char* osm_gps_map_source_get_repo_uri         (OsmGpsMapSource_t source);
48 const char* osm_gps_map_source_get_image_format     (OsmGpsMapSource_t source);
49 int         osm_gps_map_source_get_min_zoom         (OsmGpsMapSource_t source);
50 int         osm_gps_map_source_get_max_zoom         (OsmGpsMapSource_t source);
51 gboolean    osm_gps_map_source_is_valid             (OsmGpsMapSource_t source);
52 
53 G_END_DECLS
54 
55 #endif /* _OSM_GPS_MAP_SOURCE_H_ */
56