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

Cloud::Dropbox::DropboxListDirectoryRequest Class Reference

#include <dropboxlistdirectoryrequest.h>

Inheritance diagram for Cloud::Dropbox::DropboxListDirectoryRequest:
Collaboration diagram for Cloud::Dropbox::DropboxListDirectoryRequest:

List of all members.

Public Member Functions

 DropboxListDirectoryRequest (Common::String token, Common::String path, Storage::ListDirectoryCallback cb, Networking::ErrorCallback ecb, bool recursive=false)
virtual ~DropboxListDirectoryRequest ()
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 responseCallback (Networking::JsonResponse response)
void errorCallback (Networking::ErrorResponse error)
void finishListing (Common::Array< StorageFile > &files)

Private Attributes

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

Detailed Description

Definition at line 34 of file dropboxlistdirectoryrequest.h.

Constructor & Destructor Documentation

Cloud::Dropbox::DropboxListDirectoryRequest::DropboxListDirectoryRequest ( Common::String  token,
Common::String  path,
Storage::ListDirectoryCallback  cb,
Networking::ErrorCallback  ecb,
bool  recursive = false 

Definition at line 38 of file dropboxlistdirectoryrequest.cpp.

Cloud::Dropbox::DropboxListDirectoryRequest::~DropboxListDirectoryRequest (  )  [virtual]

Definition at line 44 of file dropboxlistdirectoryrequest.cpp.

Member Function Documentation

Common::String Cloud::Dropbox::DropboxListDirectoryRequest::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 214 of file dropboxlistdirectoryrequest.cpp.

void Cloud::Dropbox::DropboxListDirectoryRequest::errorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 201 of file dropboxlistdirectoryrequest.cpp.

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

Definition at line 216 of file dropboxlistdirectoryrequest.cpp.

void Cloud::Dropbox::DropboxListDirectoryRequest::handle (  )  [virtual]

Method, which does actual work.

Depends on what this Request is doing.

Implements Networking::Request.

Definition at line 210 of file dropboxlistdirectoryrequest.cpp.

void Cloud::Dropbox::DropboxListDirectoryRequest::responseCallback ( Networking::JsonResponse  response  )  [private]

Definition at line 76 of file dropboxlistdirectoryrequest.cpp.

void Cloud::Dropbox::DropboxListDirectoryRequest::restart (  )  [virtual]

Method, which is used to restart the Request.

Implements Networking::Request.

Definition at line 212 of file dropboxlistdirectoryrequest.cpp.

void Cloud::Dropbox::DropboxListDirectoryRequest::start (  )  [private]

Definition at line 51 of file dropboxlistdirectoryrequest.cpp.

Member Data Documentation

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

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