Loading...
Searching...
No Matches
QXmppMixIq.h
// SPDX-FileCopyrightText: 2019 Linus Jahn <lnj@kaidan.im>
//
// SPDX-License-Identifier: LGPL-2.1-or-later
#ifndef QXMPPMIXIQ_H
#define QXMPPMIXIQ_H
#include "QXmppIq.h"
#include <QSharedDataPointer>
class QXmppMixIqPrivate;
class QXMPP_EXPORT QXmppMixIq : public QXmppIq
{
public:
enum Type {
None,
ClientJoin,
ClientLeave,
Join,
Leave,
UpdateSubscription,
SetNick,
Create,
Destroy
};
QXmppMixIq();
QXmppMixIq(const QXmppMixIq &);
QXmppMixIq(QXmppMixIq &&);
~QXmppMixIq() override;
QXmppMixIq &operator=(const QXmppMixIq &);
QXmppMixIq &operator=(QXmppMixIq &&);
QXmppMixIq::Type actionType() const;
void setActionType(QXmppMixIq::Type);
QString jid() const;
void setJid(const QString &);
QString channelName() const;
void setChannelName(const QString &);
QStringList nodes() const;
void setNodes(const QStringList &);
QString nick() const;
void setNick(const QString &);
static bool isMixIq(const QDomElement &);
protected:
void parseElementFromChild(const QDomElement &) override;
void toXmlElementFromChild(QXmlStreamWriter *) const override;
private:
QSharedDataPointer<QXmppMixIqPrivate> d;
};
#endif // QXMPPMIXIQ_H
QXmppIq
The QXmppIq class is the base class for all IQs.
Definition QXmppIq.h:23
QXmppMixIq
The QXmppMixIq class represents an IQ used to do actions on a MIX channel as defined by XEP-0369: Med...
Definition QXmppMixIq.h:25
QXmppMixIq::Type
Type
The action type of the MIX query IQ.
Definition QXmppMixIq.h:28
QXmppMixIq::operator=
QXmppMixIq & operator=(QXmppMixIq &&)
Default move-assignment operator.
QXmppMixIq::QXmppMixIq
QXmppMixIq(QXmppMixIq &&)
Default move-constructor.
QXmppMixIq::operator=
QXmppMixIq & operator=(const QXmppMixIq &)
Default assignment operator.
QXmppMixIq::QXmppMixIq
QXmppMixIq(const QXmppMixIq &)
Default copy-constructor.