QXmppPubSubEventHandler Class

Header: #include <QXmppPubSubEventHandler>
Since: QXmpp 1.5
Inherits: QXmppExtension
Inherited By:

QXmppMixManager, QXmppOmemoManager, QXmppUserLocationManager, and QXmppUserTuneManager

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.

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.