QXmpp: QXmppBindIq.h Source File

QXmpp Version: 1.14.2

Loading...
Searching...
No Matches
QXmppBindIq.h
1// SPDX-FileCopyrightText: 2011 Manjeet Dahiya <manjeetdahiya@gmail.com>
2// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
3//
4// SPDX-License-Identifier: LGPL-2.1-or-later
5
6#ifndef QXMPPBINDIQ_H
7#define QXMPPBINDIQ_H
8
9#include "QXmppIq.h"
10
12#if QXMPP_DEPRECATED_SINCE(1, 12)
13class QXMPP_EXPORT Q_DECL_DEPRECATED_X("Removed from public API") QXmppBindIq : public QXmppIq
14{
15public:
16 static QXmppBindIq bindAddressIq(const QString &resource);
17
18 QString jid() const;
19 void setJid(const QString &);
20
21 QString resource() const;
22 void setResource(const QString &);
23
24 static constexpr std::tuple PayloadXmlTag = { u"bind", QXmpp::Private::ns_bind };
25 [[deprecated("Use QXmpp::isIqElement()")]]
26 static bool isBindIq(const QDomElement &element);
27
28protected:
29 void parseElementFromChild(const QDomElement &element) override;
30 void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
31
32private:
33 QString m_jid;
34 QString m_resource;
35};
36#endif
38
39#endif // QXMPPBIND_H
QXmppIq
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23