QXmpp Version: 1.4.0
Loading...
Searching...
No Matches
QXmppMixItem.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 QXMPPMIXITEM_H
25#define QXMPPMIXITEM_H
26
27#include "QXmppElement.h"
28
29#include <QSharedDataPointer>
30
31class QXmppMixInfoItemPrivate;
32class QXmppMixParticipantItemPrivate;
33
41
42class QXMPP_EXPORT QXmppMixInfoItem
43{
44public:
48
49 QXmppMixInfoItem &operator=(const QXmppMixInfoItem &);
50
51 QString name() const;
52 void setName(const QString &);
53
54 QString description() const;
55 void setDescription(const QString &);
56
57 QStringList contactJids() const;
58 void setContactJids(const QStringList &);
59
60 void parse(const QXmppElement &itemContent);
61 QXmppElement toElement() const;
62
63 static bool isMixChannelInfo(const QDomElement &);
64
65private:
66 QSharedDataPointer<QXmppMixInfoItemPrivate> d;
67};
68
76
77class QXMPP_EXPORT QXmppMixParticipantItem
78{
79public:
83
85
86 QString nick() const;
87 void setNick(const QString &);
88
89 QString jid() const;
90 void setJid(const QString &);
91
92 void parse(const QXmppElement &itemContent);
93 QXmppElement toElement() const;
94
95 static bool isMixParticipantItem(const QDomElement &);
96
97private:
98 QSharedDataPointer<QXmppMixParticipantItemPrivate> d;
99};
100
101#endif // QXMPPMIXITEM_H
QXmppElement represents a raw XML element with possible children.
Definition: QXmppElement.h:43
The QXmppMixInfoItem class represents a PubSub item of a MIX channel containing channel information a...
Definition: QXmppMixItem.h:43
The QXmppMixParticipantItem class represents a PubSub item of a MIX channel participant as defined by...
Definition: QXmppMixItem.h:78