QXmpp Version: 1.10.0
QXmppIbbIq.h
1// SPDX-FileCopyrightText: 2010 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 QXMPPIBBIQ_H
7#define QXMPPIBBIQ_H
8
9#include "QXmppIq.h"
10
11class QXmppIbbOpenIq : public QXmppIq
12{
13public:
15
16 long blockSize() const;
17 void setBlockSize(long block_size);
18
19 QString sid() const;
20 void setSid(const QString &sid);
21
23 static bool isIbbOpenIq(const QDomElement &element);
24
25protected:
26 void parseElementFromChild(const QDomElement &element) override;
27 void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
29
30private:
31 long m_block_size;
32 QString m_sid;
33};
34
36{
37public:
39
40 QString sid() const;
41 void setSid(const QString &sid);
42
44 static bool isIbbCloseIq(const QDomElement &element);
45
46protected:
47 void parseElementFromChild(const QDomElement &element) override;
48 void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
50
51private:
52 QString m_sid;
53};
54
55class QXMPP_EXPORT QXmppIbbDataIq : public QXmppIq
56{
57public:
58 QXmppIbbDataIq();
59
60 quint16 sequence() const;
61 void setSequence(quint16 seq);
62
63 QString sid() const;
64 void setSid(const QString &sid);
65
66 QByteArray payload() const;
67 void setPayload(const QByteArray &data);
68
70 static bool isIbbDataIq(const QDomElement &element);
71
72protected:
73 void parseElementFromChild(const QDomElement &element) override;
74 void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
76
77private:
78 quint16 m_seq;
79 QString m_sid;
80 QByteArray m_payload;
81};
82
83#endif // QXMPPIBBIQS_H
Definition: QXmppIbbIq.h:36
QString sid() const
Definition: QXmppIbbIq.cpp:107
void setSid(const QString &sid)
Definition: QXmppIbbIq.cpp:116
Definition: QXmppIbbIq.h:12
void setBlockSize(long block_size)
Definition: QXmppIbbIq.cpp:44
QString sid() const
Definition: QXmppIbbIq.cpp:53
void setSid(const QString &sid)
Definition: QXmppIbbIq.cpp:62
long blockSize() const
Definition: QXmppIbbIq.cpp:35
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:23