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 | |
parent | f11a9f8fd9f4a53195168518f6ef1efe782f1cf8 (diff) | |
download | qtlocation-mapboxgl-87b1da761156ec339ab4ccd159e6ba6997f9e7d0.tar.gz |
DefaultFileSource has responsibility for handling mapbox:// URLs
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r-- | include/mbgl/storage/default_file_source.hpp | 4 | ||||
-rw-r--r-- | include/mbgl/storage/resource.hpp | 10 |
2 files changed, 10 insertions, 4 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; }; } diff --git a/include/mbgl/storage/resource.hpp b/include/mbgl/storage/resource.hpp index cfd52caa75..2fcb3b1b78 100644 --- a/include/mbgl/storage/resource.hpp +++ b/include/mbgl/storage/resource.hpp @@ -9,10 +9,12 @@ namespace mbgl { struct Resource { enum Kind : uint8_t { Unknown = 0, - Tile = 1, - Glyphs = 2, - Image = 3, - JSON = 4, + Style, + Source, + Tile, + Glyphs, + JSON, + Image }; const Kind kind; |