Skip to main content
reference

Events

namespace: privmx::endpoint::core

Events provides the helpers methods for module's events management.

Static Methods

isLibBreakEvent

Checks whether event held in the EventHolder is an LibBreakEvent

static bool isLibBreakEvent(
const EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst EventHolder &holder object that wraps the Event

TypeDescription
bool true for LibBreakEvent else otherwise

extractLibBreakEvent

Gets Event held in the EventHolder as an LibBreakEvent

static LibBreakEvent extractLibBreakEvent(
const EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst EventHolder &holder object that wraps the Event

TypeDescription
LibBreakEvent LibBreakEvent object

isLibPlatformDisconnectedEvent

Checks whether event held in the EventHolder is an LibPlatformDisconnectedEvent

static bool isLibPlatformDisconnectedEvent(
const EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst EventHolder &holder object that wraps the Event

TypeDescription
bool true for LibPlatformDisconnectedEvent else otherwise

extractLibPlatformDisconnectedEvent

Gets Event held in the EventHolder as an LibPlatformDisconnectedEvent

static LibPlatformDisconnectedEvent extractLibPlatformDisconnectedEvent(
const EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst EventHolder &holder object that wraps the Event

isLibConnectedEvent

Checks whether event held in the EventHolder is an LibConnectedEvent

static bool isLibConnectedEvent(
const EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst EventHolder &holder object that wraps the Event

TypeDescription
bool true for LibConnectedEvent else otherwise

extractLibConnectedEvent

Gets Event held in the EventHolder as an LibConnectedEvent

static LibConnectedEvent extractLibConnectedEvent(
const EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst EventHolder &holder object that wraps the Event

TypeDescription
LibConnectedEvent LibConnectedEvent object

isLibDisconnectedEvent

Checks whether event held in the EventHolder is an LibDisconnectedEvent

static bool isLibDisconnectedEvent(
const EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst EventHolder &holder object that wraps the Event

TypeDescription
bool true for LibDisconnectedEvent else otherwise

extractLibDisconnectedEvent

Gets Event held in the EventHolder as an LibDisconnectedEvent

static LibDisconnectedEvent extractLibDisconnectedEvent(
const EventHolder &eventHolder
)

NameTypeDescription
eventHolderconst EventHolder &holder object that wraps the Event