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

Cloud::GoogleDrive::GoogleDriveListDirectoryByIdRequest Class Reference

#include <googledrivelistdirectorybyidrequest.h>

Inheritance diagram for Cloud::GoogleDrive::GoogleDriveListDirectoryByIdRequest:
Collaboration diagram for Cloud::GoogleDrive::GoogleDriveListDirectoryByIdRequest:

List of all members.

Public Member Functions

 GoogleDriveListDirectoryByIdRequest (GoogleDriveStorage *storage, Common::String id, Storage::ListDirectoryCallback cb, Networking::ErrorCallback ecb)
virtual ~GoogleDriveListDirectoryByIdRequest ()
virtual void handle ()
 Method, which does actual work.
virtual void restart ()
 Method, which is used to restart the Request.
virtual Common::String date () const
 Return date this Request received from server.

Private Member Functions

void start ()
void makeRequest (Common::String pageToken)
void responseCallback (Networking::JsonResponse response)
void errorCallback (Networking::ErrorResponse error)
void finishListing (Common::Array< StorageFile > &files)

Private Attributes

Common::String _requestedId
Storage::ListDirectoryCallback _listDirectoryCallback
Common::Array< StorageFile_files
Request * _workingRequest
bool _ignoreCallback
Common::String _date

Detailed Description

Definition at line 36 of file googledrivelistdirectorybyidrequest.h.

Constructor & Destructor Documentation

Cloud::GoogleDrive::GoogleDriveListDirectoryByIdRequest::GoogleDriveListDirectoryByIdRequest ( GoogleDriveStorage storage,
Common::String  id,
Storage::ListDirectoryCallback  cb,
Networking::ErrorCallback  ecb 

Definition at line 37 of file googledrivelistdirectorybyidrequest.cpp.

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

Definition at line 43 of file googledrivelistdirectorybyidrequest.cpp.

Member Function Documentation

Common::String Cloud::GoogleDrive::GoogleDriveListDirectoryByIdRequest::date (  )  const [virtual]

Return date this Request received from server.

It could be extracted from "Date" header, which is kept in NetworkReadStream.

not all Requests do that, so "" is returned to indicate the date is unknown. That's also true if no server response available or no "Date" header was passed.
date from "Date" response header.

Reimplemented from Networking::Request.

Definition at line 152 of file googledrivelistdirectorybyidrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveListDirectoryByIdRequest::errorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 139 of file googledrivelistdirectorybyidrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveListDirectoryByIdRequest::finishListing ( Common::Array< StorageFile > &  files  )  [private]

Definition at line 154 of file googledrivelistdirectorybyidrequest.cpp.

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

Method, which does actual work.

Depends on what this Request is doing.

Implements Networking::Request.

Definition at line 148 of file googledrivelistdirectorybyidrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveListDirectoryByIdRequest::makeRequest ( Common::String  pageToken  )  [private]

Definition at line 60 of file googledrivelistdirectorybyidrequest.cpp.

void Cloud::GoogleDrive::GoogleDriveListDirectoryByIdRequest::responseCallback ( Networking::JsonResponse  response  )  [private]

debug("%s", json->stringify(true).c_str());

Definition at line 73 of file googledrivelistdirectorybyidrequest.cpp.

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

Method, which is used to restart the Request.

Implements Networking::Request.

Definition at line 150 of file googledrivelistdirectorybyidrequest.cpp.

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

Definition at line 50 of file googledrivelistdirectorybyidrequest.cpp.

Member Data Documentation

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

Generated on Sat Sep 12 2020 05:04:14 for ResidualVM by doxygen 1.7.1
curved edge   curved edge