QXmpp Version: 1.5.6
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)
19class QXMPP_EXPORT QXmppPubSubIq : public QXmppIq
20{
21public:
22 enum [[deprecated]] QueryType {
23 AffiliationsQuery,
24 DefaultQuery,
25 ItemsQuery,
26 PublishQuery,
27 RetractQuery,
28 SubscribeQuery,
29 SubscriptionQuery,
30 SubscriptionsQuery,
31 UnsubscribeQuery
32 };
33
34 [[deprecated]] QXmppPubSubIq();
35 QXmppPubSubIq(const QXmppPubSubIq &iq);
36 ~QXmppPubSubIq();
37
38 QXmppPubSubIq &operator=(const QXmppPubSubIq &iq);
39
40 [[deprecated]] QXmppPubSubIq::QueryType queryType() const;
41 [[deprecated]] void setQueryType(QXmppPubSubIq::QueryType queryType);
42
43 [[deprecated]] QString queryJid() const;
44 [[deprecated]] void setQueryJid(const QString &jid);
45
46 [[deprecated]] QString queryNode() const;
47 [[deprecated]] void setQueryNode(const QString &node);
48
49 [[deprecated]] QList<QXmppPubSubItem> items() const;
50 [[deprecated]] void setItems(const QList<QXmppPubSubItem> &items);
51
52 [[deprecated]] QString subscriptionId() const;
53 [[deprecated]] void setSubscriptionId(const QString &id);
54
55 [[deprecated]] static bool isPubSubIq(const QDomElement &element);
56
57protected:
58 void parseElementFromChild(const QDomElement &) override;
59 void toXmlElementFromChild(QXmlStreamWriter *writer) const override;
60
61private:
62 QSharedDataPointer<QXmppPubSubIqPrivate> d;
63};
64#endif
65
66#endif // QXMPPPUBSUBIQ_H
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23
QXmppIq & operator=(const QXmppIq &other)
Assigns other to this IQ.