Public Member Functions | |
MessageFilter () | |
MessageFilter (int32 nFilterCode, Handler *pcNewTarget) | |
Constructor. | |
virtual | ~MessageFilter () |
virtual MessageFilterResult | Filter (Message *pcMessage, Handler **ppcHandler) |
Message filtering function. | |
int32 | GetFilterCode () const |
Get filter code. | |
void | SetFilterCode (int32 nCode) |
Set filter code. | |
void | SetTarget (Handler *pcTarget) |
Set target for diverted messages. | |
Handler * | GetTarget () const |
Get target for diverted messages. | |
Friends | |
class | Looper |
class | Handler |
Classes | |
class | Private |
MessageFilter::MessageFilter | ( | ) |
MessageFilter::MessageFilter | ( | int32 | nFilterCode, | |
Handler * | pcTarget | |||
) |
nFilterCode | The filter code to respond to. | |
pcTarget | New target for messages. |
MessageFilter::~MessageFilter | ( | ) | [virtual] |
MessageFilterResult MessageFilter::Filter | ( | Message * | pcMessage, | |
Handler ** | ppcHandler | |||
) | [virtual] |
pcMessage | The message to filter. | |
ppcHandler | The handler to send to. Can be changed in this function. |
int32 MessageFilter::GetFilterCode | ( | ) | const |
void MessageFilter::SetFilterCode | ( | int32 | nCode | ) |
nCode | What code to react to. |
void MessageFilter::SetTarget | ( | Handler * | pcTarget | ) |
pcTarget | Where to send filtered messages. |
Handler * MessageFilter::GetTarget | ( | ) | const |
friend class Looper [friend] |
friend class Handler [friend] |