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

Cloud::GoogleDrive::GoogleDriveTokenRefresher Class Reference

#include <googledrivetokenrefresher.h>

Inheritance diagram for Cloud::GoogleDrive::GoogleDriveTokenRefresher:
Collaboration diagram for Cloud::GoogleDrive::GoogleDriveTokenRefresher:

List of all members.

Public Member Functions

 GoogleDriveTokenRefresher (GoogleDriveStorage *parent, Networking::JsonCallback callback, Networking::ErrorCallback ecb, const char *url)
virtual ~GoogleDriveTokenRefresher ()
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.

Private Attributes

GoogleDriveStorage_parentStorage
Common::Array< Common::String_headers

Detailed Description

Definition at line 34 of file googledrivetokenrefresher.h.


Constructor & Destructor Documentation

Cloud::GoogleDrive::GoogleDriveTokenRefresher::GoogleDriveTokenRefresher ( GoogleDriveStorage parent,
Networking::JsonCallback  callback,
Networking::ErrorCallback  ecb,
const char *  url 
)

Definition at line 35 of file googledrivetokenrefresher.cpp.

Cloud::GoogleDrive::GoogleDriveTokenRefresher::~GoogleDriveTokenRefresher (  )  [virtual]

Definition at line 38 of file googledrivetokenrefresher.cpp.


Member Function Documentation

void Cloud::GoogleDrive::GoogleDriveTokenRefresher::addHeader ( Common::String  header  )  [virtual]

Adds a header into headers list.

Reimplemented from Networking::CurlRequest.

Definition at line 120 of file googledrivetokenrefresher.cpp.

void Cloud::GoogleDrive::GoogleDriveTokenRefresher::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 googledrivetokenrefresher.cpp.

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

Replaces all headers with the passed array of headers.

Reimplemented from Networking::CurlRequest.

Definition at line 112 of file googledrivetokenrefresher.cpp.

void Cloud::GoogleDrive::GoogleDriveTokenRefresher::tokenRefreshed ( Storage::BoolResponse  response  )  [private]

Definition at line 40 of file googledrivetokenrefresher.cpp.


Member Data Documentation


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


Generated on Sat Jan 19 2019 05:05:25 for ResidualVM by doxygen 1.7.1
curved edge   curved edge