GOG GALAXY SDK Documentation
IIsDlcOwnedListener Class Referenceabstract

Listener for the result of IsDLCOwned method. More...

#include <IApps.h>

Inheritance diagram for IIsDlcOwnedListener:
[legend]

Public Types

enum  FailureReason { FAILURE_REASON_UNDEFINED , FAILURE_REASON_GALAXY_SERVICE_NOT_SIGNED_IN , FAILURE_REASON_CONNECTION_FAILURE , FAILURE_REASON_EXTERNAL_SERVICE_FAILURE }
 Reason of fetching result failure. More...
 

Public Member Functions

virtual void OnDlcCheckSuccess (ProductID productId, bool isOwned)=0
 Notification for the result fetched. More...
 
virtual void OnDlcCheckFailure (ProductID productId, FailureReason failureReason)=0
 Notification for the fail on fetching result. More...
 

Additional Inherited Members

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

Detailed Description

Listener for the result of IsDLCOwned method.

Member Enumeration Documentation

◆ FailureReason

Reason of fetching result failure.

Enumerator
FAILURE_REASON_UNDEFINED 

Undefined error.

FAILURE_REASON_GALAXY_SERVICE_NOT_SIGNED_IN 

Galaxy Service is not signed in properly.

FAILURE_REASON_CONNECTION_FAILURE 

Unable to communicate with backend services.

FAILURE_REASON_EXTERNAL_SERVICE_FAILURE 

Unable to communicate with external service.

Member Function Documentation

◆ OnDlcCheckFailure()

virtual void OnDlcCheckFailure ( ProductID  productId,
FailureReason  failureReason 
)
pure virtual

Notification for the fail on fetching result.

Parameters
[in]productIdProduct ID of DLC was queried.
[in]failureReasonThe cause of the failure.

◆ OnDlcCheckSuccess()

virtual void OnDlcCheckSuccess ( ProductID  productId,
bool  isOwned 
)
pure virtual

Notification for the result fetched.

Parameters
[in]productIdProduct ID of DLC was queried.
[in]isOwnedSet if user has the licence for specific DLC.