6#ifndef QXMPPDISCOVERYMANAGER_H
7#define QXMPPDISCOVERYMANAGER_H
9#include "QXmppClientExtension.h"
17class QXmppDiscoveryManagerPrivate;
35 QString requestInfo(
const QString &jid,
const QString &node = QString());
36 QString requestItems(
const QString &jid,
const QString &node = QString());
38 using InfoResult = std::variant<QXmppDiscoveryIq, QXmppError>;
43 QString clientCapabilitiesNode()
const;
44 void setClientCapabilitiesNode(
const QString &);
47 QString clientCategory()
const;
48 void setClientCategory(
const QString &);
50 void setClientName(
const QString &);
51 QString clientName()
const;
53 QString clientType()
const;
54 void setClientType(
const QString &);
62 std::variant<QXmppDiscoveryIq, QXmppStanza::Error> handleIq(
QXmppDiscoveryIq &&iq);
73 const std::unique_ptr<QXmppDiscoveryManagerPrivate> d;
The QXmppClientExtension class is the base class for QXmppClient extensions.
Definition: QXmppClientExtension.h:32
virtual QStringList discoveryFeatures() const
Definition: QXmppClientExtension.cpp:22
virtual bool handleStanza(const QDomElement &stanza)
You need to implement this method to process incoming XMPP stanzas.
Definition: client/compat/removed_api.cpp:26
Definition: QXmppDiscoveryIq.h:18
The QXmppDiscoveryManager class makes it possible to discover information about other entities as def...
Definition: QXmppDiscoveryManager.h:26
std::variant< QList< QXmppDiscoveryIq::Item >, QXmppError > ItemsResult
Definition: QXmppDiscoveryManager.h:39
std::variant< QXmppDiscoveryIq, QXmppError > InfoResult
Definition: QXmppDiscoveryManager.h:38
void itemsReceived(const QXmppDiscoveryIq &)
This signal is emitted when an items response is received.
void infoReceived(const QXmppDiscoveryIq &)
This signal is emitted when an information response is received.
Definition: QXmppTask.h:62
Definition: QXmppError.h:17