QXmpp Version: 1.10.0
QXmppMixInfoItem.h
1// SPDX-FileCopyrightText: 2019 Linus Jahn <lnj@kaidan.im>
2// SPDX-FileCopyrightText: 2023 Melvin Keskin <melvo@olomono.de>
3//
4// SPDX-License-Identifier: LGPL-2.1-or-later
5
6#ifndef QXMPPMIXINFOITEM_H
7#define QXMPPMIXINFOITEM_H
8
9#include "QXmppDataForm.h"
10#include "QXmppPubSubBaseItem.h"
11
12class QXmppMixInfoItemPrivate;
13
14class QXMPP_EXPORT QXmppMixInfoItem : public QXmppPubSubBaseItem
15{
16public:
21
24
25 QXmppDataForm::Type formType() const;
26 void setFormType(QXmppDataForm::Type formType);
27
28 const QString &name() const;
29 void setName(QString);
30
31 const QString &description() const;
32 void setDescription(QString);
33
34 const QStringList &contactJids() const;
35 void setContactJids(QStringList);
36
37 static bool isItem(const QDomElement &itemElement);
38
39protected:
41 void parsePayload(const QDomElement &payloadElement) override;
42 void serializePayload(QXmlStreamWriter *writer) const override;
44
45private:
46 QSharedDataPointer<QXmppMixInfoItemPrivate> d;
47};
48
49Q_DECLARE_METATYPE(QXmppMixInfoItem)
50
51#endif // QXMPPMIXINFOITEM_H
Type
This enum is used to describe a form's type.
Definition: QXmppDataForm.h:163
The QXmppMixInfoItem class represents a PubSub item of a MIX channel containing channel information a...
Definition: QXmppMixInfoItem.h:15
QXmppMixInfoItem(const QXmppMixInfoItem &)
Default copy-constructor.
QXmppMixInfoItem & operator=(QXmppMixInfoItem &&)
Default move-assignment operator.
QXmppMixInfoItem(QXmppMixInfoItem &&)
Default move-constructor.
QXmppMixInfoItem & operator=(const QXmppMixInfoItem &)
Default assignment operator.
Definition: QXmppPubSubBaseItem.h:19
virtual void serializePayload(QXmlStreamWriter *writer) const
Definition: QXmppPubSubBaseItem.cpp:154
virtual void parsePayload(const QDomElement &payloadElement)
Definition: QXmppPubSubBaseItem.cpp:144
static bool isItem(const QDomElement &element)
Definition: QXmppPubSubBaseItem.cpp:134