QXmppPubSubEventHandler Class

Header: #include <QXmppPubSubEventHandler.h>
Since: QXmpp 1.5
Inherits: QXmppExtension
Status: Deprecated

This class is deprecated. We strongly advise against using it in new code.

Public Functions

virtual bool handlePubSubEvent(const QDomElement &element, const QString &pubSubService, const QString &nodeName) = 0

Detailed Description

Interface for handling XEP-0060: Publish-Subscribe (PubSub) events.

Extensions implementing it are called after the handlers of the QXmpp::PubSub::EventReceived hook, in the order in which they were added to the client.

since QXmpp 1.18, use the QXmpp::PubSub::EventReceived hook instead.

Member Function Documentation

[pure virtual] bool QXmppPubSubEventHandler::handlePubSubEvent(const QDomElement &element, const QString &pubSubService, const QString &nodeName)

Handles the PubSub event.

element is the QDomElement of the &lt;message/&gt; stanza. pubSubService is the JID of the PubSub service (if the message's 'from' attribute is empty then the user's bare JID is used here since QXmpp 1.13). nodeName is the name of the PubSub node on the service.

Returns whether the event has been handled and should not be handled by other event handlers.