QXmpp  Version:1.3.0
Public Types | Public Member Functions | List of all members
QXmppJingleIq Class Reference

The QXmppJingleIq class represents an IQ used for initiating media sessions as specified by XEP-0166: Jingle. More...

#include <QXmppJingleIq.h>

Inheritance diagram for QXmppJingleIq:
Inheritance graph
[legend]
Collaboration diagram for QXmppJingleIq:
Collaboration graph
[legend]

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.
 
- 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)
 
QXmppJingleIqoperator= (const QXmppJingleIq &other)
 
Action action () const
 Returns the Jingle IQ's action.
 
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
 Returns true if the call is ringing.
 
void setRinging (bool ringing)
 
QString sid () const
 Returns the session ID.
 
void setSid (const QString &sid)
 
- Public Member Functions inherited from QXmppIq
 QXmppIq (QXmppIq::Type type=QXmppIq::Get)
 
 QXmppIq (const QXmppIq &other)
 Constructs a copy of other.
 
QXmppIqoperator= (const QXmppIq &other)
 Assigns other to this IQ.
 
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.
 
virtual ~QXmppStanza ()
 Destroys a QXmppStanza.
 
QXmppStanzaoperator= (const QXmppStanza &other)
 Assigns other to this stanza.
 
QString to () const
 
void setTo (const QString &)
 
QString from () const
 Returns the stanza's sender JID.
 
void setFrom (const QString &)
 
QString id () const
 Returns the stanza's identifier.
 
void setId (const QString &)
 
QString lang () const
 Returns the stanza's language.
 
void setLang (const QString &)
 
QXmppStanza::Error error () const
 Returns the stanza's error.
 
void setError (const QXmppStanza::Error &error)
 
QXmppElementList extensions () const
 
void setExtensions (const QXmppElementList &elements)
 
QList< QXmppExtendedAddressextendedAddresses () const
 
void setExtendedAddresses (const QList< QXmppExtendedAddress > &extendedAddresses)
 

Detailed Description

The QXmppJingleIq class represents an IQ used for initiating media sessions as specified by XEP-0166: Jingle.

Constructor & Destructor Documentation

◆ QXmppJingleIq()

QXmppJingleIq::QXmppJingleIq ( const QXmppJingleIq other)

Constructs a copy of other.

Parameters
other

Member Function Documentation

◆ addContent()

void QXmppJingleIq::addContent ( const Content &  content)

Adds an element to the IQ's content elements.

Since
QXmpp 0.9.2

◆ contents()

QList< QXmppJingleIq::Content > QXmppJingleIq::contents ( ) const

Returns the IQ's content elements.

Since
QXmpp 0.9.2

◆ operator=()

QXmppJingleIq & QXmppJingleIq::operator= ( const QXmppJingleIq other)

Assigns the other Jingle IQ to this one.

Parameters
other

◆ setAction()

void QXmppJingleIq::setAction ( QXmppJingleIq::Action  action)

Sets the Jingle IQ's action.

Parameters
action

◆ setContents()

void QXmppJingleIq::setContents ( const QList< Content > &  contents)

Sets the IQ's content elements.

Since
QXmpp 0.9.2

◆ setInitiator()

void QXmppJingleIq::setInitiator ( const QString &  initiator)

Sets the session initiator.

Parameters
initiator

◆ setResponder()

void QXmppJingleIq::setResponder ( const QString &  responder)

Sets the session responder.

Parameters
responder

◆ setRinging()

void QXmppJingleIq::setRinging ( bool  ringing)

Set to true if the call is ringing.

Parameters
ringing

◆ setSid()

void QXmppJingleIq::setSid ( const QString &  sid)

Sets the session ID.

Parameters
sid

The documentation for this class was generated from the following files: