openMSX
Public Member Functions | Protected Member Functions | List of all members
openmsx::EventListener Class Referenceabstract

#include <EventListener.hh>

Inheritance diagram for openmsx::EventListener:
Inheritance graph
[legend]

Public Member Functions

 EventListener (const EventListener &)=delete
 
EventListeneroperator= (const EventListener &)=delete
 
virtual int signalEvent (const Event &event) noexcept=0
 This method gets called when an event you are subscribed to occurs. More...
 

Protected Member Functions

 EventListener ()=default
 
 ~EventListener ()=default
 

Detailed Description

Definition at line 8 of file EventListener.hh.

Constructor & Destructor Documentation

◆ EventListener() [1/2]

openmsx::EventListener::EventListener ( const EventListener )
delete

◆ EventListener() [2/2]

openmsx::EventListener::EventListener ( )
protecteddefault

◆ ~EventListener()

openmsx::EventListener::~EventListener ( )
protecteddefault

Member Function Documentation

◆ operator=()

EventListener& openmsx::EventListener::operator= ( const EventListener )
delete

◆ signalEvent()

virtual int openmsx::EventListener::signalEvent ( const Event event)
pure virtualnoexcept

This method gets called when an event you are subscribed to occurs.

Returns
Must return a bitmask of EventListener priorities. When a bit is set, this event won't be delivered to listeners with that priority. It's only allowed/possible to block an event for listeners with a strictly lower priority than this listener. Returning 0 means don't block the event for any listeners.

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