QXmpp Version: 1.10.0
QXmppMixInvitation.h
1// SPDX-FileCopyrightText: 2021 Melvin Keskin <melvo@olomono.de>
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4
5#ifndef QXMPPMIXINVITATION_H
6#define QXMPPMIXINVITATION_H
7
8#include "QXmppElement.h"
9
10#include <QSharedDataPointer>
11
12class QXmppMixInvitationPrivate;
13
14class QXMPP_EXPORT QXmppMixInvitation
15{
16public:
17 QXmppMixInvitation();
18 QXmppMixInvitation(const QXmppMixInvitation &other);
19 QXmppMixInvitation(QXmppMixInvitation &&);
20 ~QXmppMixInvitation();
21
22 QXmppMixInvitation &operator=(const QXmppMixInvitation &other);
23 QXmppMixInvitation &operator=(QXmppMixInvitation &&);
24
25 QString inviterJid() const;
26 void setInviterJid(const QString &inviterJid);
27
28 QString inviteeJid() const;
29 void setInviteeJid(const QString &inviteeJid);
30
31 QString channelJid() const;
32 void setChannelJid(const QString &channelJid);
33
34 QString token() const;
35 void setToken(const QString &token);
36
38 void parse(const QDomElement &element);
39 void toXml(QXmlStreamWriter *writer) const;
41
42 static bool isMixInvitation(const QDomElement &element);
43
44private:
45 QSharedDataPointer<QXmppMixInvitationPrivate> d;
46};
47
48#endif // QXMPPMIXINVITATION_H