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

Cloud::Id::IdListDirectoryRequest Class Reference

#include <idlistdirectoryrequest.h>

Inheritance diagram for Cloud::Id::IdListDirectoryRequest:
Collaboration diagram for Cloud::Id::IdListDirectoryRequest:

List of all members.

Public Member Functions

 IdListDirectoryRequest (IdStorage *storage, Common::String path, Storage::ListDirectoryCallback cb, Networking::ErrorCallback ecb, bool recursive=false)
virtual ~IdListDirectoryRequest ()
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 idResolvedCallback (Storage::UploadResponse response)
void idResolveErrorCallback (Networking::ErrorResponse error)
void listNextDirectory ()
void listedDirectoryCallback (Storage::FileArrayResponse response)
void listedDirectoryErrorCallback (Networking::ErrorResponse error)
void finishListing (Common::Array< StorageFile > &files)

Private Attributes

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

Detailed Description

Definition at line 35 of file idlistdirectoryrequest.h.

Constructor & Destructor Documentation

Cloud::Id::IdListDirectoryRequest::IdListDirectoryRequest ( IdStorage storage,
Common::String  path,
Storage::ListDirectoryCallback  cb,
Networking::ErrorCallback  ecb,
bool  recursive = false 

Definition at line 29 of file idlistdirectoryrequest.cpp.

Cloud::Id::IdListDirectoryRequest::~IdListDirectoryRequest (  )  [virtual]

Definition at line 36 of file idlistdirectoryrequest.cpp.

Member Function Documentation

Common::String Cloud::Id::IdListDirectoryRequest::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 132 of file idlistdirectoryrequest.cpp.

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

Definition at line 134 of file idlistdirectoryrequest.cpp.

void Cloud::Id::IdListDirectoryRequest::handle (  )  [virtual]

Method, which does actual work.

Depends on what this Request is doing.

Implements Networking::Request.

Definition at line 128 of file idlistdirectoryrequest.cpp.

void Cloud::Id::IdListDirectoryRequest::idResolvedCallback ( Storage::UploadResponse  response  )  [private]

Definition at line 60 of file idlistdirectoryrequest.cpp.

void Cloud::Id::IdListDirectoryRequest::idResolveErrorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 73 of file idlistdirectoryrequest.cpp.

void Cloud::Id::IdListDirectoryRequest::listedDirectoryCallback ( Storage::FileArrayResponse  response  )  [private]

Definition at line 96 of file idlistdirectoryrequest.cpp.

void Cloud::Id::IdListDirectoryRequest::listedDirectoryErrorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 119 of file idlistdirectoryrequest.cpp.

void Cloud::Id::IdListDirectoryRequest::listNextDirectory (  )  [private]

Definition at line 82 of file idlistdirectoryrequest.cpp.

void Cloud::Id::IdListDirectoryRequest::restart (  )  [virtual]

Method, which is used to restart the Request.

Implements Networking::Request.

Definition at line 130 of file idlistdirectoryrequest.cpp.

void Cloud::Id::IdListDirectoryRequest::start (  )  [private]

Definition at line 43 of file idlistdirectoryrequest.cpp.

Member Data Documentation

Definition at line 43 of file idlistdirectoryrequest.h.

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

Generated on Sat Sep 26 2020 05:03:03 for ResidualVM by doxygen 1.7.1
curved edge   curved edge