QXmpp  Version: 1.15.1
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]]
23  QXmppPubSubItem();
24  QXmppPubSubItem(const QXmppPubSubItem &iq);
25  ~QXmppPubSubItem();
26 
27  QXmppPubSubItem &operator=(const QXmppPubSubItem &iq);
28 
29  [[deprecated]]
30  QString id() const;
31  [[deprecated]]
32  void setId(const QString &id);
33 
34  [[deprecated]]
35  QXmppElement contents() const;
36  [[deprecated]]
37  void setContents(const QXmppElement &contents);
38 
39  [[deprecated]]
40  void parse(const QDomElement &element);
41  [[deprecated]]
42  void toXml(QXmlStreamWriter *writer) const;
43 
44 private:
45  QSharedDataPointer<QXmppPubSubItemPrivate> d;
46 };
47 #endif
48 
49 #endif // QXMPPPUBSUBITEM_H
Definition: QXmppElement.h:20