summaryrefslogtreecommitdiff
path: root/src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.h
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-07-01 22:49:47 +0200
committerPaolo Angelelli <paolo.angelelli@theqtcompany.com>2016-07-21 14:44:53 +0000
commitfcee1ba3a93de83b94c3467e82684890812558d1 (patch)
tree2caac58f3f420c88dabd90ad52f15b339b3ed3ae /src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.h
parentd7c02e9dace021a013cae7a6878378d5a63a62eb (diff)
downloadqtlocation-fcee1ba3a93de83b94c3467e82684890812558d1.tar.gz
OSM Geoservice plugin improvements, including offline data support
This patch contains improvements for the OSM geoservice plugin, in form of property-controllable disk cache, and the support for a directory containing an offline dataset. The offline directory can contain subdirectories also in form of symlinks. If duplicate tiles are present, the newest is used. The population of the offline tiles registry is offloaded to a thread to prevent blocking the startup of the application. No synchronization is used (except on cache destruction), so that, as the tiles are being indexed, they can be used in the application. For the time being, no support is given to populate such directory (mostly due to current API limitations), but tiles can be placed manually, for example copying them from the disk cache directory. Task-number: QTBUG-45284 Change-Id: I518980669a3ee474545025adf05adc69cdd29781 Reviewed-by: Paolo Angelelli <paolo.angelelli@theqtcompany.com> Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.h')
-rw-r--r--src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.h b/src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.h
index e0f7d873..4998caf9 100644
--- a/src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.h
+++ b/src/plugins/geoservices/osm/qgeotiledmappingmanagerengineosm.h
@@ -60,6 +60,8 @@ public:
private:
QString m_customCopyright;
+ QString m_cacheDirectory;
+ QString m_offlineDirectory;
};
QT_END_NAMESPACE