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
OneDriveStorage_storage
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 36 of file onedrivelistdirectoryrequest.cpp.

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

Definition at line 43 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.

Note:
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.
Returns:
date from "Date" response header.

Reimplemented from Networking::Request.

Definition at line 184 of file onedrivelistdirectoryrequest.cpp.

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

Definition at line 186 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 180 of file onedrivelistdirectoryrequest.cpp.

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

Definition at line 91 of file onedrivelistdirectoryrequest.cpp.

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

Definition at line 171 of file onedrivelistdirectoryrequest.cpp.

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

Definition at line 65 of file onedrivelistdirectoryrequest.cpp.

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

Definition at line 83 of file onedrivelistdirectoryrequest.cpp.

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

Method, which is used to restart the Request.

Implements Networking::Request.

Definition at line 182 of file onedrivelistdirectoryrequest.cpp.

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

Definition at line 50 of file onedrivelistdirectoryrequest.cpp.


Member Data Documentation


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


Generated on Sat May 18 2019 05:05:48 for ResidualVM by doxygen 1.7.1
curved edge   curved edge