#include <yatengine.h>
Inheritance diagram for MessageHandler:
Public Member Functions | |
MessageHandler (const char *name, unsigned priority=100) | |
virtual | ~MessageHandler () |
virtual bool | received (Message &msg)=0 |
unsigned | priority () const |
const NamedString * | filter () const |
void | setFilter (NamedString *filter) |
void | setFilter (const char *name, const char *value) |
void | clearFilter () |
Friends | |
class | MessageDispatcher |
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.
|
Creates a new message handler.
|
|
Handler destructor. |
|
Remove and destroy any filter associated to this handler |
|
Retrive the filter (if installed) associated to this handler |
|
Find out the priority of the handler
|
|
This method is called whenever the registered name matches the message.
Implemented in MessageRelay. |
|
Set a filter for this handler
|
|
Set a filter for this handler
|