QXmpp  Version: 1.5.5
QXmppPubSubItem.h
1 // SPDX-FileCopyrightText: 2010 Jeremy LainĂ© <jeremy.laine@m4x.org>
2 //
3 // SPDX-License-Identifier: LGPL-2.1-or-later
4 
5 #ifndef QXMPPPUBSUBITEM_H
6 #define QXMPPPUBSUBITEM_H
7 
8 #include "QXmppGlobal.h"
9 
10 #include <QSharedDataPointer>
11 
12 class QDomElement;
13 class QXmlStreamWriter;
14 
15 class QXmppElement;
16 class QXmppPubSubItemPrivate;
17 
18 #if QXMPP_DEPRECATED_SINCE(1, 5)
19 class QXMPP_EXPORT QXmppPubSubItem
20 {
21 public:
22  [[deprecated]] QXmppPubSubItem();
23  QXmppPubSubItem(const QXmppPubSubItem &iq);
24  ~QXmppPubSubItem();
25 
26  QXmppPubSubItem &operator=(const QXmppPubSubItem &iq);
27 
28  [[deprecated]] QString id() const;
29  [[deprecated]] void setId(const QString &id);
30 
31  [[deprecated]] QXmppElement contents() const;
32  [[deprecated]] void setContents(const QXmppElement &contents);
33 
34  [[deprecated]] void parse(const QDomElement &element);
35  [[deprecated]] void toXml(QXmlStreamWriter *writer) const;
36 
37 private:
38  QSharedDataPointer<QXmppPubSubItemPrivate> d;
39 };
40 #endif
41 
42 #endif // QXMPPPUBSUBITEM_H
Definition: QXmppElement.h:21