24 #ifndef QXMPPDISCOVERY_H
25 #define QXMPPDISCOVERY_H
27 #include "QXmppDataForm.h"
30 #include <QSharedDataPointer>
32 class QXmppDiscoveryIdentityPrivate;
33 class QXmppDiscoveryItemPrivate;
34 class QXmppDiscoveryIqPrivate;
60 QString category()
const;
61 void setCategory(
const QString &category);
63 QString language()
const;
64 void setLanguage(
const QString &language);
67 void setName(
const QString &name);
70 void setType(
const QString &type);
73 QSharedDataPointer<QXmppDiscoveryIdentityPrivate> d;
90 void setJid(
const QString &jid);
93 void setName(
const QString &name);
96 void setNode(
const QString &node);
99 QSharedDataPointer<QXmppDiscoveryItemPrivate> d;
113 QStringList features()
const;
114 void setFeatures(
const QStringList &features);
116 QList<QXmppDiscoveryIq::Identity> identities()
const;
117 void setIdentities(
const QList<QXmppDiscoveryIq::Identity> &identities);
119 QList<QXmppDiscoveryIq::Item> items()
const;
120 void setItems(
const QList<QXmppDiscoveryIq::Item> &items);
125 QString queryNode()
const;
126 void setQueryNode(
const QString &node);
128 enum QueryType queryType()
const;
129 void setQueryType(
enum QueryType type);
131 QByteArray verificationString()
const;
133 static bool isDiscoveryIq(
const QDomElement &element);
137 void parseElementFromChild(
const QDomElement &element)
override;
138 void toXmlElementFromChild(QXmlStreamWriter *writer)
const override;
142 QSharedDataPointer<QXmppDiscoveryIqPrivate> d;