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

Cloud::Box::BoxListDirectoryByIdRequest Class Reference

#include <boxlistdirectorybyidrequest.h>

Inheritance diagram for Cloud::Box::BoxListDirectoryByIdRequest:
Collaboration diagram for Cloud::Box::BoxListDirectoryByIdRequest:

List of all members.

Public Member Functions

 BoxListDirectoryByIdRequest (BoxStorage *storage, Common::String id, Storage::ListDirectoryCallback cb, Networking::ErrorCallback ecb)
virtual ~BoxListDirectoryByIdRequest ()
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 (uint32 offset)
void responseCallback (Networking::JsonResponse response)
void errorCallback (Networking::ErrorResponse error)
void finishListing (Common::Array< StorageFile > &files)

Private Attributes

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

Detailed Description

Definition at line 36 of file boxlistdirectorybyidrequest.h.


Constructor & Destructor Documentation

Cloud::Box::BoxListDirectoryByIdRequest::BoxListDirectoryByIdRequest ( BoxStorage storage,
Common::String  id,
Storage::ListDirectoryCallback  cb,
Networking::ErrorCallback  ecb 
)

Definition at line 39 of file boxlistdirectorybyidrequest.cpp.

Cloud::Box::BoxListDirectoryByIdRequest::~BoxListDirectoryByIdRequest (  )  [virtual]

Definition at line 45 of file boxlistdirectorybyidrequest.cpp.


Member Function Documentation

Common::String Cloud::Box::BoxListDirectoryByIdRequest::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 187 of file boxlistdirectorybyidrequest.cpp.

void Cloud::Box::BoxListDirectoryByIdRequest::errorCallback ( Networking::ErrorResponse  error  )  [private]

Definition at line 176 of file boxlistdirectorybyidrequest.cpp.

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

Definition at line 189 of file boxlistdirectorybyidrequest.cpp.

void Cloud::Box::BoxListDirectoryByIdRequest::handle (  )  [virtual]

Method, which does actual work.

Depends on what this Request is doing.

Implements Networking::Request.

Definition at line 183 of file boxlistdirectorybyidrequest.cpp.

void Cloud::Box::BoxListDirectoryByIdRequest::makeRequest ( uint32  offset  )  [private]

Definition at line 60 of file boxlistdirectorybyidrequest.cpp.

void Cloud::Box::BoxListDirectoryByIdRequest::responseCallback ( Networking::JsonResponse  response  )  [private]

Definition at line 76 of file boxlistdirectorybyidrequest.cpp.

void Cloud::Box::BoxListDirectoryByIdRequest::restart (  )  [virtual]

Method, which is used to restart the Request.

Implements Networking::Request.

Definition at line 185 of file boxlistdirectorybyidrequest.cpp.

void Cloud::Box::BoxListDirectoryByIdRequest::start (  )  [private]

Definition at line 51 of file boxlistdirectorybyidrequest.cpp.


Member Data Documentation


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


Generated on Sat Mar 16 2019 05:05:24 for ResidualVM by doxygen 1.7.1
curved edge   curved edge