QXmpp::Connection::SessionEnded Struct

struct QXmpp::Connection::SessionEnded
Header: #include <QXmppClientExtension.h>
Since: QXmpp 1.18

Detailed Description

Hook run once when the session has ended and its state on the server (e.g. presence subscriptions of the session, joined rooms or pending IQ requests) is lost.

This is the case when the connection is lost and the stream cannot be resumed (it is run before QXmppClient::disconnected() is emitted), when the client is disconnected via QXmppClient::disconnectFromServer(), or when the stream could not be resumed on the next connection (it is run before QXmpp::Connection::SessionStarted then).

Handlers should reset all state that only belongs to the session here, instead of checking QXmppClient::streamManagementState() on QXmppClient::connected() and QXmppClient::disconnected().

See also QXmpp::Connection::SessionStarted.