MessageListener subclasses can post and receive Message objects.
More...
◆ MessageListener()
MessageListener::MessageListener |
( |
| ) |
|
|
noexcept |
◆ ~MessageListener()
virtual MessageListener::~MessageListener |
( |
| ) |
|
|
virtual |
◆ handleMessage()
virtual void MessageListener::handleMessage |
( |
const Message & |
message | ) |
|
|
pure virtual |
This is the callback method that receives incoming messages.
This is called by the MessageManager from its dispatch loop.
- See also
- postMessage
◆ postMessage()
void MessageListener::postMessage |
( |
Message * |
message | ) |
const |
Sends a message to the message queue, for asynchronous delivery to this listener later on.
This method can be called safely by any thread.
- Parameters
-
message | the message object to send - this will be deleted automatically by the message queue, so make sure it's allocated on the heap, not the stack! |
- See also
- handleMessage
The documentation for this class was generated from the following file: