summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeotilespec_p.h
diff options
context:
space:
mode:
authorAnders Gunnarsson <anders.gunnarsson@appello.com>2014-02-12 09:01:03 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-03 16:08:00 +0100
commit61d235c2f5af88a0a22105722142f2c72817ee00 (patch)
treed310f0c75bc939589bdc9f20e28b824f63ac58f2 /src/location/maps/qgeotilespec_p.h
parent985a8b9c608503d90b7fe73f5a995ad2091f0070 (diff)
downloadqtlocation-61d235c2f5af88a0a22105722142f2c72817ee00.tar.gz
Tile cache versioning for Nokia maps
Added to avoid mixing of different map versions in map view. Generic cache versioning by adding an incremental version number to tile specs and filenames. Default version -1 falls back to not using version in file names for backward compatibility. Nokia specific version management by implementing the version request, comparing all version information and increment the version if anything has changed. Task-number: QTBUG-25559 Change-Id: I6820f2efbe7458701475cc833d3077022797b2df Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'src/location/maps/qgeotilespec_p.h')
-rw-r--r--src/location/maps/qgeotilespec_p.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/location/maps/qgeotilespec_p.h b/src/location/maps/qgeotilespec_p.h
index ae2db7b6..e918b64b 100644
--- a/src/location/maps/qgeotilespec_p.h
+++ b/src/location/maps/qgeotilespec_p.h
@@ -68,7 +68,7 @@ class Q_LOCATION_EXPORT QGeoTileSpec
public:
QGeoTileSpec();
QGeoTileSpec(const QGeoTileSpec &other);
- QGeoTileSpec(const QString &plugin, int mapId, int zoom, int x, int y);
+ QGeoTileSpec(const QString &plugin, int mapId, int zoom, int x, int y, int version = -1);
~QGeoTileSpec();
QGeoTileSpec &operator = (const QGeoTileSpec &other);
@@ -87,6 +87,9 @@ public:
void setMapId(int mapId);
int mapId() const;
+ void setVersion(int version);
+ int version() const;
+
bool operator == (const QGeoTileSpec &rhs) const;
bool operator < (const QGeoTileSpec &rhs) const;