GOG GALAXY SDK Documentation
|
Listener for the event of uploading a local file to the cloud storage. More...
#include <ICloudStorage.h>
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... | |
Listener for the event of uploading a local file to the cloud storage.
enum 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. |
|
pure virtual |
Notification for the event of a failure in uploading a file.
[in] | container | The name of the containter. |
[in] | name | The name of the file to be uploaded. |
[in] | failureReason | The cause of the failure. |
|
pure virtual |
Notification for the event of a success in uploading a file.
[in] | container | The name of the containter. |
[in] | name | The name of the file uploaded. |