QXmpp Version: 1.10.0
QXmppExternalServiceDiscoveryIq.h
1// SPDX-FileCopyrightText: 2023 Tibor Csötönyi <work@taibsu.de>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPEXTERNALSERVICEDISCOVERYIQ_H
6#define QXMPPEXTERNALSERVICEDISCOVERYIQ_H
7
8#include "QXmppExternalService.h"
9#include "QXmppIq.h"
10
11class QXmppExternalServiceDiscoveryIqPrivate;
12
13class QXMPP_EXPORT QXmppExternalServiceDiscoveryIq : public QXmppIq
14{
15public:
16 QXmppExternalServiceDiscoveryIq();
17
18 QXMPP_PRIVATE_DECLARE_RULE_OF_SIX(QXmppExternalServiceDiscoveryIq)
19
20 QVector<QXmppExternalService> externalServices();
21 void setExternalServices(const QVector<QXmppExternalService> &);
22 void addExternalService(const QXmppExternalService &);
23
24 static bool isExternalServiceDiscoveryIq(const QDomElement &);
25 static bool checkIqType(const QString &tagName, const QString &xmlNamespace);
26
27protected:
29 void parseElementFromChild(const QDomElement &) override;
30 void toXmlElementFromChild(QXmlStreamWriter *) const override;
32
33private:
34 QSharedDataPointer<QXmppExternalServiceDiscoveryIqPrivate> d;
35};
36
37#endif // QXMPPEXTERNALSERVICEDISCOVERYIQ_H
Definition: QXmppExternalService.h:20
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:23