QXmpp  Version:1.3.1
QXmppPubSubItem.h
1 /*
2  * Copyright (C) 2008-2020 The QXmpp developers
3  *
4  * Author:
5  * Jeremy LainĂ©
6  *
7  * Source:
8  * https://github.com/qxmpp-project/qxmpp
9  *
10  * This file is a part of QXmpp library.
11  *
12  * This library is free software; you can redistribute it and/or
13  * modify it under the terms of the GNU Lesser General Public
14  * License as published by the Free Software Foundation; either
15  * version 2.1 of the License, or (at your option) any later version.
16  *
17  * This library is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  * Lesser General Public License for more details.
21  *
22  */
23 
24 #ifndef QXMPPPUBSUBITEM_H
25 #define QXMPPPUBSUBITEM_H
26 
27 #include "QXmppGlobal.h"
28 
29 #include <QSharedDataPointer>
30 
31 class QDomElement;
32 class QXmlStreamWriter;
33 
34 class QXmppElement;
35 class QXmppPubSubItemPrivate;
36 
39 
40 class QXMPP_EXPORT QXmppPubSubItem
41 {
42 public:
45  ~QXmppPubSubItem();
46 
47  QXmppPubSubItem &operator=(const QXmppPubSubItem &iq);
48 
49  QString id() const;
50  void setId(const QString &id);
51 
52  QXmppElement contents() const;
53  void setContents(const QXmppElement &contents);
54 
56  void parse(const QDomElement &element);
57  void toXml(QXmlStreamWriter *writer) const;
59 
60 private:
61  QSharedDataPointer<QXmppPubSubItemPrivate> d;
62 };
63 
64 #endif // QXMPPPUBSUBITEM_H
QXmppElement
QXmppElement represents a raw XML element with possible children.
Definition: QXmppElement.h:42
QXmppPubSubItem
The QXmppPubSubItem class represents a publish-subscribe item as defined by XEP-0060: Publish-Subscri...
Definition: QXmppPubSubItem.h:40