Loading...
Searching...
No Matches
QXmppMixInfoItem.h
// SPDX-FileCopyrightText: 2019 Linus Jahn <lnj@kaidan.im>
// SPDX-FileCopyrightText: 2023 Melvin Keskin <melvo@olomono.de>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPMIXINFOITEM_H
#define QXMPPMIXINFOITEM_H
#include "QXmppDataForm.h"
#include "QXmppPubSubBaseItem.h"
class QXmppMixInfoItemPrivate;
class QXMPP_EXPORT QXmppMixInfoItem : public QXmppPubSubBaseItem
{
public:
QXmppMixInfoItem();
QXmppMixInfoItem(const QXmppMixInfoItem &);
QXmppMixInfoItem(QXmppMixInfoItem &&);
~QXmppMixInfoItem();
QXmppMixInfoItem &operator=(const QXmppMixInfoItem &);
QXmppMixInfoItem &operator=(QXmppMixInfoItem &&);
QXmppDataForm::Type formType() const;
void setFormType(QXmppDataForm::Type formType);
const QString &name() const;
void setName(QString);
const QString &description() const;
void setDescription(QString);
const QStringList &contactJids() const;
void setContactJids(QStringList);
static bool isItem(const QDomElement &itemElement);
protected:
void parsePayload(const QDomElement &payloadElement) override;
void serializePayload(QXmlStreamWriter *writer) const override;
private:
QSharedDataPointer<QXmppMixInfoItemPrivate> d;
};
Q_DECLARE_METATYPE(QXmppMixInfoItem)
#endif // QXMPPMIXINFOITEM_H
QXmppDataForm::Type
Type
This enum is used to describe a form's type.
Definition QXmppDataForm.h:163
QXmppMixInfoItem
The QXmppMixInfoItem class represents a PubSub item of a MIX channel containing channel information a...
Definition QXmppMixInfoItem.h:15
QXmppMixInfoItem::QXmppMixInfoItem
QXmppMixInfoItem(const QXmppMixInfoItem &)
Default copy-constructor.
QXmppMixInfoItem::operator=
QXmppMixInfoItem & operator=(QXmppMixInfoItem &&)
Default move-assignment operator.
QXmppMixInfoItem::QXmppMixInfoItem
QXmppMixInfoItem(QXmppMixInfoItem &&)
Default move-constructor.
QXmppMixInfoItem::operator=
QXmppMixInfoItem & operator=(const QXmppMixInfoItem &)
Default assignment operator.
QXmppPubSubBaseItem
Definition QXmppPubSubBaseItem.h:19
QXmppPubSubBaseItem::serializePayload
virtual void serializePayload(QXmlStreamWriter *writer) const
Definition QXmppPubSubBaseItem.cpp:154
QXmppPubSubBaseItem::parsePayload
virtual void parsePayload(const QDomElement &payloadElement)
Definition QXmppPubSubBaseItem.cpp:144
QXmppPubSubBaseItem::isItem
static bool isItem(const QDomElement &element)
Definition QXmppPubSubBaseItem.cpp:134