|
|
The purpose of this class is to hold a message received method that is called for matching messages. It holds as well the matching criteria and priority among other handlers.
MessageHandler (const char *name, unsigned priority = 100)
| MessageHandler |
Creates a new message handler.
Parameters:
name | Name of the handled message - may be NULL |
priority | Priority of the handler, 0 = top |
~MessageHandler ()
| ~MessageHandler |
[virtual]
Handler destructor.
bool received (Message &msg)
| received |
[pure virtual]
This method is called whenever the registered name matches the message.
Parameters:
msg | The received message |
Returns: True to stop processing, false to try other handlers
inline unsigned priority ()
| priority |
[const]
Find out the priority of the handler
Returns: Stored priority of the handler, 0 = top
Generated by: kk on nyx on Sat Jun 4 19:29:41 2005, using kdoc 2.0a54. |