X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/2bf635ef2201a91e4d9bb2654d0fca9693cc6c62..0b2bfa088d539a7c0fcc3ba7baec6e523f587910:/src/vikmapsource.h diff --git a/src/vikmapsource.h b/src/vikmapsource.h index e56545de..516baa86 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 @@ -25,6 +25,7 @@ #include "vikviewport.h" #include "vikcoord.h" #include "mapcoord.h" +#include "bbox.h" G_BEGIN_DECLS @@ -41,7 +42,13 @@ typedef struct _VikMapSource VikMapSource; struct _VikMapSourceClass { GObjectClass parent_class; - + + /* Legal info */ + void (* get_copyright) (VikMapSource * self, LatLonBBox bbox, gdouble zoom, void (*fct)(VikViewport*,const gchar*), void *data); + const gchar *(* get_license) (VikMapSource * self); + const gchar *(* get_license_url) (VikMapSource * self); + const GdkPixbuf *(* get_logo) (VikMapSource * self); + guint8 (* get_uniq_id) (VikMapSource * self); const gchar * (* get_label) (VikMapSource * self); guint16 (* get_tilesize_x) (VikMapSource * self); @@ -62,6 +69,11 @@ struct _VikMapSource GType vik_map_source_get_type (void) G_GNUC_CONST; +void vik_map_source_get_copyright (VikMapSource * self, LatLonBBox bbox, gdouble zoom, void (*fct)(VikViewport*,const gchar*), void *data); +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); + 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);