X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/1f78e182e7eaf305c3a10d2e145dbcc994d5e862..43e8b799d298705a645376a567b89faa20d55a87:/src/vikmapsource.h diff --git a/src/vikmapsource.h b/src/vikmapsource.h index 2954be34..c0b80f3c 100644 --- a/src/vikmapsource.h +++ b/src/vikmapsource.h @@ -1,7 +1,7 @@ /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ /* * viking - * Copyright (C) Guilhem Bonnefille 2009 + * Copyright (C) 2009-2010, Guilhem Bonnefille * * 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 @@ -41,13 +41,18 @@ typedef struct _VikMapSource VikMapSource; struct _VikMapSourceClass { GObjectClass parent_class; - + + /* Legal info */ + const gchar *(* get_copyright) (VikMapSource * self); + const gchar *(* get_license) (VikMapSource * self); + const gchar *(* get_license_url) (VikMapSource * self); + guint8 (* 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); - gboolean (* supports_if_modified_since) (VikMapSource * self); + gboolean (* supports_download_only_new) (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); @@ -62,12 +67,16 @@ struct _VikMapSource GType vik_map_source_get_type (void) G_GNUC_CONST; +const gchar *vik_map_source_get_copyright (VikMapSource * self); +const gchar *vik_map_source_get_license (VikMapSource * self); +const gchar *vik_map_source_get_license_url (VikMapSource * self); + guint8 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); -gboolean vik_map_source_supports_if_modified_since (VikMapSource * self); +gboolean vik_map_source_supports_download_only_new (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);