diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/style/source.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/mbgl/style/source.hpp b/include/mbgl/style/source.hpp index a1650ad06a..e6208294ca 100644 --- a/include/mbgl/style/source.hpp +++ b/include/mbgl/style/source.hpp @@ -66,12 +66,14 @@ public: std::string getID() const; optional<std::string> getAttribution() const; + // The data from the volatile sources are not stored in a persistent storage. + bool isVolatile() const noexcept; + void setVolatile(bool) noexcept; + // Private implementation class Impl; Immutable<Impl> baseImpl; - Source(Immutable<Impl>); - void setObserver(SourceObserver*); SourceObserver* observer = nullptr; @@ -114,6 +116,7 @@ public: virtual mapbox::base::WeakPtr<Source> makeWeakPtr() = 0; protected: + explicit Source(Immutable<Impl>); virtual Mutable<Impl> createMutable() const noexcept = 0; }; |