Classes Files

Wombat::MamaEntitlementCallback

More…

#include <mamacpp.h>

Public Functions

  Name
virtual ~MamaEntitlementCallback()
virtual void onSessionDisconnect(const sessionDisconnectReason reason, const char * userId, const char * host, const char * appName) =0
virtual void onEntitlementUpdate() =0
virtual void onEntitlementCheckingSwitch(const int isEntitlementsCheckingDisabled)

Detailed Description

class Wombat::MamaEntitlementCallback;

Callback object passed to Mama::registerEntitlmentCallbacks(). The onSessionDisconnect() method will be invoked when a disconnect request is received from the entitlements server.

Public Functions Documentation

function ~MamaEntitlementCallback

inline virtual ~MamaEntitlementCallback()

function onSessionDisconnect

virtual void onSessionDisconnect(
    const sessionDisconnectReason reason,
    const char * userId,
    const char * host,
    const char * appName
) =0

Parameters:

  • reason Reason disconnect request was sent
  • userId ID of user who initiated the disconnection, either by attempting to initiate a new connection or an admin user explicitly issuing a disconnect
  • host Hostname/IP address of the site server or where userId is attempting to connect from
  • appName “site server” or application that userId is using to disconnect (possibly NULL)

Function invoked when diconnect request is received from the entitlements server

function onEntitlementUpdate

virtual void onEntitlementUpdate() =0

Function invoked after dynamic entitlements update has occurred

function onEntitlementCheckingSwitch

inline virtual void onEntitlementCheckingSwitch(
    const int isEntitlementsCheckingDisabled
)

Function invoked after entitlements checking has been switched, for example, from enabled to disabled.


Updated on 2023-03-31 at 15:29:25 +0100