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

Cloud::OneDrive::OneDriveListDirectoryRequest Class Reference

#include <onedrivelistdirectoryrequest.h>

Inheritance diagram for Cloud::OneDrive::OneDriveListDirectoryRequest:
Collaboration diagram for Cloud::OneDrive::OneDriveListDirectoryRequest:

List of all members.

Public Member Functions

 OneDriveListDirectoryRequest (OneDriveStorage *storage, Common::String path, Storage::ListDirectoryCallback cb, Networking::ErrorCallback ecb, bool recursive=false)
virtual ~OneDriveListDirectoryRequest ()
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 listNextDirectory ()
void listedDirectoryCallback (Networking::JsonResponse response)
void listedDirectoryErrorCallback (Networking::ErrorResponse error)
void makeRequest (Common::String url)
void finishListing (Common::Array< StorageFile > &files)

Private Attributes

Common::String _requestedPath
bool _requestedRecursive
Storage::ListDirectoryCallback _listDirectoryCallback
Common::Array< StorageFile_files
Common::Array< Common::String_directoriesQueue
Common::String _currentDirectory
Request * _workingRequest
bool _ignoreCallback
Common::String _date

Detailed Description

Definition at line 36 of file onedrivelistdirectoryrequest.h.

Constructor & Destructor Documentation

Cloud::OneDrive::OneDriveListDirectoryRequest::OneDriveListDirectoryRequest ( OneDriveStorage storage,
Common::String  path,
Storage::ListDirectoryCallback  cb,
Networking::ErrorCallback  ecb,
bool  recursive = false 

Definition at line 37 of file onedrivelistdirectoryrequest.cpp.

Cloud::OneDrive::OneDriveListDirectoryRequest::~OneDriveListDirectoryRequest (  )  [virtual]

Definition at line 44 of file onedrivelistdirectoryrequest.cpp.

Member Function Documentation

Common::String Cloud::OneDrive::OneDriveListDirectoryRequest::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 186 of file onedrivelistdirectoryrequest.cpp.

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

Definition at line 188 of file onedrivelistdirectoryrequest.cpp.

void Cloud::OneDrive::OneDriveListDirectoryRequest::handle (  )  [virtual]

Method, which does actual work.

Depends on what this Request is doing.

Implements Networking::Request.

Definition at line 182 of file onedrivelistdirectoryrequest.cpp.

void Cloud::OneDrive::OneDriveListDirectoryRequest::listedDirectoryCallback ( Networking::JsonResponse  response  )  [private]

Definition at line 93 of file onedrivelistdirectoryrequest.cpp.

void Cloud::OneDrive::OneDriveListDirectoryRequest::listedDirectoryErrorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 173 of file onedrivelistdirectoryrequest.cpp.

void Cloud::OneDrive::OneDriveListDirectoryRequest::listNextDirectory (  )  [private]

Definition at line 66 of file onedrivelistdirectoryrequest.cpp.

void Cloud::OneDrive::OneDriveListDirectoryRequest::makeRequest ( Common::String  url  )  [private]

Definition at line 85 of file onedrivelistdirectoryrequest.cpp.

void Cloud::OneDrive::OneDriveListDirectoryRequest::restart (  )  [virtual]

Method, which is used to restart the Request.

Implements Networking::Request.

Definition at line 184 of file onedrivelistdirectoryrequest.cpp.

void Cloud::OneDrive::OneDriveListDirectoryRequest::start (  )  [private]

Definition at line 51 of file onedrivelistdirectoryrequest.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