Public Member Functions | |
DownloadRequest (Storage *storage, Storage::BoolCallback callback, Networking::ErrorCallback ecb, const Common::String &remoteFileId, Common::DumpFile *dumpFile) | |
void | handle () override |
void | restart () override |
double | getProgress () const |
Public Member Functions inherited from Networking::Request | |
Request (DataCallback cb, ErrorCallback ecb) | |
virtual void | handleRetry () |
virtual void | pause () |
virtual void | finish () |
virtual void | retry (uint32 seconds) |
RequestState | state () const |
virtual Common::String | date () const |
Additional Inherited Members | |
Protected Member Functions inherited from Networking::Request | |
virtual void | finishSuccess () |
Protected Attributes inherited from Networking::Request | |
DataCallback | _callback |
ErrorCallback | _errorCallback |
RequestState | _state |
uint32 | _retryInSeconds |
|
overridevirtual |
Method, which does actual work. Depends on what this Request is doing.
Implements Networking::Request.
|
overridevirtual |
Method, which is used to restart the Request.
Implements Networking::Request.
double Cloud::DownloadRequest::getProgress | ( | ) | const |
Returns a number in range [0, 1], where 1 is "complete".