QXmpp: QXmppPubSubIq.h Source File

QXmpp Version: 1.14.3

Loading...
Searching...
No Matches
QXmppPubSubIq.h
1// SPDX-FileCopyrightText: 2010 Jeremy Lainé <jeremy.laine@m4x.org>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPPUBSUBIQ_H
6#define QXMPPPUBSUBIQ_H
7
8#include "QXmppIq.h"
9
10#include <QSharedDataPointer>
11
12#if QXMPP_DEPRECATED_SINCE(1, 2)
13#include "QXmppPubSubItem.h"
14#endif
15
16class QXmppPubSubIqPrivate;
17
18#if QXMPP_DEPRECATED_SINCE(1, 5)
19
20QT_WARNING_PUSH
21QT_WARNING_DISABLE_DEPRECATED
22
23class QXMPP_EXPORT QXmppPubSubIq : public QXmppIq
24{
25public:
26 enum [[deprecated]] QueryType {
27 AffiliationsQuery,
28 DefaultQuery,
29 ItemsQuery,
30 PublishQuery,
31 RetractQuery,
32 SubscribeQuery,
33 SubscriptionQuery,
34 SubscriptionsQuery,
35 UnsubscribeQuery
36 };
37
38 [[deprecated]]
39 QXmppPubSubIq();
40 QXmppPubSubIq(const QXmppPubSubIq &iq);
41 ~QXmppPubSubIq() override;
42
43 QXmppPubSubIq &operator=(const QXmppPubSubIq &iq);
44
45 [[deprecated]]
46 QXmppPubSubIq::QueryType queryType() const;
47 [[deprecated]]
48 void setQueryType(QXmppPubSubIq::QueryType queryType);
49
50 [[deprecated]]
51 QString queryJid() const;
52 [[deprecated]]
53 void setQueryJid(const QString &jid);
54
55 [[deprecated]]
56 QString queryNode() const;
57 [[deprecated]]
58 void setQueryNode(const QString &node);
59
60 [[deprecated]]
61 QList<QXmppPubSubItem> items() const;
62 [[deprecated]]
63 void setItems(const QList<QXmppPubSubItem> &items);
64
65 [[deprecated]]
66 QString subscriptionId() const;
67 [[deprecated]]
68 void setSubscriptionId(const QString &id);
69
70 [[deprecated]]
71 static bool isPubSubIq(const QDomElement &element);
72
73protected:
74 void parseElementFromChild(const QDomElement &) override;
75 void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
76
77private:
78 QSharedDataPointer<QXmppPubSubIqPrivate> d;
79};
80
81QT_WARNING_POP
82
83#endif
84
85#endif // QXMPPPUBSUBIQ_H
QXmppIq
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23
QXmppIq::operator=
QXmppIq & operator=(const QXmppIq &other)
Assigns other to this IQ.