QXmpp Version: 1.4.0
Loading...
Searching...
No Matches
QXmppPubSubItem.h
1/*
2 * Copyright (C) 2008-2021 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
31class QDomElement;
32class QXmlStreamWriter;
33
34class QXmppElement;
35class QXmppPubSubItemPrivate;
36
39
40class QXMPP_EXPORT QXmppPubSubItem
41{
42public:
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
60private:
61 QSharedDataPointer<QXmppPubSubItemPrivate> d;
62};
63
64#endif // QXMPPPUBSUBITEM_H
QXmppElement represents a raw XML element with possible children.
Definition: QXmppElement.h:43
The QXmppPubSubItem class represents a publish-subscribe item as defined by XEP-0060: Publish-Subscri...
Definition: QXmppPubSubItem.h:41