QXmpp Version: 1.10.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
QXmppJingleMessageInitiationElement Class Reference

The QXmppJingleMessageInitiationElement class represents a Jingle Message Initiation element as specified by XEP-0353: Jingle Message Initiation. More...

Public Types

enum class  Type {
  None , Propose , Ringing , Proceed ,
  Reject , Retract , Finish
}
 

Public Member Functions

 QXmppJingleMessageInitiationElement ()
 Constructs a Jingle Message Initiation element.
 
Type type () const
 
void setType (Type type)
 
QString id () const
 
void setId (const QString &id)
 
std::optional< QXmppJingleDescriptiondescription () const
 
void setDescription (std::optional< QXmppJingleDescription > description)
 
std::optional< QXmppJingleReasonreason () const
 
void setReason (std::optional< QXmppJingleReason > reason)
 
bool containsTieBreak () const
 
void setContainsTieBreak (bool containsTieBreak)
 
QString migratedTo () const
 
void setMigratedTo (const QString &migratedTo)
 

Static Public Member Functions

static bool isJingleMessageInitiationElement (const QDomElement &)
 
static QString jmiElementTypeToString (Type type)
 
static std::optional< TypestringToJmiElementType (const QString &typeStr)
 

Detailed Description

The QXmppJingleMessageInitiationElement class represents a Jingle Message Initiation element as specified by XEP-0353: Jingle Message Initiation.

Since
QXmpp 1.6

Member Enumeration Documentation

◆ Type

Possible types of Jingle Message Initiation elements

Member Function Documentation

◆ containsTieBreak()

bool QXmppJingleMessageInitiationElement::containsTieBreak ( ) const

Returns true if the Jingle Message Initiation element contains a <tie-break/> tag.

◆ description()

std::optional< QXmppJingleDescription > QXmppJingleMessageInitiationElement::description ( ) const

Returns the Jingle Message Initiation element description.

◆ id()

QString QXmppJingleMessageInitiationElement::id ( ) const

Returns the Jingle Message Initiation element id.

◆ isJingleMessageInitiationElement()

bool QXmppJingleMessageInitiationElement::isJingleMessageInitiationElement ( const QDomElement &  element)
static

Returns true if passed QDomElement is a Jingle Message Initiation element

◆ jmiElementTypeToString()

QString QXmppJingleMessageInitiationElement::jmiElementTypeToString ( Type  type)
static

Takes a Jingle Message Initiation element type and parses it to a string.

◆ migratedTo()

QString QXmppJingleMessageInitiationElement::migratedTo ( ) const

Returns the Jingle Message Initiation element ID migrated to if the Jingle is being migrated to a different device.

◆ reason()

std::optional< QXmppJingleReason > QXmppJingleMessageInitiationElement::reason ( ) const

Returns the Jingle Message Initiation element reason.

◆ setContainsTieBreak()

void QXmppJingleMessageInitiationElement::setContainsTieBreak ( bool  containsTieBreak)

Sets if the Jingle Message Initiation element contains a <tie-break/> tag.

◆ setDescription()

void QXmppJingleMessageInitiationElement::setDescription ( std::optional< QXmppJingleDescription description)

Sets the Jingle Message Initiation element description.

◆ setId()

void QXmppJingleMessageInitiationElement::setId ( const QString &  id)

Sets the Jingle Message Initiation element id.

◆ setMigratedTo()

void QXmppJingleMessageInitiationElement::setMigratedTo ( const QString &  migratedTo)

Sets the Jingle Message Initiation element ID migrated to if the Jingle is being migrated to a different device.

◆ setReason()

void QXmppJingleMessageInitiationElement::setReason ( std::optional< QXmppJingleReason reason)

Sets the Jingle Message Initiation element reason.

◆ setType()

void QXmppJingleMessageInitiationElement::setType ( Type  type)

Sets the Jingle Message Initiation element type.

◆ stringToJmiElementType()

std::optional< QXmppJingleMessageInitiationElement::Type > QXmppJingleMessageInitiationElement::stringToJmiElementType ( const QString &  typeStr)
static

Takes a string and parses it to a Jingle Message Initiation element type.

◆ type()

QXmppJingleMessageInitiationElement::Type QXmppJingleMessageInitiationElement::type ( ) const

Returns the Jingle Message Initiation element type


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