GOG GALAXY SDK Documentation
IFileShareListener Class Referenceabstract

Listener for the event of sharing a file. More...

#include <IStorage.h>

Inheritance diagram for IFileShareListener:
[legend]

Public Types

enum  FailureReason { FAILURE_REASON_UNDEFINED , FAILURE_REASON_CONNECTION_FAILURE }
 The reason of a failure in sharing a file. More...
 

Public Member Functions

virtual void OnFileShareSuccess (const char *fileName, SharedFileID sharedFileID)=0
 Notification for the event of a success in sharing a file. More...
 
virtual void OnFileShareFailure (const char *fileName, FailureReason failureReason)=0
 Notification for the event of a failure in sharing a file. More...
 

Additional Inherited Members

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

Detailed Description

Listener for the event of sharing a file.

Member Enumeration Documentation

◆ FailureReason

The reason of a failure in sharing a file.

Enumerator
FAILURE_REASON_UNDEFINED 

Unspecified error.

FAILURE_REASON_CONNECTION_FAILURE 

Unable to communicate with backend services.

Member Function Documentation

◆ OnFileShareFailure()

virtual void OnFileShareFailure ( const char *  fileName,
FailureReason  failureReason 
)
pure virtual

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

Parameters
[in]fileNameThe name of the file in the form of a path (see the description of IStorage::FileWrite()).
[in]failureReasonThe cause of the failure.

◆ OnFileShareSuccess()

virtual void OnFileShareSuccess ( const char *  fileName,
SharedFileID  sharedFileID 
)
pure virtual

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

Parameters
[in]fileNameThe name of the file in the form of a path (see the description of IStorage::FileWrite()).
[in]sharedFileIDThe ID of the file.