summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/resource.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/storage/resource.hpp')
-rw-r--r--include/mbgl/storage/resource.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mbgl/storage/resource.hpp b/include/mbgl/storage/resource.hpp
index 97b9fbcaf0..d828877e10 100644
--- a/include/mbgl/storage/resource.hpp
+++ b/include/mbgl/storage/resource.hpp
@@ -29,6 +29,11 @@ public:
Low
};
+ enum class Usage : bool {
+ Online,
+ Offline
+ };
+
struct TileData {
std::string urlTemplate;
uint8_t pixelRatio;
@@ -60,6 +65,7 @@ public:
}
void setPriority(Priority p) { priority = p; }
+ void setUsage(Usage u) { usage = u; }
bool hasLoadingMethod(LoadingMethod method);
@@ -83,6 +89,7 @@ public:
Kind kind;
LoadingMethod loadingMethod;
+ Usage usage{ Usage::Online };
Priority priority;
std::string url;