QXmpp Version: 1.4.0
Loading...
Searching...
No Matches
QXmppMixIq.h
1/*
2 * Copyright (C) 2008-2021 The QXmpp developers
3 *
4 * Author:
5 * Linus Jahn
6 *
7 * Source:
8 * https://github.com/qxmpp-project/qxmpp
9 *
10 * This file is a part of QXmpp library.
11 *
12 * This library is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU Lesser General Public
14 * License as published by the Free Software Foundation; either
15 * version 2.1 of the License, or (at your option) any later version.
16 *
17 * This library is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20 * Lesser General Public License for more details.
21 *
22 */
23
24#ifndef QXMPPMIXIQ_H
25#define QXMPPMIXIQ_H
26
27#include "QXmppIq.h"
28
29#include <QSharedDataPointer>
30
31class QXmppMixIqPrivate;
32
41
42class QXMPP_EXPORT QXmppMixIq : public QXmppIq
43{
44public:
45 enum Type {
46 None,
47 ClientJoin,
48 ClientLeave,
49 Join,
50 Leave,
51 UpdateSubscription,
52 SetNick,
53 Create,
54 Destroy
55 };
56
57 QXmppMixIq();
58 QXmppMixIq(const QXmppMixIq &);
59 ~QXmppMixIq() override;
60
62
63 QXmppMixIq::Type actionType() const;
64 void setActionType(QXmppMixIq::Type);
65
66 QString jid() const;
67 void setJid(const QString &);
68
69 QString channelName() const;
70 void setChannelName(const QString &);
71
72 QStringList nodes() const;
73 void setNodes(const QStringList &);
74
75 QString nick() const;
76 void setNick(const QString &);
77
79 static bool isMixIq(const QDomElement &);
81
82protected:
84 void parseElementFromChild(const QDomElement &) override;
85 void toXmlElementFromChild(QXmlStreamWriter *) const override;
87
88private:
89 QSharedDataPointer<QXmppMixIqPrivate> d;
90};
91
92#endif // QXMPPMIXIQ_H
The QXmppIq class is the base class for all IQs.
Definition: QXmppIq.h:42
QXmppIq & operator=(const QXmppIq &other)
Assigns other to this IQ.
Definition: QXmppIq.cpp:68
The QXmppMixIq class represents an IQ used to do actions on a MIX channel as defined by XEP-0369: Med...
Definition: QXmppMixIq.h:43