The HEventListener class is the base class for all event types. More...

#include <HEventListener.h>

Public Member Functions

void ConvertToManager ()
 
virtual HEventListenerCreateListenerManager ()
 
HEventListenerManagerGetEventListenerManager ()
 
int GetRequestedPriority ()
 
 HEventListener ()
 
void SetRequestedPriority (int v)
 

Protected Attributes

HEventListenerManagerm_pEventListenerManager
 
int m_RequestedPriority
 

Detailed Description

The HEventListener class is the base class for all event types.

By subclassing from HEventListener any object can register itself with the event manager and receive events from arbitrary senders.

Constructor & Destructor Documentation

◆ HEventListener()

HEventListener::HEventListener ( )
inline

Constructs an HEventListener object.

Member Function Documentation

◆ ConvertToManager()

void HEventListener::ConvertToManager ( )
inline

Converts a listener object to a manager object.

◆ CreateListenerManager()

virtual HEventListener* HEventListener::CreateListenerManager ( )
inlinevirtual

Creates an HEventListenerManager for this type of HEventListener.

Returns
A pointer to the HEventListener object that contains the HEventListenerManager that was created.

◆ GetEventListenerManager()

HEventListenerManager* HEventListener::GetEventListenerManager ( )
inline
Returns
A pointer to Event Listener Manager Object.

◆ GetRequestedPriority()

int HEventListener::GetRequestedPriority ( )
inline
Returns
The requested priority level which can be #HLISTENER_PRIORITY_NORMAL, #HLISTENER_PRIORITY_HIGH or #HLISTENER_PRIORITY_LOW.

◆ SetRequestedPriority()

void HEventListener::SetRequestedPriority ( int  v)
inline

Use this method to indicate the priority in which you like to receive an event. A high priority means that you would like to receive this event before any other listener.

Returns
The requested priority level which can be #HLISTENER_PRIORITY_NORMAL, #HLISTENER_PRIORITY_HIGH or #HLISTENER_PRIORITY_LOW.

Member Data Documentation

◆ m_pEventListenerManager

HEventListenerManager* HEventListener::m_pEventListenerManager
protected

A pointer to the event listener manager.

◆ m_RequestedPriority

int HEventListener::m_RequestedPriority
protected

The priority in which this event listener would like to receive notice of events. The possible values are #HLISTENER_PRIORITY_NORMAL, #HLISTENER_PRIORITY_HIGH or #HLISTENER_PRIORITY_LOW.


The documentation for this class was generated from the following file: