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

Cloud::Box::BoxTokenRefresher Class Reference

#include <boxtokenrefresher.h>

Inheritance diagram for Cloud::Box::BoxTokenRefresher:
Collaboration diagram for Cloud::Box::BoxTokenRefresher:

List of all members.

Public Member Functions

 BoxTokenRefresher (BoxStorage *parent, Networking::JsonCallback callback, Networking::ErrorCallback ecb, const char *url)
virtual ~BoxTokenRefresher ()
virtual void setHeaders (Common::Array< Common::String > &headers)
 Replaces all headers with the passed array of headers.
virtual void addHeader (Common::String header)
 Adds a header into headers list.

Private Member Functions

void tokenRefreshed (Storage::BoolResponse response)
virtual void finishJson (Common::JSONValue *json)
 Sets FINISHED state and passes the JSONValue * into user's callback in JsonResponse.
virtual void finishError (Networking::ErrorResponse error)
 Sets FINISHED state and calls the _errorCallback with given error.

Private Attributes

BoxStorage_parentStorage
Common::Array< Common::String_headers

Detailed Description

Definition at line 34 of file boxtokenrefresher.h.


Constructor & Destructor Documentation

Cloud::Box::BoxTokenRefresher::BoxTokenRefresher ( BoxStorage parent,
Networking::JsonCallback  callback,
Networking::ErrorCallback  ecb,
const char *  url 
)

Definition at line 35 of file boxtokenrefresher.cpp.

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

Definition at line 38 of file boxtokenrefresher.cpp.


Member Function Documentation

void Cloud::Box::BoxTokenRefresher::addHeader ( Common::String  header  )  [virtual]

Adds a header into headers list.

Reimplemented from Networking::CurlRequest.

Definition at line 132 of file boxtokenrefresher.cpp.

void Cloud::Box::BoxTokenRefresher::finishError ( Networking::ErrorResponse  error  )  [private, virtual]

Sets FINISHED state and calls the _errorCallback with given error.

Reimplemented from Networking::Request.

Definition at line 111 of file boxtokenrefresher.cpp.

void Cloud::Box::BoxTokenRefresher::finishJson ( Common::JSONValue json  )  [private, virtual]

Sets FINISHED state and passes the JSONValue * into user's callback in JsonResponse.

Reimplemented from Networking::CurlJsonRequest.

Definition at line 60 of file boxtokenrefresher.cpp.

void Cloud::Box::BoxTokenRefresher::setHeaders ( Common::Array< Common::String > &  headers  )  [virtual]

Replaces all headers with the passed array of headers.

Reimplemented from Networking::CurlRequest.

Definition at line 124 of file boxtokenrefresher.cpp.

void Cloud::Box::BoxTokenRefresher::tokenRefreshed ( Storage::BoolResponse  response  )  [private]

Definition at line 40 of file boxtokenrefresher.cpp.


Member Data Documentation


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


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