QXmpp::PubSub::EventReceived Struct
struct QXmpp::PubSub::EventReceived| Header: | #include <QXmppPubSubManager.h> |
| Since: | QXmpp 1.18 |
Detailed Description
Hook for handling incoming XEP-0060: Publish-Subscribe event notifications.
Handlers are added per node, the key is the name of the node:
hooks().add<QXmpp::PubSub::EventReceived>(u"urn:xmpp:mix:nodes:info", this, &MyManager::handleEvent);
The handler gets the <message/> element, the JID of the PubSub service (the own bare JID if the 'from' attribute is empty) and the name of the node. It returns QXmpp::HookResult::Stop if it handled the event.