summaryrefslogtreecommitdiff
path: root/include/mbgl/map/map.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-01-16 14:04:41 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-02-04 10:46:37 +0100
commitb9bf66e67ed1d0d1b1d3163255cab099a6ba4a95 (patch)
tree93ad6df882442e18d9a9771d4b4f06a0a764a0a9 /include/mbgl/map/map.hpp
parent3bfea8bf30c978173f1ec2fab6f89d6b33afea86 (diff)
downloadqtlocation-mapboxgl-b9bf66e67ed1d0d1b1d3163255cab099a6ba4a95.tar.gz
rewrite storage layer to be independent of the Map's event loop
Diffstat (limited to 'include/mbgl/map/map.hpp')
-rw-r--r--include/mbgl/map/map.hpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mbgl/map/map.hpp b/include/mbgl/map/map.hpp
index 62f0d62014..876b7b7207 100644
--- a/include/mbgl/map/map.hpp
+++ b/include/mbgl/map/map.hpp
@@ -123,6 +123,10 @@ public:
void startRotating();
void stopRotating();
+ // API
+ void setAccessToken(const std::string &token);
+ const std::string &getAccessToken() const;
+
// Debug
void setDebug(bool value);
void toggleDebug();
@@ -160,7 +164,10 @@ private:
Mode mode = Mode::None;
+public: // TODO: make private again
std::unique_ptr<uv::loop> loop;
+
+private:
std::unique_ptr<uv::worker> workers;
std::thread thread;
std::unique_ptr<uv::async> asyncTerminate;
@@ -214,6 +221,7 @@ private:
std::string styleURL;
std::string styleJSON = "";
std::vector<std::string> classes;
+ std::string accessToken;
std::chrono::steady_clock::duration defaultTransitionDuration;