summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/osm/qgeofiletilecacheosm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/geoservices/osm/qgeofiletilecacheosm.h')
-rw-r--r--src/plugins/geoservices/osm/qgeofiletilecacheosm.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/geoservices/osm/qgeofiletilecacheosm.h b/src/plugins/geoservices/osm/qgeofiletilecacheosm.h
index 5f11004c..da1fd0d3 100644
--- a/src/plugins/geoservices/osm/qgeofiletilecacheosm.h
+++ b/src/plugins/geoservices/osm/qgeofiletilecacheosm.h
@@ -66,20 +66,17 @@ protected Q_SLOTS:
protected:
void init() override;
+ inline QString tileSpecToFilename(const QGeoTileSpec &spec, const QString &format, int providerId) const;
QString tileSpecToFilename(const QGeoTileSpec &spec, const QString &format, const QString &directory) const override;
QGeoTileSpec filenameToTileSpec(const QString &filename) const override;
QSharedPointer<QGeoTileTexture> getFromOfflineStorage(const QGeoTileSpec &spec);
void dropTiles(int mapId);
void loadTiles(int mapId);
- void initOfflineRegistry(int mapId);
void clearObsoleteTiles(const QGeoTileProviderOsm *p);
- QString m_offlineDirectory;
- QHash<QGeoTileSpec, QString> m_tilespecToOfflineFilepath;
- QMap<int, QAtomicInt> m_requestCancel;
- QMap<int, QFuture<void>> m_mapIdFutures;
- QMutex storageLock;
+ QDir m_offlineDirectory;
+ bool m_offlineData;
QVector<QGeoTileProviderOsm *> m_providers;
QVector<bool> m_highDpi;
QVector<QDateTime> m_maxMapIdTimestamps;