Loading...
Searching...
No Matches
QXmppBindIq.h
// SPDX-FileCopyrightText: 2011 Manjeet Dahiya <manjeetdahiya@gmail.com>
// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPBINDIQ_H
#define QXMPPBINDIQ_H
#include "QXmppIq.h"
class QXMPP_EXPORT QXmppBindIq : public QXmppIq
{
public:
static QXmppBindIq bindAddressIq(const QString &resource);
QString jid() const;
void setJid(const QString &);
QString resource() const;
void setResource(const QString &);
static bool isBindIq(const QDomElement &element);
protected:
void parseElementFromChild(const QDomElement &element) override;
void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
private:
QString m_jid;
QString m_resource;
};
#endif // QXMPPBIND_H
QXmppBindIq
The QXmppBindIq class represents an IQ used for resource binding as defined by RFC 3921.
Definition QXmppBindIq.h:17
QXmppIq
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23