QXmpp Version: 1.5.6
|
The QXmppJingleIq class represents an IQ used for initiating media sessions as specified by XEP-0166: Jingle. More...
#include <QXmppJingleIq.h>
Classes | |
struct | RtpSessionStateActive |
struct | RtpSessionStateHold |
struct | RtpSessionStateMuting |
struct | RtpSessionStateRinging |
struct | RtpSessionStateUnhold |
Public Types | |
enum | Action { ContentAccept , ContentAdd , ContentModify , ContentReject , ContentRemove , DescriptionInfo , SecurityInfo , SessionAccept , SessionInfo , SessionInitiate , SessionTerminate , TransportAccept , TransportInfo , TransportReject , TransportReplace } |
This enum is used to describe a Jingle action. | |
enum | Creator { Initiator , Responder } |
using | RtpSessionState = std::variant< RtpSessionStateActive, RtpSessionStateHold, RtpSessionStateUnhold, RtpSessionStateMuting, RtpSessionStateRinging > |
Public Types inherited from QXmppIq | |
enum | Type { Error = 0 , Get , Set , Result } |
This enum describes the type of IQ. More... | |
Public Member Functions | |
QXmppJingleIq () | |
Constructs a QXmppJingleIq. | |
QXmppJingleIq (const QXmppJingleIq &other) | |
Copy-constructor. | |
QXmppJingleIq (QXmppJingleIq &&) | |
Move-constructor. | |
QXmppJingleIq & | operator= (const QXmppJingleIq &other) |
Assignment operator. | |
QXmppJingleIq & | operator= (QXmppJingleIq &&) |
Move-assignment operator. | |
Action | action () const |
void | setAction (Action action) |
void | addContent (const Content &content) |
QList< Content > | contents () const |
void | setContents (const QList< Content > &contents) |
QString | initiator () const |
Returns the session initiator. | |
void | setInitiator (const QString &initiator) |
Reason & | reason () |
Returns a reference to the IQ's reason element. | |
const Reason & | reason () const |
Returns a const reference to the IQ's reason element. | |
QString | responder () const |
Returns the session responder. | |
void | setResponder (const QString &responder) |
bool | ringing () const |
void | setRinging (bool ringing) |
QString | sid () const |
Returns the session ID. | |
void | setSid (const QString &sid) |
QString | mujiGroupChatJid () const |
void | setMujiGroupChatJid (const QString &mujiGroupChatJid) |
std::optional< RtpSessionState > | rtpSessionState () const |
void | setRtpSessionState (const std::optional< RtpSessionState > &rtpSessionState) |
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 QXmppJingleIq class represents an IQ used for initiating media sessions as specified by XEP-0166: Jingle.
Contains the state of an RTP session as specified by XEP-0167: Jingle RTP Sessions Informational Messages.
Party that originially generated the content type
Enumerator | |
---|---|
Initiator | The initiator generated the content type. |
Responder | The responder generated the content type. |
QXmppJingleIq::Action QXmppJingleIq::action | ( | ) | const |
Returns the Jingle IQ's action.
void QXmppJingleIq::addContent | ( | const Content & | content | ) |
Adds an element to the IQ's content elements.
QList< QXmppJingleIq::Content > QXmppJingleIq::contents | ( | ) | const |
Returns the IQ's content elements.
QString QXmppJingleIq::mujiGroupChatJid | ( | ) | const |
Returns the JID of the XEP-0272: Multiparty Jingle (Muji) group chat.
bool QXmppJingleIq::ringing | ( | ) | const |
Returns true if the call is ringing.
QXmppJingleIq::rtpSessionState()
instead. std::optional< QXmppJingleIq::RtpSessionState > QXmppJingleIq::rtpSessionState | ( | ) | const |
Returns the state of an RTP session as specified by XEP-0167: Jingle RTP Sessions Informational Messages.
void QXmppJingleIq::setAction | ( | QXmppJingleIq::Action | action | ) |
Sets the Jingle IQ's action.
action |
void QXmppJingleIq::setContents | ( | const QList< Content > & | contents | ) |
Sets the IQ's content elements.
void QXmppJingleIq::setInitiator | ( | const QString & | initiator | ) |
Sets the session initiator.
initiator |
void QXmppJingleIq::setMujiGroupChatJid | ( | const QString & | mujiGroupChatJid | ) |
Sets the JID of the XEP-0272: Multiparty Jingle (Muji) group chat.
mujiGroupChatJid | Muji group chat JID |
void QXmppJingleIq::setResponder | ( | const QString & | responder | ) |
Sets the session responder.
responder |
void QXmppJingleIq::setRinging | ( | bool | ringing | ) |
Set to true if the call is ringing.
ringing |
QXmppJingleIq::setRtpSessionState()
instead. void QXmppJingleIq::setRtpSessionState | ( | const std::optional< RtpSessionState > & | rtpSessionState | ) |
Sets the state of an RTP session as specified by XEP-0167: Jingle RTP Sessions Informational Messages.
The appropriate action is set as well. Thus, it is not needed to set it manually.
rtpSessionState | session's state |
void QXmppJingleIq::setSid | ( | const QString & | sid | ) |
Sets the session ID.
sid |