ScummVM API documentation
Cloud::OneDrive::OneDriveTokenRefresher Class Reference
Inheritance diagram for Cloud::OneDrive::OneDriveTokenRefresher:
Networking::CurlJsonRequest Networking::CurlRequest Networking::Request

Public Member Functions

 OneDriveTokenRefresher (OneDriveStorage *parent, Networking::JsonCallback callback, Networking::ErrorCallback ecb, const char *url)
 
void setHeaders (const Common::Array< Common::String > &headers) override
 
void addHeader (const Common::String &header) override
 
- Public Member Functions inherited from Networking::CurlJsonRequest
 CurlJsonRequest (JsonCallback cb, ErrorCallback ecb, const Common::String &url)
 
void handle () override
 
void restart () override
 
- Public Member Functions inherited from Networking::CurlRequest
 CurlRequest (DataCallback cb, ErrorCallback ecb, const Common::String &url)
 
void handle () override
 
void restart () override
 
Common::String date () const override
 
virtual void addPostField (const Common::String &field)
 
virtual void addFormField (const Common::String &name, const Common::String &value)
 
virtual void addFormFile (const Common::String &name, const Common::Path &filename)
 
virtual void setBuffer (byte *buffer, uint32 size)
 
virtual void usePut ()
 
virtual void usePatch ()
 
virtual void connectionKeepAlive (long idle=120, long interval=60)
 
virtual void connectionClose ()
 
virtual NetworkReadStreamResponse execute ()
 
const NetworkReadStreamgetNetworkReadStream () const
 
void wait (int spinlockDelay=5)
 
- Public Member Functions inherited from Networking::Request
 Request (DataCallback cb, ErrorCallback ecb)
 
virtual void handleRetry ()
 
virtual void pause ()
 
virtual void finish ()
 
virtual void retry (uint32 seconds)
 
RequestState state () const
 

Additional Inherited Members

- Static Public Member Functions inherited from Networking::CurlJsonRequest
static bool jsonIsObject (const Common::JSONValue *item, const char *warningPrefix)
 
static bool jsonContainsObject (const Common::JSONObject &item, const char *key, const char *warningPrefix, bool isOptional=false)
 
static bool jsonContainsString (const Common::JSONObject &item, const char *key, const char *warningPrefix, bool isOptional=false)
 
static bool jsonContainsIntegerNumber (const Common::JSONObject &item, const char *key, const char *warningPrefix, bool isOptional=false)
 
static bool jsonContainsArray (const Common::JSONObject &item, const char *key, const char *warningPrefix, bool isOptional=false)
 
static bool jsonContainsStringOrIntegerNumber (const Common::JSONObject &item, const char *key, const char *warningPrefix, bool isOptional=false)
 
static bool jsonContainsAttribute (const Common::JSONObject &item, const char *key, const char *warningPrefix, bool isOptional=false)
 
- Protected Member Functions inherited from Networking::CurlRequest
NetworkReadStreammakeStream ()
 
- Protected Member Functions inherited from Networking::Request
virtual void finishSuccess ()
 
- Protected Attributes inherited from Networking::CurlJsonRequest
JsonCallback _jsonCallback
 
Common::MemoryWriteStreamDynamic _contentsStream
 
byte * _buffer
 
- Protected Attributes inherited from Networking::CurlRequest
Common::String _url
 
NetworkReadStream_stream
 
curl_slist * _headersList
 
Common::String _postFields
 
Common::HashMap< Common::String, Common::String_formFields
 
Common::HashMap< Common::String, Common::Path_formFiles
 
byte * _bytesBuffer
 
uint32 _bytesBufferSize
 
bool _uploading
 
bool _usingPatch
 
bool _keepAlive
 
long _keepAliveIdle
 
long _keepAliveInterval
 
- Protected Attributes inherited from Networking::Request
DataCallback _callback
 
ErrorCallback _errorCallback
 
RequestState _state
 
uint32 _retryInSeconds
 

Member Function Documentation

◆ setHeaders()

void Cloud::OneDrive::OneDriveTokenRefresher::setHeaders ( const Common::Array< Common::String > &  headers)
overridevirtual

Replaces all headers with the passed array of headers.

Reimplemented from Networking::CurlRequest.

◆ addHeader()

void Cloud::OneDrive::OneDriveTokenRefresher::addHeader ( const Common::String header)
overridevirtual

Adds a header into headers list.

Reimplemented from Networking::CurlRequest.


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