QXmpp: QXmppMixInfoItem.h Source File

QXmpp Version: 1.14.2

Loading...
Searching...
No Matches
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
14 class QXMPP_EXPORT QXmppMixInfoItem : public QXmppPubSubBaseItem
15{
16public:
17 QXmppMixInfoItem();
18 QXmppMixInfoItem(const QXmppMixInfoItem &);
19 QXmppMixInfoItem(QXmppMixInfoItem &&);
20 ~QXmppMixInfoItem();
21
22 QXmppMixInfoItem &operator=(const QXmppMixInfoItem &);
23 QXmppMixInfoItem &operator=(QXmppMixInfoItem &&);
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
QXmppDataForm::Type
Type
This enum is used to describe a form's type.
Definition QXmppDataForm.h:176
QXmppMixInfoItem
The QXmppMixInfoItem class represents a PubSub item of a MIX channel containing channel information a...
Definition QXmppMixInfoItem.h:15
QXmppMixInfoItem::setFormType
void setFormType(QXmppDataForm::Type formType)
Definition QXmppMixItems.cpp:1024
QXmppMixInfoItem::contactJids
const QStringList & contactJids() const
Definition QXmppMixItems.cpp:1065
QXmppMixInfoItem::QXmppMixInfoItem
QXmppMixInfoItem(const QXmppMixInfoItem &)
Default copy-constructor.
QXmppMixInfoItem::operator=
QXmppMixInfoItem & operator=(QXmppMixInfoItem &&)
Default move-assignment operator.
QXmppMixInfoItem::setDescription
void setDescription(QString)
Definition QXmppMixItems.cpp:1057
QXmppMixInfoItem::setName
void setName(QString)
Definition QXmppMixItems.cpp:1041
QXmppMixInfoItem::name
const QString & name() const
Definition QXmppMixItems.cpp:1033
QXmppMixInfoItem::QXmppMixInfoItem
QXmppMixInfoItem(QXmppMixInfoItem &&)
Default move-constructor.
QXmppMixInfoItem::description
const QString & description() const
Definition QXmppMixItems.cpp:1049
QXmppMixInfoItem::formType
QXmppDataForm::Type formType() const
Definition QXmppMixItems.cpp:1014
QXmppMixInfoItem::operator=
QXmppMixInfoItem & operator=(const QXmppMixInfoItem &)
Default assignment operator.
QXmppMixInfoItem::setContactJids
void setContactJids(QStringList)
Definition QXmppMixItems.cpp:1073
QXmppPubSubBaseItem::serializePayload
virtual void serializePayload(QXmlStreamWriter *writer) const
Definition QXmppPubSubBaseItem.cpp:154
QXmppPubSubBaseItem::QXmppPubSubBaseItem
QXmppPubSubBaseItem(const QString &id={}, const QString &publisher={})
Definition QXmppPubSubBaseItem.cpp:62
QXmppPubSubBaseItem::parsePayload
virtual void parsePayload(const QDomElement &payloadElement)
Definition QXmppPubSubBaseItem.cpp:144
QXmppPubSubBaseItem::isItem
static bool isItem(const QDomElement &element)
Definition QXmppPubSubBaseItem.cpp:134