Loading...
Searching...
No Matches
QXmppExternalServiceDiscoveryIq.h
// SPDX-FileCopyrightText: 2023 Tibor Csötönyi <work@taibsu.de>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPEXTERNALSERVICEDISCOVERYIQ_H
#define QXMPPEXTERNALSERVICEDISCOVERYIQ_H
#include "QXmppExternalService.h"
#include "QXmppIq.h"
class QXmppExternalServiceDiscoveryIqPrivate;
class QXMPP_EXPORT QXmppExternalServiceDiscoveryIq : public QXmppIq
{
public:
QXmppExternalServiceDiscoveryIq();
QXMPP_PRIVATE_DECLARE_RULE_OF_SIX(QXmppExternalServiceDiscoveryIq)
QVector<QXmppExternalService> externalServices() const;
void setExternalServices(const QVector<QXmppExternalService> &);
void addExternalService(const QXmppExternalService &);
static constexpr std::tuple PayloadXmlTag = { u"services", QXmpp::Private::ns_external_service_discovery };
[[deprecated("Use QXmpp::isIqElement()")]]
static bool isExternalServiceDiscoveryIq(const QDomElement &);
static bool checkIqType(const QString &tagName, const QString &xmlNamespace);
protected:
void parseElementFromChild(const QDomElement &) override;
void toXmlElementFromChild(QXmlStreamWriter *) const override;
private:
QSharedDataPointer<QXmppExternalServiceDiscoveryIqPrivate> d;
};
#endif // QXMPPEXTERNALSERVICEDISCOVERYIQ_H
QXmppIq
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23