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

Cloud::DownloadRequest Class Reference

#include <downloadrequest.h>

Inheritance diagram for Cloud::DownloadRequest:
Collaboration diagram for Cloud::DownloadRequest:

List of all members.

Public Member Functions

 DownloadRequest (Storage *storage, Storage::BoolCallback callback, Networking::ErrorCallback ecb, Common::String remoteFileId, Common::DumpFile *dumpFile)
virtual ~DownloadRequest ()
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 streamCallback (Networking::NetworkReadStreamResponse response)
void streamErrorCallback (Networking::ErrorResponse error)
void finishDownload (bool success)
virtual void finishError (Networking::ErrorResponse error)
 Sets FINISHED state and calls the _errorCallback with given error.

Private Attributes

Storage::BoolCallback _boolCallback
Common::DumpFile_localFile
Common::String _remoteFileId
Storage_storage
Networking::NetworkReadStream_remoteFileStream
Request * _workingRequest
bool _ignoreCallback
byte_buffer

Detailed Description

Definition at line 35 of file downloadrequest.h.


Constructor & Destructor Documentation

Cloud::DownloadRequest::DownloadRequest ( Storage storage,
Storage::BoolCallback  callback,
Networking::ErrorCallback  ecb,
Common::String  remoteFileId,
Common::DumpFile dumpFile 
)

Definition at line 29 of file downloadrequest.cpp.

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

Definition at line 35 of file downloadrequest.cpp.


Member Function Documentation

void Cloud::DownloadRequest::finishDownload ( bool  success  )  [private]

Definition at line 120 of file downloadrequest.cpp.

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

Sets FINISHED state and calls the _errorCallback with given error.

Reimplemented from Networking::Request.

Definition at line 126 of file downloadrequest.cpp.

double Cloud::DownloadRequest::getProgress (  )  const

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

Definition at line 132 of file downloadrequest.cpp.

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

Method, which does actual work.

Depends on what this Request is doing.

Implements Networking::Request.

Definition at line 73 of file downloadrequest.cpp.

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

Method, which is used to restart the Request.

Implements Networking::Request.

Definition at line 114 of file downloadrequest.cpp.

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

Definition at line 44 of file downloadrequest.cpp.

void Cloud::DownloadRequest::streamCallback ( Networking::NetworkReadStreamResponse  response  )  [private]

Definition at line 59 of file downloadrequest.cpp.

void Cloud::DownloadRequest::streamErrorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 66 of file downloadrequest.cpp.


Member Data Documentation

Definition at line 43 of file downloadrequest.h.

Definition at line 42 of file downloadrequest.h.

Definition at line 39 of file downloadrequest.h.

Definition at line 41 of file downloadrequest.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