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