GOG GALAXY SDK Documentation
ICloudStoragePutFileListener Class Referenceabstract

Listener for the event of uploading a local file to the cloud storage. More...

#include <ICloudStorage.h>

Inheritance diagram for ICloudStoragePutFileListener:
[legend]

Public Types

enum  FailureReason {
  FAILURE_REASON_UNDEFINED , FAILURE_REASON_UNAUTHORIZED , FAILURE_REASON_FORBIDDEN , FAILURE_REASON_UNAVAILABLE ,
  FAILURE_REASON_ABORTED , FAILURE_REASON_CONNECTION_FAILURE , FAILURE_REASON_READ_FUNC_ERROR , FAILURE_REASON_QUOTA_EXCEEDED
}
 The reason of a failure in uploading a file. More...
 

Public Member Functions

virtual void OnPutFileSuccess (const char *container, const char *name)=0
 Notification for the event of a success in uploading a file. More...
 
virtual void OnPutFileFailure (const char *container, const char *name, FailureReason failureReason)=0
 Notification for the event of a failure in uploading a file. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from GalaxyTypeAwareListener< CLOUD_STORAGE_PUT_FILE >
static ListenerType GetListenerType ()
 Returns the type of the listener. More...
 

Detailed Description

Listener for the event of uploading a local file to the cloud storage.

Member Enumeration Documentation

◆ FailureReason

The reason of a failure in uploading a file.

Enumerator
FAILURE_REASON_UNDEFINED 

Unspecified error.

FAILURE_REASON_UNAUTHORIZED 

Authorization lost.

FAILURE_REASON_FORBIDDEN 

No access to specified container.

FAILURE_REASON_UNAVAILABLE 

Service unavailable.

FAILURE_REASON_ABORTED 

Request aborted.

FAILURE_REASON_CONNECTION_FAILURE 

Unable to communicate with backend services.

FAILURE_REASON_READ_FUNC_ERROR 

Function readFunc passed to ICloudStorage::PutFile() returned an error.

FAILURE_REASON_QUOTA_EXCEEDED 

Unable to upload the file because there is no free space on cloud storage.

Member Function Documentation

◆ OnPutFileFailure()

virtual void OnPutFileFailure ( const char *  container,
const char *  name,
FailureReason  failureReason 
)
pure virtual

Notification for the event of a failure in uploading a file.

Parameters
[in]containerThe name of the containter.
[in]nameThe name of the file to be uploaded.
[in]failureReasonThe cause of the failure.

◆ OnPutFileSuccess()

virtual void OnPutFileSuccess ( const char *  container,
const char *  name 
)
pure virtual

Notification for the event of a success in uploading a file.

Parameters
[in]containerThe name of the containter.
[in]nameThe name of the file uploaded.