Public Member Functions | |
FolderDownloadRequest (Storage *storage, Storage::FileArrayCallback callback, Networking::ErrorCallback ecb, const Common::String &remoteDirectoryPath, const Common::Path &localDirectoryPath, bool recursive) | |
void | handle () override |
void | restart () override |
double | getProgress () const |
uint64 | getDownloadedBytes () const |
uint64 | getTotalBytesToDownload () const |
uint64 | getDownloadSpeed () const |
Common::String | getRemotePath () const |
Common::Path | getLocalPath () 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 |
Public Member Functions inherited from GUI::CommandSender | |
CommandSender (CommandReceiver *target) | |
void | setTarget (CommandReceiver *target) |
CommandReceiver * | getTarget () const |
virtual void | sendCommand (uint32 cmd, uint32 data) |
Additional Inherited Members | |
Protected Member Functions inherited from Networking::Request | |
virtual void | finishError (const ErrorResponse &error, RequestState state=FINISHED) |
virtual void | finishSuccess () |
Protected Attributes inherited from Networking::Request | |
DataCallback | _callback |
ErrorCallback | _errorCallback |
RequestState | _state |
uint32 | _retryInSeconds |
Protected Attributes inherited from GUI::CommandSender | |
CommandReceiver * | _target |
|
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::FolderDownloadRequest::getProgress | ( | ) | const |
Returns a number in range [0, 1], where 1 is "complete".
uint64 Cloud::FolderDownloadRequest::getDownloadedBytes | ( | ) | const |
Returns a number of downloaded bytes.
uint64 Cloud::FolderDownloadRequest::getTotalBytesToDownload | ( | ) | const |
Returns a total number of bytes to download.
uint64 Cloud::FolderDownloadRequest::getDownloadSpeed | ( | ) | const |
Returns average download speed for the last second.
|
inline |
Returns remote directory path.
|
inline |
Returns local directory path.