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 245 of file savessyncrequest.cpp.

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

Definition at line 261 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 169 of file savessyncrequest.cpp.

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

Definition at line 270 of file savessyncrequest.cpp.

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

Definition at line 294 of file savessyncrequest.cpp.

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

Definition at line 316 of file savessyncrequest.cpp.

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

Definition at line 353 of file savessyncrequest.cpp.

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

Definition at line 367 of file savessyncrequest.cpp.

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

Definition at line 414 of file savessyncrequest.cpp.

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

Definition at line 434 of file savessyncrequest.cpp.

double Cloud::SavesSyncRequest::getDownloadingProgress (  )  const

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

Definition at line 380 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 405 of file savessyncrequest.cpp.

double Cloud::SavesSyncRequest::getProgress (  )  const

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

Definition at line 395 of file savessyncrequest.cpp.

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

Definition at line 376 of file savessyncrequest.cpp.

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

Definition at line 378 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 325 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 May 30 2020 05:02:50 for ResidualVM by doxygen 1.7.1
curved edge   curved edge