summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeotilespec_p_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_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_p.h')
-rw-r--r--src/location/maps/qgeotilespec_p_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/location/maps/qgeotilespec_p_p.h b/src/location/maps/qgeotilespec_p_p.h
index 80eaf8cb..ad50c13e 100644
--- a/src/location/maps/qgeotilespec_p_p.h
+++ b/src/location/maps/qgeotilespec_p_p.h
@@ -62,7 +62,7 @@ class QGeoTileSpecPrivate : public QSharedData
public:
QGeoTileSpecPrivate();
QGeoTileSpecPrivate(const QGeoTileSpecPrivate &other);
- QGeoTileSpecPrivate(const QString &plugin, int mapId, int zoom, int x, int y);
+ QGeoTileSpecPrivate(const QString &plugin, int mapId, int zoom, int x, int y, int version);
~QGeoTileSpecPrivate();
QGeoTileSpecPrivate &operator = (const QGeoTileSpecPrivate &other);
@@ -75,6 +75,7 @@ public:
int zoom_;
int x_;
int y_;
+ int version_;
};
QT_END_NAMESPACE