diff options
author | Anders Gunnarsson <anders.gunnarsson@appello.com> | 2014-02-12 09:01:03 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-03 16:08:00 +0100 |
commit | 61d235c2f5af88a0a22105722142f2c72817ee00 (patch) | |
tree | d310f0c75bc939589bdc9f20e28b824f63ac58f2 /src/location/maps/qgeotilespec_p.h | |
parent | 985a8b9c608503d90b7fe73f5a995ad2091f0070 (diff) | |
download | qtlocation-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.h | 5 |
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; |