summaryrefslogtreecommitdiff
path: root/include/mbgl
diff options
context:
space:
mode:
authorŁukasz Paczos <lukas.paczos@gmail.com>2019-05-14 14:54:24 +0200
committerŁukasz Paczos <lukasz.paczos@mapbox.com>2019-05-24 15:03:55 +0200
commit46ef2d86d2065aaaa63e8c83c750e46c74932777 (patch)
tree22e1e0321281830c11d08b22b901250dbc137860 /include/mbgl
parent749044f1b084b7172bd0ac93b0a450599f246f56 (diff)
downloadqtlocation-mapboxgl-46ef2d86d2065aaaa63e8c83c750e46c74932777.tar.gz
[core] invoke optional resource path change completion listener
Diffstat (limited to 'include/mbgl')
-rw-r--r--include/mbgl/storage/default_file_source.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp
index 10a836094c..2a1e32baed 100644
--- a/include/mbgl/storage/default_file_source.hpp
+++ b/include/mbgl/storage/default_file_source.hpp
@@ -18,6 +18,9 @@ template <typename T> class Thread;
class ResourceTransform;
+// TODO: the callback should include a potential error info when https://github.com/mapbox/mapbox-gl-native/issues/14759 is resolved
+using PathChangeCallback = std::function<void ()>;
+
class DefaultFileSource : public FileSource {
public:
/*
@@ -47,7 +50,7 @@ public:
void setResourceTransform(optional<ActorRef<ResourceTransform>>&&);
- void setResourceCachePath(const std::string&);
+ void setResourceCachePath(const std::string&, optional<ActorRef<PathChangeCallback>>&&);
std::unique_ptr<AsyncRequest> request(const Resource&, Callback) override;