QXmpp: QXmppMixParticipantItem.h Source File

QXmpp Version: 1.14.2

Loading...
Searching...
No Matches
QXmppMixParticipantItem.h
1// SPDX-FileCopyrightText: 2019 Linus Jahn <lnj@kaidan.im>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPMIXPARTICIPANTITEM_H
6#define QXMPPMIXPARTICIPANTITEM_H
7
8#include "QXmppPubSubBaseItem.h"
9
10class QXmppMixParticipantItemPrivate;
11
12 class QXMPP_EXPORT QXmppMixParticipantItem : public QXmppPubSubBaseItem
13{
14public:
15 QXmppMixParticipantItem();
16 QXmppMixParticipantItem(const QXmppMixParticipantItem &);
17 QXmppMixParticipantItem(QXmppMixParticipantItem &&);
18 ~QXmppMixParticipantItem();
19
20 QXmppMixParticipantItem &operator=(const QXmppMixParticipantItem &);
21 QXmppMixParticipantItem &operator=(QXmppMixParticipantItem &&);
22
23 const QString &nick() const;
24 void setNick(QString);
25
26 const QString &jid() const;
27 void setJid(QString);
28
29 static bool isItem(const QDomElement &);
30
31protected:
33 void parsePayload(const QDomElement &payloadElement) override;
34 void serializePayload(QXmlStreamWriter *writer) const override;
36
37private:
38 QSharedDataPointer<QXmppMixParticipantItemPrivate> d;
39};
40
41Q_DECLARE_METATYPE(QXmppMixParticipantItem)
42
43#endif // QXMPPMIXPARTICIPANTITEM_H
QXmppMixParticipantItem
Definition QXmppMixParticipantItem.h:13
QXmppMixParticipantItem::setJid
void setJid(QString)
Definition QXmppMixItems.cpp:1174
QXmppMixParticipantItem::nick
const QString & nick() const
Definition QXmppMixItems.cpp:1150
QXmppMixParticipantItem::jid
const QString & jid() const
Definition QXmppMixItems.cpp:1166
QXmppMixParticipantItem::operator=
QXmppMixParticipantItem & operator=(const QXmppMixParticipantItem &)
Default assignment operator.
QXmppMixParticipantItem::setNick
void setNick(QString)
Definition QXmppMixItems.cpp:1158
QXmppMixParticipantItem::operator=
QXmppMixParticipantItem & operator=(QXmppMixParticipantItem &&)
Default move-assignment operator.
QXmppMixParticipantItem::QXmppMixParticipantItem
QXmppMixParticipantItem(const QXmppMixParticipantItem &)
Default copy-constructor.
QXmppMixParticipantItem::QXmppMixParticipantItem
QXmppMixParticipantItem(QXmppMixParticipantItem &&)
Default move-constructor.
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