summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/response.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/storage/response.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/storage/response.hpp')
-rw-r--r--include/mbgl/storage/response.hpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/include/mbgl/storage/response.hpp b/include/mbgl/storage/response.hpp
index 9357ad3c63..cf22d9002b 100644
--- a/include/mbgl/storage/response.hpp
+++ b/include/mbgl/storage/response.hpp
@@ -2,25 +2,21 @@
#define MBGL_STORAGE_RESPONSE
#include <string>
-#include <ctime>
namespace mbgl {
-
-
class Response {
public:
- long code = 0;
+ enum Status : bool { Error, Successful };
+
+ Status status = Error;
+ std::string message;
int64_t modified = 0;
int64_t expires = 0;
std::string etag;
std::string data;
-
- std::string message;
-
- static int64_t parseCacheControl(const char *value);
};
}
-#endif \ No newline at end of file
+#endif