ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Cloud::SavesSyncRequest Class Reference

#include <savessyncrequest.h>

Inheritance diagram for Cloud::SavesSyncRequest:
Collaboration diagram for Cloud::SavesSyncRequest:

List of all members.

Public Member Functions

 SavesSyncRequest (Storage *storage, Storage::BoolCallback callback, Networking::ErrorCallback ecb)
virtual ~SavesSyncRequest ()
virtual void handle ()
virtual void restart ()
double getDownloadingProgress () const
 Returns a number in range [0, 1], where 1 is "complete".
double getProgress () const
 Returns a number in range [0, 1], where 1 is "complete".
Common::Array< Common::StringgetFilesToDownload ()
 Returns an array of saves names which are not downloaded yet.

Private Member Functions

void start ()
void directoryListedCallback (Storage::ListDirectoryResponse response)
void directoryListedErrorCallback (Networking::ErrorResponse error)
void directoryCreatedCallback (Storage::BoolResponse response)
void directoryCreatedErrorCallback (Networking::ErrorResponse error)
void fileDownloadedCallback (Storage::BoolResponse response)
void fileDownloadedErrorCallback (Networking::ErrorResponse error)
void fileUploadedCallback (Storage::UploadResponse response)
void fileUploadedErrorCallback (Networking::ErrorResponse error)
void downloadNextFile ()
void uploadNextFile ()
virtual void finishError (Networking::ErrorResponse error)
void finishSync (bool success)

Private Attributes

Storage_storage
Storage::BoolCallback _boolCallback
Common::HashMap
< Common::String, uint32
_localFilesTimestamps
Common::Array< StorageFile_filesToDownload
Common::Array< Common::String_filesToUpload
StorageFile _currentDownloadingFile
Common::String _currentUploadingFile
Request * _workingRequest
bool _ignoreCallback
uint32 _totalFilesToHandle
Common::String _date

Detailed Description

Definition at line 34 of file savessyncrequest.h.


Constructor & Destructor Documentation

Cloud::SavesSyncRequest::SavesSyncRequest ( Storage storage,
Storage::BoolCallback  callback,
Networking::ErrorCallback  ecb 
)

Definition at line 37 of file savessyncrequest.cpp.

Cloud::SavesSyncRequest::~SavesSyncRequest (  )  [virtual]

Definition at line 43 of file savessyncrequest.cpp.


Member Function Documentation

void Cloud::SavesSyncRequest::directoryCreatedCallback ( Storage::BoolResponse  response  )  [private]

Definition at line 204 of file savessyncrequest.cpp.

void Cloud::SavesSyncRequest::directoryCreatedErrorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 220 of file savessyncrequest.cpp.

void Cloud::SavesSyncRequest::directoryListedCallback ( Storage::ListDirectoryResponse  response  )  [private]

Definition at line 78 of file savessyncrequest.cpp.

void Cloud::SavesSyncRequest::directoryListedErrorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 143 of file savessyncrequest.cpp.

void Cloud::SavesSyncRequest::downloadNextFile (  )  [private]

Definition at line 229 of file savessyncrequest.cpp.

void Cloud::SavesSyncRequest::fileDownloadedCallback ( Storage::BoolResponse  response  )  [private]

Definition at line 253 of file savessyncrequest.cpp.

void Cloud::SavesSyncRequest::fileDownloadedErrorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 275 of file savessyncrequest.cpp.

void Cloud::SavesSyncRequest::fileUploadedCallback ( Storage::UploadResponse  response  )  [private]

Definition at line 312 of file savessyncrequest.cpp.

void Cloud::SavesSyncRequest::fileUploadedErrorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 326 of file savessyncrequest.cpp.

void Cloud::SavesSyncRequest::finishError ( Networking::ErrorResponse  error  )  [private, virtual]

Definition at line 373 of file savessyncrequest.cpp.

void Cloud::SavesSyncRequest::finishSync ( bool  success  )  [private]

Definition at line 393 of file savessyncrequest.cpp.

double Cloud::SavesSyncRequest::getDownloadingProgress (  )  const

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

Definition at line 339 of file savessyncrequest.cpp.

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

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

Definition at line 364 of file savessyncrequest.cpp.

double Cloud::SavesSyncRequest::getProgress (  )  const

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

Definition at line 354 of file savessyncrequest.cpp.

void Cloud::SavesSyncRequest::handle (  )  [virtual]

Definition at line 335 of file savessyncrequest.cpp.

void Cloud::SavesSyncRequest::restart (  )  [virtual]

Definition at line 337 of file savessyncrequest.cpp.

void Cloud::SavesSyncRequest::start (  )  [private]

Definition at line 50 of file savessyncrequest.cpp.

void Cloud::SavesSyncRequest::uploadNextFile (  )  [private]

Definition at line 284 of file savessyncrequest.cpp.


Member Data Documentation

Definition at line 45 of file savessyncrequest.h.

Definition at line 43 of file savessyncrequest.h.

Definition at line 35 of file savessyncrequest.h.

Definition at line 42 of file savessyncrequest.h.


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


Generated on Sat Jan 19 2019 05:05:23 for ResidualVM by doxygen 1.7.1
curved edge   curved edge