| Yate
    | 
A message filter. More...
#include <yatengine.h>
 
  
| Public Member Functions | |
| MessageFilter () | |
| ~MessageFilter () | |
| bool | matchesMsg (const Message &msg) const | 
| const MatchingItemBase * | getFilter () const | 
| const MatchingItemBase * | getMsgFilter () const | 
| void | setFilter (MatchingItemBase *filter) | 
| void | setMsgFilter (MatchingItemBase *filter) | 
| void | clearFilter () | 
| void | clearMsgFilter () | 
| void | setFilter (NamedString *filter) | 
| void | setFilter (const char *name, const char *value) | 
A message filter.
This class holds a message filter
| 
 | inline | 
Constructor
| 
 | inline | 
Destructor
| 
 | inline | 
Remove and destroy the message parameters filter
| 
 | inline | 
Remove and destroy the message filter
| 
 | inline | 
Retrieve the message parameters filter
Referenced by MessageHandler::filter().
| 
 | inline | 
Retrieve the message filter
| 
 | inline | 
Check if a message matches this filter's rules
| msg | The message to match | 
References MatchingItemBase::matchListParam(), and MatchingItemBase::matchString().
| 
 | inline | 
Set the message parameters filter
| name | Name of the parameter to filter | 
| value | Value of the parameter to filter | 
References MessageFilter::setFilter().
| 
 | inline | 
Set the message parameters filter
| filter | Pointer to matching list to set, will be owned and destroyed by the filter | 
Referenced by MessageFilter::setFilter().
| void setFilter | ( | NamedString * | filter | ) | 
Set the message parameters filter
| filter | Pointer to the filter to set, will be owned and destroyed by this object. The filter may be a NamedPointer carrying a Regexp | 
| 
 | inline | 
Set the message filter
| filter | Pointer to matching list to set, will be owned and destroyed by the filter |