Loading...
Searching...
No Matches
QXmppIbbIq.h
// SPDX-FileCopyrightText: 2010 Manjeet Dahiya <manjeetdahiya@gmail.com>
// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPIBBIQ_H
#define QXMPPIBBIQ_H
#include "QXmppIq.h"
class QXmppIbbOpenIq : public QXmppIq
{
public:
QXmppIbbOpenIq();
long blockSize() const;
void setBlockSize(long block_size);
QString sid() const;
void setSid(const QString &sid);
static bool isIbbOpenIq(const QDomElement &element);
protected:
void parseElementFromChild(const QDomElement &element) override;
void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
private:
long m_block_size;
QString m_sid;
};
class QXmppIbbCloseIq : public QXmppIq
{
public:
QXmppIbbCloseIq();
QString sid() const;
void setSid(const QString &sid);
static bool isIbbCloseIq(const QDomElement &element);
protected:
void parseElementFromChild(const QDomElement &element) override;
void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
private:
QString m_sid;
};
class QXMPP_EXPORT QXmppIbbDataIq : public QXmppIq
{
public:
QXmppIbbDataIq();
quint16 sequence() const;
void setSequence(quint16 seq);
QString sid() const;
void setSid(const QString &sid);
QByteArray payload() const;
void setPayload(const QByteArray &data);
static bool isIbbDataIq(const QDomElement &element);
protected:
void parseElementFromChild(const QDomElement &element) override;
void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
private:
quint16 m_seq;
QString m_sid;
QByteArray m_payload;
};
#endif // QXMPPIBBIQS_H
QXmppIbbCloseIq
Definition QXmppIbbIq.h:36
QXmppIbbCloseIq::sid
QString sid() const
Definition QXmppIbbIq.cpp:107
QXmppIbbCloseIq::setSid
void setSid(const QString &sid)
Definition QXmppIbbIq.cpp:116
QXmppIbbOpenIq
Definition QXmppIbbIq.h:12
QXmppIbbOpenIq::setBlockSize
void setBlockSize(long block_size)
Definition QXmppIbbIq.cpp:44
QXmppIbbOpenIq::sid
QString sid() const
Definition QXmppIbbIq.cpp:53
QXmppIbbOpenIq::setSid
void setSid(const QString &sid)
Definition QXmppIbbIq.cpp:62
QXmppIbbOpenIq::blockSize
long blockSize() const
Definition QXmppIbbIq.cpp:35
QXmppIq
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23