ScummVM API documentation
Cloud::SavesSyncRequest Class Reference
Inheritance diagram for Cloud::SavesSyncRequest:
Networking::Request

Public Member Functions

 SavesSyncRequest (Storage *storage, Storage::BoolCallback callback, Networking::ErrorCallback ecb)
 
void handle () override
 
void restart () override
 
double getDownloadingProgress () const
 
void getDownloadingInfo (Storage::SyncDownloadingInfo &info) const
 
double getProgress () const
 
Common::Array< Common::StringgetFilesToDownload ()
 
- 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
 

Member Function Documentation

◆ handle()

void Cloud::SavesSyncRequest::handle ( )
overridevirtual

Method, which does actual work. Depends on what this Request is doing.

Implements Networking::Request.

◆ restart()

void Cloud::SavesSyncRequest::restart ( )
overridevirtual

Method, which is used to restart the Request.

Implements Networking::Request.

◆ getDownloadingProgress()

double Cloud::SavesSyncRequest::getDownloadingProgress ( ) const

Returns a number in range [0, 1], where 1 is "complete".

◆ getDownloadingInfo()

void Cloud::SavesSyncRequest::getDownloadingInfo ( Storage::SyncDownloadingInfo info) const

Fills a struct with numbers about current sync downloading progress.

◆ getProgress()

double Cloud::SavesSyncRequest::getProgress ( ) const

Returns a number in range [0, 1], where 1 is "complete".

◆ getFilesToDownload()

Common::Array<Common::String> Cloud::SavesSyncRequest::getFilesToDownload ( )

Returns an array of saves names which are not downloaded yet.


The documentation for this class was generated from the following file: