QXmpp Version: 1.5.6
|
The QXmppMixIq class represents an IQ used to do actions on a MIX channel as defined by XEP-0369: Mediated Information eXchange (MIX) and XEP-0405: Mediated Information eXchange (MIX): Participant Server Requirements. More...
#include <QXmppMixIq.h>
Public Types | |
enum | Type { None , ClientJoin , ClientLeave , Join , Leave , UpdateSubscription , SetNick , Create , Destroy } |
The action type of the MIX query IQ. | |
Public Types inherited from QXmppIq | |
enum | Type { Error = 0 , Get , Set , Result } |
This enum describes the type of IQ. More... | |
Public Member Functions | |
QXmppMixIq (const QXmppMixIq &) | |
Default copy-constructor. | |
QXmppMixIq (QXmppMixIq &&) | |
Default move-constructor. | |
QXmppMixIq & | operator= (const QXmppMixIq &) |
Default assignment operator. | |
QXmppMixIq & | operator= (QXmppMixIq &&) |
Default move-assignment operator. | |
QXmppMixIq::Type | actionType () const |
Returns the MIX channel action type. | |
void | setActionType (QXmppMixIq::Type) |
Sets the channel action. | |
QString | jid () const |
void | setJid (const QString &) |
QString | channelName () const |
void | setChannelName (const QString &) |
QStringList | nodes () const |
Returns the list of nodes to subscribe to. | |
void | setNodes (const QStringList &) |
QString | nick () const |
Returns the user's nickname in the channel. | |
void | setNick (const QString &) |
Sets the nickname for the channel. | |
Public Member Functions inherited from QXmppIq | |
QXmppIq (QXmppIq::Type type=QXmppIq::Get) | |
QXmppIq (const QXmppIq &other) | |
Constructs a copy of other. | |
QXmppIq (QXmppIq &&) | |
Default move-constructor. | |
QXmppIq & | operator= (const QXmppIq &other) |
Assigns other to this IQ. | |
QXmppIq & | operator= (QXmppIq &&) |
Move-assignment operator. | |
QXmppIq::Type | type () const |
void | setType (QXmppIq::Type) |
bool | isXmppStanza () const override |
Public Member Functions inherited from QXmppStanza | |
QXmppStanza (const QString &from=QString(), const QString &to=QString()) | |
QXmppStanza (const QXmppStanza &other) | |
Constructs a copy of other. | |
QXmppStanza (QXmppStanza &&) | |
Move constructor. | |
virtual | ~QXmppStanza () |
Destroys a QXmppStanza. | |
QXmppStanza & | operator= (const QXmppStanza &other) |
Assigns other to this stanza. | |
QXmppStanza & | operator= (QXmppStanza &&) |
Move-assignment operator. | |
QString | to () const |
void | setTo (const QString &) |
QString | from () const |
void | setFrom (const QString &) |
QString | id () const |
void | setId (const QString &) |
QString | lang () const |
void | setLang (const QString &) |
QXmppStanza::Error | error () const |
std::optional< Error > | errorOptional () const |
void | setError (const QXmppStanza::Error &error) |
void | setError (const std::optional< Error > &error) |
QXmppElementList | extensions () const |
void | setExtensions (const QXmppElementList &elements) |
QList< QXmppExtendedAddress > | extendedAddresses () const |
void | setExtendedAddresses (const QList< QXmppExtendedAddress > &extendedAddresses) |
std::optional< QXmppE2eeMetadata > | e2eeMetadata () const |
void | setE2eeMetadata (const std::optional< QXmppE2eeMetadata > &e2eeMetadata) |
Public Member Functions inherited from QXmppNonza | |
virtual void | parse (const QDomElement &)=0 |
virtual void | toXml (QXmlStreamWriter *writer) const =0 |
The QXmppMixIq class represents an IQ used to do actions on a MIX channel as defined by XEP-0369: Mediated Information eXchange (MIX) and XEP-0405: Mediated Information eXchange (MIX): Participant Server Requirements.
QString QXmppMixIq::channelName | ( | ) | const |
Returns the channel name (the name part of the channel JID). This may still be empty, if a JID was set.
QString QXmppMixIq::jid | ( | ) | const |
Returns the channel JID. It also contains a participant id for Join/ ClientJoin results.
void QXmppMixIq::setChannelName | ( | const QString & | channelName | ) |
Sets the channel name for creating/destroying specific channels. When you create a new channel, this can also be left empty to let the server generate a name.
void QXmppMixIq::setJid | ( | const QString & | jid | ) |
Sets the channel JID. For results of Join/ClientJoin queries this also needs to contain a participant id.
void QXmppMixIq::setNodes | ( | const QStringList & | nodes | ) |
Sets the nodes to subscribe to. Note that for UpdateSubscription queries you only need to include the new subscriptions.