gloox
1.0
|
#include <messagesessionhandler.h>
Public Member Functions | |
virtual | ~MessageSessionHandler () |
virtual void | handleMessageSession (MessageSession *session)=0 |
A virtual interface which can be reimplemented to receive incoming message sessions.
Derived classes can be registered as MessageSessionHandlers with the Client. If you have enabled automatic MessageSession creation by calling Client::setAutoMessageSession(), handleMessageSession() will be called if a message stanza arrives for which there is no MessageSession yet.
Definition at line 34 of file messagesessionhandler.h.
|
inlinevirtual |
Virtual Destructor.
Definition at line 40 of file messagesessionhandler.h.
|
pure virtual |
Reimplement this function if you want to be notified about incoming messages by means of automatically created MessageSessions. You receive ownership of the supplied session (not the stanza) and are responsible for deleting it at the end of its life.
session | The new MessageSession. |