diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-05-20 08:21:29 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-05-26 12:14:10 +0200 |
commit | 87b1da761156ec339ab4ccd159e6ba6997f9e7d0 (patch) | |
tree | a5b9bdedbff7f6d4edd6945d5ca4f29523b87c06 /include/mbgl/storage/default_file_source.hpp | |
parent | f11a9f8fd9f4a53195168518f6ef1efe782f1cf8 (diff) | |
download | qtlocation-mapboxgl-87b1da761156ec339ab4ccd159e6ba6997f9e7d0.tar.gz |
DefaultFileSource has responsibility for handling mapbox:// URLs
Diffstat (limited to 'include/mbgl/storage/default_file_source.hpp')
-rw-r--r-- | include/mbgl/storage/default_file_source.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp index 405b04a49c..8cfae03a96 100644 --- a/include/mbgl/storage/default_file_source.hpp +++ b/include/mbgl/storage/default_file_source.hpp @@ -15,6 +15,9 @@ public: DefaultFileSource(FileCache *cache, const std::string &root = ""); ~DefaultFileSource() override; + void setAccessToken(const std::string& t) { accessToken = t; } + std::string getAccessToken() const { return accessToken; } + // FileSource API Request* request(const Resource&, uv_loop_t*, Callback) override; void cancel(Request*) override; @@ -23,6 +26,7 @@ public: class Impl; private: const std::unique_ptr<util::Thread<Impl>> thread; + std::string accessToken; }; } |