diff options
author | Thiago Marcos P. Santos <thiago@mapbox.com> | 2017-02-24 15:08:49 +0200 |
---|---|---|
committer | Thiago Marcos P. Santos <tmpsantos@gmail.com> | 2017-02-25 14:03:38 +0200 |
commit | 4c2e720b1522d2a45980ac8dcf34d2a3783cf426 (patch) | |
tree | 991b4c938ff943fd950d83b4d78e9ff1fac27d4e /include/mbgl/storage | |
parent | bc5e9afd0d9332433c3356064352b54cfbf5aee5 (diff) | |
download | qtlocation-mapboxgl-4c2e720b1522d2a45980ac8dcf34d2a3783cf426.tar.gz |
[core] Add a pause/resume API to the DefaultFileSource
It will halt the networking thread completely. Expired and error'ed
tiles won't get re-requested until resume() is called again.
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r-- | include/mbgl/storage/default_file_source.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp index a15ee9a29b..effc60745e 100644 --- a/include/mbgl/storage/default_file_source.hpp +++ b/include/mbgl/storage/default_file_source.hpp @@ -115,6 +115,9 @@ public: */ void setOfflineMapboxTileCountLimit(uint64_t) const; + void pause(); + void resume(); + // For testing only. void put(const Resource&, const Response&); |