#include <messagefilter.h>
Inherited by ChatStateFilter, and MessageEventFilter.
Inheritance diagram for MessageFilter:

Public Member Functions | |
| MessageFilter (MessageSession *parent) | |
| virtual | ~MessageFilter () |
| virtual void | attachTo (MessageSession *session) |
| virtual void | decorate (Message &msg)=0 |
| virtual void | filter (Message &msg)=0 |
A message filter is fed with all messages passing through a MessageSession. It can modify the XML/XMPP structure and/or the message content at will. Messages arriving from the server as well as messages sent to the server can be altered.
Messages to be sent out are presented to the filter via the decorate() function, incoming messages can be filtered in the -- filter() method.
Definition at line 37 of file messagefilter.h.
|
|
Constructor.
Definition at line 20 of file messagefilter.cpp. |
|
|
Virtual Destructor. Definition at line 27 of file messagefilter.cpp. |
|
|
Attaches this MessageFilter to the given MessageSession and hooks it into the session's filter chain. If this filter was attached to a different MessageSession before, it is unregistered there prior to registering it with the new session.
Definition at line 31 of file messagefilter.cpp. |
|
|
This function receives a message right before it is sent out (there may be other filters which get to see the message after this filter, though).
Implemented in ChatStateFilter, and MessageEventFilter. |
|
|
This function receives a message stanza right after it was received (there may be other filters which got to see the stanza before this filter, though).
Implemented in ChatStateFilter, and MessageEventFilter. |
1.4.1