#include <file_source.hpp>
Definition at line 35 of file file_source.hpp.
◆ Callback
◆ ~FileSource()
virtual mbgl::FileSource::~FileSource |
( |
| ) |
|
|
virtualdefault |
◆ FileSource()
mbgl::FileSource::FileSource |
( |
| ) |
|
|
protecteddefault |
◆ canRequest()
virtual bool mbgl::FileSource::canRequest |
( |
const Resource & |
| ) |
const |
|
pure virtual |
◆ forward()
virtual void mbgl::FileSource::forward |
( |
const Resource & |
, |
|
|
const Response & |
, |
|
|
std::function< void()> |
|
|
) |
| |
|
inlinevirtual |
Allows to forward response from one source to another. Optionally, callback can be provided to receive notification for forward operation.
Reimplemented in mbgl::DatabaseFileSource.
Definition at line 54 of file file_source.hpp.
◆ getClientOptions()
◆ getProperty()
virtual mapbox::base::Value mbgl::FileSource::getProperty |
( |
const std::string & |
| ) |
const |
|
inlinevirtual |
◆ getResourceOptions()
◆ operator=()
◆ pause()
virtual void mbgl::FileSource::pause |
( |
| ) |
|
|
inlinevirtual |
◆ request()
Request a resource. The callback will be called asynchronously, in the same thread as the request was made. This thread must have an active RunLoop. The request may be cancelled before completion by releasing the returned AsyncRequest. If the request is cancelled before the callback is executed, the callback will not be executed.
Implemented in mbgl::DatabaseFileSource.
◆ resume()
virtual void mbgl::FileSource::resume |
( |
| ) |
|
|
inlinevirtual |
Resume file request activity.
Calling resume will unpause the file source and process any tasks that expired while the file source was paused.
Reimplemented in mbgl::DatabaseFileSource.
Definition at line 79 of file file_source.hpp.
◆ setClientOptions()
virtual void mbgl::FileSource::setClientOptions |
( |
ClientOptions |
| ) |
|
|
pure virtual |
◆ setProperty()
virtual void mbgl::FileSource::setProperty |
( |
const std::string & |
, |
|
|
const mapbox::base::Value & |
|
|
) |
| |
|
inlinevirtual |
◆ setResourceOptions()
◆ setResourceTransform()
When supported, sets the modifier of the requested resources.
Definition at line 87 of file file_source.hpp.
◆ supportsCacheOnlyRequests()
virtual bool mbgl::FileSource::supportsCacheOnlyRequests |
( |
| ) |
const |
|
inlinevirtual |
When a file source supports consulting a local cache only, it must return true. Cache-only requests are requests that aren't as urgent, but could be useful, e.g. to cover part of the map while loading. The FileSource should only do cheap actions to retrieve the data, e.g. load it from a cache, but not from the internet.
Definition at line 60 of file file_source.hpp.
The documentation for this class was generated from the following file:
- /home/runner/work/maplibre-native/maplibre-native/include/mbgl/storage/file_source.hpp