5#ifndef QXMPPDISCOVERY_H
6#define QXMPPDISCOVERY_H
8#include "QXmppDataForm.h"
11#include <QSharedDataPointer>
13class QXmppDiscoveryIdentityPrivate;
14class QXmppDiscoveryItemPrivate;
15class QXmppDiscoveryIqPrivate;
31 QString category()
const;
32 void setCategory(
const QString &category);
34 QString language()
const;
35 void setLanguage(
const QString &language);
38 void setName(
const QString &name);
41 void setType(
const QString &type);
44 QSharedDataPointer<QXmppDiscoveryIdentityPrivate> d;
59 void setJid(
const QString &jid);
62 void setName(
const QString &name);
65 void setNode(
const QString &node);
68 QSharedDataPointer<QXmppDiscoveryItemPrivate> d;
84 QStringList features()
const;
85 void setFeatures(
const QStringList &features);
87 QList<QXmppDiscoveryIq::Identity> identities()
const;
88 void setIdentities(
const QList<QXmppDiscoveryIq::Identity> &identities);
90 QList<QXmppDiscoveryIq::Item> items()
const;
91 void setItems(
const QList<QXmppDiscoveryIq::Item> &items);
96 QString queryNode()
const;
97 void setQueryNode(
const QString &node);
99 enum QueryType queryType()
const;
100 void setQueryType(
enum QueryType type);
102 QByteArray verificationString()
const;
104 static bool isDiscoveryIq(
const QDomElement &element);
106 static bool checkIqType(
const QString &tagName,
const QString &xmlNamespace);
109 void parseElementFromChild(
const QDomElement &element)
override;
110 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
114 QSharedDataPointer<QXmppDiscoveryIqPrivate> d;
Identity represents one of possibly multiple identities of an XMPP entity obtained from a service dis...
Definition: QXmppDiscoveryIq.h:21
Identity & operator=(Identity &&)
Default move-assignment operator.
Identity(const Identity &other)
Default copy-constructor.
Identity(Identity &&)
Default move-constructor.
Identity & operator=(const Identity &other)
Default assignment operator.
Definition: QXmppDiscoveryIq.h:48
Item(const Item &)
Default copy-constructor.
Item & operator=(const Item &)
Default assignment operator.
Item(Item &&)
Default move-constructor.
Item & operator=(Item &&)
Default move-assignment operator.
Definition: QXmppDiscoveryIq.h:18
QXmppDiscoveryIq & operator=(QXmppDiscoveryIq &&)
Default move-assignment operator.
QXmppDiscoveryIq(const QXmppDiscoveryIq &)
Default copy-constructor.
QXmppDiscoveryIq(QXmppDiscoveryIq &&)
Default move-constructor.
QXmppDiscoveryIq & operator=(const QXmppDiscoveryIq &)
Default assignment operator.
QueryType
Definition: QXmppDiscoveryIq.h:79
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:23
void setType(QXmppIq::Type)
Definition: QXmppIq.cpp:65
QXmppIq::Type type() const
Definition: QXmppIq.cpp:55