Provides BMessageFilter class. More...
Classes | |
class | BMessageFilter |
Describes a message filter for BLooper and BHandler. More... | |
Typedefs | |
typedef filter_result(* | filter_hook) (BMessage *message, BHandler **target, BMessageFilter *filter) |
Prototype for a custom filter_hook for use in the BMessageFilter class. | |
Enumerations | |
enum | filter_result { B_SKIP_MESSAGE , B_DISPATCH_MESSAGE } |
enum | message_delivery { B_ANY_DELIVERY , B_DROPPED_DELIVERY , B_PROGRAMMED_DELIVERY } |
enum | message_source { B_ANY_SOURCE , B_REMOTE_SOURCE , B_LOCAL_SOURCE } |
Provides BMessageFilter class.
filter_result(* filter_hook)(BMessage *message, BHandler **target, BMessageFilter *filter) |
Prototype for a custom filter_hook
for use in the BMessageFilter class.
This hook can be used when you are constructing a new BMessageFilter object. It is a custom filter function you can use.
This hook should handle the following parameters:
[in] | message | The message that needs to be verified. |
[out] | target | If your filter hook is conscious about the available handlers, you can set a specific BHandler based on your filters requirements. You do not have to change this field, because there will always be a working default. |
[in] | filter | A pointer to the filter from which this hook is called. |
enum filter_result |
Enumerator | |
---|---|
B_SKIP_MESSAGE | The message does not pass the filter criteria and should not be handled.
|
B_DISPATCH_MESSAGE | The message passes the filter criteria and should be dispatched to a BHandler.
|
enum message_delivery |
Enumerator | |
---|---|
B_ANY_DELIVERY | Accept both delivery methods.
|
B_DROPPED_DELIVERY | Only accept messages that were dropped by the user in the GUI.
|
B_PROGRAMMED_DELIVERY | Only accept messages that were delivered using the BLooper::PostMessage() method.
|
enum message_source |