diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-12-17 12:14:32 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-12-17 12:14:32 +0100 |
commit | 936e09651424f111ac2ac64e2e60e2d13b082ebf (patch) | |
tree | 99b7b7bef00ac011805f5a87ea9ddaf06466fed0 /include/mbgl/storage | |
parent | 02e43c6d30553a676b912abe1391b82219290333 (diff) | |
download | qtlocation-mapboxgl-936e09651424f111ac2ac64e2e60e2d13b082ebf.tar.gz |
Make file request overridable by platform implementations
refs #579: Android can now rename AssetRequest to FileRequest and implement it differently
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r-- | include/mbgl/storage/file_request.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/include/mbgl/storage/file_request.hpp b/include/mbgl/storage/file_request.hpp new file mode 100644 index 0000000000..3de2d5b60d --- /dev/null +++ b/include/mbgl/storage/file_request.hpp @@ -0,0 +1,27 @@ +#ifndef MBGL_STORAGE_FILE_REQUEST +#define MBGL_STORAGE_FILE_REQUEST + +#include <mbgl/storage/base_request.hpp> + +namespace mbgl { + +typedef struct uv_loop_s uv_loop_t; + +struct FileRequestBaton; + +class FileRequest : public BaseRequest { +public: + FileRequest(const std::string &path, uv_loop_t *loop); + ~FileRequest(); + + void cancel(); + +private: + FileRequestBaton *ptr = nullptr; + + friend struct FileRequestBaton; +}; + +} + +#endif |