#include <eventManager.h>
Listener class used by the EventManager to dispatch messages to specific callbacks.
virtual bool onMessageObjectReceived |
( |
StringTableEntry |
queue, |
|
|
Message * |
msg |
|
) |
| |
|
inlinevirtual |
Callback for when message objects are received.
- Parameters
-
queue | The name of the queue the message was dispatched to |
msg | The message object |
- Returns
- false to prevent other listeners receiving this message, true otherwise
- See also
- onMessageReceived()
Implements IMessageListener.
bool onMessageReceived |
( |
StringTableEntry |
queue, |
|
|
const char * |
event, |
|
|
const char * |
data |
|
) |
| |
|
virtual |
Called by the EventManager queue when an event is triggered. Calls all listeners subscribed to the triggered event.
Gets a list of all listeners of a specific event type and executes a callback on each one.
- Parameters
-
event | The name of the event that was triggered. |
data | The data associated with the event. |
- Returns
- true to allow other listeners to receive the event, false otherwise
Implements IMessageListener.
The documentation for this class was generated from the following files:
- messaging/eventManager.h
- messaging/eventManager.cc