summaryrefslogtreecommitdiff
path: root/src/location/maps/qabstractgeotilecache_p.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2016-10-19 17:14:22 +0200
committerPaolo Angelelli <paolo.angelelli@qt.io>2016-11-23 11:40:26 +0000
commitf52d84f4c750dfdaba8f4f0c241994b7364ec5fc (patch)
treefe04ea8bce5c5e48fea10099c042544324218b3d /src/location/maps/qabstractgeotilecache_p.h
parent3a6fb42cb2bb72f51f9fc05c5f6651a659cb9c8b (diff)
downloadqtlocation-f52d84f4c750dfdaba8f4f0c241994b7364ec5fc.tar.gz
Improve support for unitary tile cost in QGeoFileTileCache
This patch adds support for separate caching mode for each of the three caches, disk, memory and texture. It also adds separate plugin parameters to the mapbox plugin to control the functioning of each of these cache. By default it only sets the disk cache to unitary, to comply with mapbox TOS, and leaves the other two caches to bytesize behavior (old beavior). Change-Id: I665d40568f4e69a836d7489e1daa2d8dcb8987af Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io>
Diffstat (limited to 'src/location/maps/qabstractgeotilecache_p.h')
-rw-r--r--src/location/maps/qabstractgeotilecache_p.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/location/maps/qabstractgeotilecache_p.h b/src/location/maps/qabstractgeotilecache_p.h
index 6660d13a..484bb8a5 100644
--- a/src/location/maps/qabstractgeotilecache_p.h
+++ b/src/location/maps/qabstractgeotilecache_p.h
@@ -107,8 +107,12 @@ public:
virtual int minTextureUsage() const = 0;
virtual int textureUsage() const = 0;
virtual void clearAll() = 0;
- virtual void setCostStrategy(CostStrategy costStrategy) = 0;
- virtual CostStrategy costStrategy() = 0;
+ virtual void setCostStrategyDisk(CostStrategy costStrategy) = 0;
+ virtual CostStrategy costStrategyDisk() const = 0;
+ virtual void setCostStrategyMemory(CostStrategy costStrategy) = 0;
+ virtual CostStrategy costStrategyMemory() const = 0;
+ virtual void setCostStrategyTexture(CostStrategy costStrategy) = 0;
+ virtual CostStrategy costStrategyTexture() const = 0;
virtual QSharedPointer<QGeoTileTexture> get(const QGeoTileSpec &spec) = 0;