class MessageRelay

A message handler relay. More...

Full nameTelEngine::MessageRelay
Definition#include <yatengine.h>
InheritsTelEngine::MessageHandler [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods


Detailed Description

A message handler that allows to relay several messages to a single receiver

 MessageRelay (const char* name, MessageReceiver* receiver, int id, int priority = 100)

MessageRelay

Creates a new message relay.

Parameters:
nameName of the handled message - may be NULL
receiverReceiver of th relayed messages
idNumeric identifier to pass to receiver
priorityPriority of the handler, 0 = top

bool  received (Message& msg)

received

[virtual]

This method is not called from MessageHandler through polymorphism and should not be used or reimplemented.

Parameters:
msgThe received message

Returns: True if the receiver exists and has handled the message

Reimplemented from MessageHandler.

inline int  id ()

id

[const]

Get the ID of this message relay

Returns: Numeric identifier passed to receiver


Generated by: paulc on bussard on Fri Apr 1 18:17:10 2011, using kdoc 2.0a54.