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

Cloud::Id::IdDownloadRequest Class Reference

#include <iddownloadrequest.h>

Inheritance diagram for Cloud::Id::IdDownloadRequest:
Collaboration diagram for Cloud::Id::IdDownloadRequest:

List of all members.

Public Member Functions

 IdDownloadRequest (IdStorage *storage, Common::String remotePath, Common::String localPath, Storage::BoolCallback cb, Networking::ErrorCallback ecb)
virtual ~IdDownloadRequest ()
virtual void handle ()
 Method, which does actual work.
virtual void restart ()
 Method, which is used to restart the Request.
double getProgress () const
 Returns a number in range [0, 1], where 1 is "complete".

Private Member Functions

void start ()
void idResolvedCallback (Storage::UploadResponse response)
void idResolveFailedCallback (Networking::ErrorResponse error)
void downloadCallback (Storage::BoolResponse response)
void downloadErrorCallback (Networking::ErrorResponse error)
void finishDownload (bool success)

Private Attributes

Common::String _requestedFile
Common::String _requestedLocalFile
IdStorage_storage
Storage::BoolCallback _boolCallback
Request * _workingRequest
bool _ignoreCallback

Detailed Description

Definition at line 35 of file iddownloadrequest.h.


Constructor & Destructor Documentation

Cloud::Id::IdDownloadRequest::IdDownloadRequest ( IdStorage storage,
Common::String  remotePath,
Common::String  localPath,
Storage::BoolCallback  cb,
Networking::ErrorCallback  ecb 
)

Definition at line 30 of file iddownloadrequest.cpp.

Cloud::Id::IdDownloadRequest::~IdDownloadRequest (  )  [virtual]

Definition at line 36 of file iddownloadrequest.cpp.


Member Function Documentation

void Cloud::Id::IdDownloadRequest::downloadCallback ( Storage::BoolResponse  response  )  [private]

Definition at line 74 of file iddownloadrequest.cpp.

void Cloud::Id::IdDownloadRequest::downloadErrorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 81 of file iddownloadrequest.cpp.

void Cloud::Id::IdDownloadRequest::finishDownload ( bool  success  )  [private]

Definition at line 92 of file iddownloadrequest.cpp.

double Cloud::Id::IdDownloadRequest::getProgress (  )  const

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

Definition at line 98 of file iddownloadrequest.cpp.

void Cloud::Id::IdDownloadRequest::handle (  )  [virtual]

Method, which does actual work.

Depends on what this Request is doing.

Implements Networking::Request.

Definition at line 88 of file iddownloadrequest.cpp.

void Cloud::Id::IdDownloadRequest::idResolvedCallback ( Storage::UploadResponse  response  )  [private]

Definition at line 57 of file iddownloadrequest.cpp.

void Cloud::Id::IdDownloadRequest::idResolveFailedCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 67 of file iddownloadrequest.cpp.

void Cloud::Id::IdDownloadRequest::restart (  )  [virtual]

Method, which is used to restart the Request.

Implements Networking::Request.

Definition at line 90 of file iddownloadrequest.cpp.

void Cloud::Id::IdDownloadRequest::start (  )  [private]

Definition at line 43 of file iddownloadrequest.cpp.


Member Data Documentation

Definition at line 40 of file iddownloadrequest.h.

Definition at line 39 of file iddownloadrequest.h.


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


Generated on Sat Mar 23 2019 05:06:49 for ResidualVM by doxygen 1.7.1
curved edge   curved edge