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

Cloud::GoogleDrive::GoogleDriveUploadRequest Class Reference

#include <googledriveuploadrequest.h>

Inheritance diagram for Cloud::GoogleDrive::GoogleDriveUploadRequest:
Collaboration diagram for Cloud::GoogleDrive::GoogleDriveUploadRequest:

List of all members.

Public Member Functions

 GoogleDriveUploadRequest (GoogleDriveStorage *storage, Common::String path, Common::SeekableReadStream *contents, Storage::UploadCallback callback, Networking::ErrorCallback ecb)
virtual ~GoogleDriveUploadRequest ()
virtual void handle ()
 Method, which does actual work.
virtual void restart ()
 Method, which is used to restart the Request.

Private Member Functions

void start ()
void resolveId ()
void idResolvedCallback (Storage::UploadResponse response)
void idResolveFailedCallback (Networking::ErrorResponse error)
void startUpload ()
void startUploadCallback (Networking::JsonResponse response)
void startUploadErrorCallback (Networking::ErrorResponse error)
void uploadNextPart ()
void partUploadedCallback (Networking::JsonResponse response)
void partUploadedErrorCallback (Networking::ErrorResponse error)
bool handleHttp308 (const Networking::NetworkReadStream *stream)
void finishUpload (StorageFile status)

Private Attributes

GoogleDriveStorage_storage
Common::String _savePath
Common::SeekableReadStream_contentsStream
Storage::UploadCallback _uploadCallback
Request * _workingRequest
bool _ignoreCallback
Common::String _resolvedId
Common::String _parentId
Common::String _uploadUrl
uint64 _serverReceivedBytes

Detailed Description

Definition at line 35 of file googledriveuploadrequest.h.


Constructor & Destructor Documentation

Cloud::GoogleDrive::GoogleDriveUploadRequest::GoogleDriveUploadRequest ( GoogleDriveStorage storage,
Common::String  path,
Common::SeekableReadStream contents,
Storage::UploadCallback  callback,
Networking::ErrorCallback  ecb 
)

Definition at line 38 of file googledriveuploadrequest.cpp.

Cloud::GoogleDrive::GoogleDriveUploadRequest::~GoogleDriveUploadRequest (  )  [virtual]

Definition at line 44 of file googledriveuploadrequest.cpp.


Member Function Documentation

void Cloud::GoogleDrive::GoogleDriveUploadRequest::finishUpload ( StorageFile  status  )  [private]

Definition at line 346 of file googledriveuploadrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveUploadRequest::handle (  )  [virtual]

Method, which does actual work.

Depends on what this Request is doing.

Implements Networking::Request.

Definition at line 342 of file googledriveuploadrequest.cpp.

bool Cloud::GoogleDrive::GoogleDriveUploadRequest::handleHttp308 ( const Networking::NetworkReadStream stream  )  [private]

Definition at line 226 of file googledriveuploadrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveUploadRequest::idResolvedCallback ( Storage::UploadResponse  response  )  [private]

Definition at line 76 of file googledriveuploadrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveUploadRequest::idResolveFailedCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 84 of file googledriveuploadrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveUploadRequest::partUploadedCallback ( Networking::JsonResponse  response  )  [private]

Definition at line 258 of file googledriveuploadrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveUploadRequest::partUploadedErrorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 323 of file googledriveuploadrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveUploadRequest::resolveId (  )  [private]

Definition at line 69 of file googledriveuploadrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveUploadRequest::restart (  )  [virtual]

Method, which is used to restart the Request.

Implements Networking::Request.

Definition at line 344 of file googledriveuploadrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveUploadRequest::start (  )  [private]

Definition at line 52 of file googledriveuploadrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveUploadRequest::startUpload (  )  [private]

Definition at line 107 of file googledriveuploadrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveUploadRequest::startUploadCallback ( Networking::JsonResponse  response  )  [private]

Definition at line 144 of file googledriveuploadrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveUploadRequest::startUploadErrorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 184 of file googledriveuploadrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveUploadRequest::uploadNextPart (  )  [private]

Definition at line 191 of file googledriveuploadrequest.cpp.


Member Data Documentation


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


Generated on Sat Nov 9 2019 05:01:51 for ResidualVM by doxygen 1.7.1
curved edge   curved edge