]> git.street.me.uk Git - andy/viking.git/blobdiff - src/vikmapsource.h
Remove definition of a non existant function
[andy/viking.git] / src / vikmapsource.h
index 516baa866921c09254a4c1ece1d45000428c77a8..44a811e6e5abb1526b82f5abbcf88d72137f89f7 100644 (file)
@@ -49,12 +49,23 @@ struct _VikMapSourceClass
        const gchar *(* get_license_url) (VikMapSource * self);
        const GdkPixbuf *(* get_logo) (VikMapSource * self);
 
        const gchar *(* get_license_url) (VikMapSource * self);
        const GdkPixbuf *(* get_logo) (VikMapSource * self);
 
-       guint8 (* get_uniq_id) (VikMapSource * self);
+       const gchar *(* get_name) (VikMapSource * self);
+       guint16 (* get_uniq_id) (VikMapSource * self);
        const gchar * (* get_label) (VikMapSource * self);
        guint16 (* get_tilesize_x) (VikMapSource * self);
        guint16 (* get_tilesize_y) (VikMapSource * self);
        VikViewportDrawMode (* get_drawmode) (VikMapSource * self);
        const gchar * (* get_label) (VikMapSource * self);
        guint16 (* get_tilesize_x) (VikMapSource * self);
        guint16 (* get_tilesize_y) (VikMapSource * self);
        VikViewportDrawMode (* get_drawmode) (VikMapSource * self);
+       gboolean (* is_direct_file_access) (VikMapSource * self);
+       gboolean (* is_mbtiles) (VikMapSource * self);
+       gboolean (* is_osm_meta_tiles) (VikMapSource * self);
        gboolean (* supports_download_only_new) (VikMapSource * self);
        gboolean (* supports_download_only_new) (VikMapSource * self);
+       guint8 (* get_zoom_min) (VikMapSource * self);
+       guint8 (* get_zoom_max) (VikMapSource * self);
+       gdouble (* get_lat_min) (VikMapSource * self);
+       gdouble (* get_lat_max) (VikMapSource * self);
+       gdouble (* get_lon_min) (VikMapSource * self);
+       gdouble (* get_lon_max) (VikMapSource * self);
+       const gchar * (* get_file_extension) (VikMapSource * self);
        gboolean (* coord_to_mapcoord) (VikMapSource * self, const VikCoord * src, gdouble xzoom, gdouble yzoom, MapCoord * dest);
        void (* mapcoord_to_center_coord) (VikMapSource * self, MapCoord * src, VikCoord * dest);
        int (* download) (VikMapSource * self, MapCoord * src, const gchar * dest_fn, void * handle);
        gboolean (* coord_to_mapcoord) (VikMapSource * self, const VikCoord * src, gdouble xzoom, gdouble yzoom, MapCoord * dest);
        void (* mapcoord_to_center_coord) (VikMapSource * self, MapCoord * src, VikCoord * dest);
        int (* download) (VikMapSource * self, MapCoord * src, const gchar * dest_fn, void * handle);
@@ -74,12 +85,23 @@ const gchar *vik_map_source_get_license (VikMapSource * self);
 const gchar *vik_map_source_get_license_url (VikMapSource * self);
 const GdkPixbuf *vik_map_source_get_logo (VikMapSource * self);
 
 const gchar *vik_map_source_get_license_url (VikMapSource * self);
 const GdkPixbuf *vik_map_source_get_logo (VikMapSource * self);
 
-guint8 vik_map_source_get_uniq_id (VikMapSource * self);
+const gchar *vik_map_source_get_name (VikMapSource * self);
+guint16 vik_map_source_get_uniq_id (VikMapSource * self);
 const gchar *vik_map_source_get_label (VikMapSource * self);
 guint16 vik_map_source_get_tilesize_x (VikMapSource * self);
 guint16 vik_map_source_get_tilesize_y (VikMapSource * self);
 VikViewportDrawMode vik_map_source_get_drawmode (VikMapSource * self);
 const gchar *vik_map_source_get_label (VikMapSource * self);
 guint16 vik_map_source_get_tilesize_x (VikMapSource * self);
 guint16 vik_map_source_get_tilesize_y (VikMapSource * self);
 VikViewportDrawMode vik_map_source_get_drawmode (VikMapSource * self);
+gboolean vik_map_source_is_direct_file_access (VikMapSource * self);
+gboolean vik_map_source_is_mbtiles (VikMapSource * self);
+gboolean vik_map_source_is_osm_meta_tiles (VikMapSource * self);
 gboolean vik_map_source_supports_download_only_new (VikMapSource * self);
 gboolean vik_map_source_supports_download_only_new (VikMapSource * self);
+guint8 vik_map_source_get_zoom_min (VikMapSource * self);
+guint8 vik_map_source_get_zoom_max (VikMapSource * self);
+gdouble vik_map_source_get_lat_min (VikMapSource * self);
+gdouble vik_map_source_get_lat_max (VikMapSource * self);
+gdouble vik_map_source_get_lon_min (VikMapSource * self);
+gdouble vik_map_source_get_lon_max (VikMapSource * self);
+const gchar * vik_map_source_get_file_extension (VikMapSource * self);
 gboolean vik_map_source_coord_to_mapcoord (VikMapSource * self, const VikCoord *src, gdouble xzoom, gdouble yzoom, MapCoord *dest );
 void vik_map_source_mapcoord_to_center_coord (VikMapSource * self, MapCoord *src, VikCoord *dest);
 int vik_map_source_download (VikMapSource * self, MapCoord * src, const gchar * dest_fn, void * handle);
 gboolean vik_map_source_coord_to_mapcoord (VikMapSource * self, const VikCoord *src, gdouble xzoom, gdouble yzoom, MapCoord *dest );
 void vik_map_source_mapcoord_to_center_coord (VikMapSource * self, MapCoord *src, VikCoord *dest);
 int vik_map_source_download (VikMapSource * self, MapCoord * src, const gchar * dest_fn, void * handle);