GOG GALAXY SDK Documentation
ICloudStorageDeleteFileListener Class Referenceabstract

Listener for the event of deleting a file stored in cloud storage. More...

#include <ICloudStorage.h>

Inheritance diagram for ICloudStorageDeleteFileListener:
[legend]

Public Types

enum  FailureReason {
  FAILURE_REASON_UNDEFINED , FAILURE_REASON_UNAUTHORIZED , FAILURE_REASON_FORBIDDEN , FAILURE_REASON_NOT_FOUND ,
  FAILURE_REASON_UNAVAILABLE , FAILURE_REASON_ABORTED , FAILURE_REASON_CONNECTION_FAILURE , FAILURE_REASON_CONFLICT
}
 The reason of a failure in deleting a file. More...
 

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Listener for the event of deleting a file stored in cloud storage.

Member Enumeration Documentation

◆ FailureReason

The reason of a failure in deleting a file.

Enumerator
FAILURE_REASON_UNDEFINED 

Unspecified error.

FAILURE_REASON_UNAUTHORIZED 

Authorization lost.

FAILURE_REASON_FORBIDDEN 

No access to specified container.

FAILURE_REASON_NOT_FOUND 

Container not found.

FAILURE_REASON_UNAVAILABLE 

Service unavailable.

FAILURE_REASON_ABORTED 

Request aborted.

FAILURE_REASON_CONNECTION_FAILURE 

Unable to communicate with backend services.

FAILURE_REASON_CONFLICT 

< Expected hash parameter doesn't match the hash in the container.

Member Function Documentation

◆ OnDeleteFileFailure()

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

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

Parameters
[in]containerThe name of the containter.
[in]nameThe name of the file to be deleted.

◆ OnDeleteFileSuccess()

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

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

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