QXmpp Version: 1.10.0
Public Types | Public Member Functions | Friends | List of all members
QXmppJingleMessageInitiation Class Reference

The QXmppJingleMessageInitiation class holds information about the JMI element in the current context. More...

Inherits QObject.

Public Types

using Result = std::variant< Rejected, Retracted, Finished, QXmppError >
 Variant of Rejected, Retracted, Finished or Error result types.
 

Public Member Functions

 QXmppJingleMessageInitiation (QXmppJingleMessageInitiationManager *manager)
 Constructs a Jingle Message Initiation object.
 
QXmppTask< QXmpp::SendResultring ()
 
QXmppTask< QXmpp::SendResultproceed ()
 
QXmppTask< QXmpp::SendResultreject (std::optional< QXmppJingleReason > reason, bool containsTieBreak=false)
 
QXmppTask< QXmpp::SendResultretract (std::optional< QXmppJingleReason > reason, bool containsTieBreak=false)
 
QXmppTask< QXmpp::SendResultfinish (std::optional< QXmppJingleReason > reason, const QString &migratedTo={})
 
Q_SIGNAL void ringing ()
 
Q_SIGNAL void proceeded (const QString &id, const QString &callPartnerResource)
 
Q_SIGNAL void closed (const Result &result)
 

Friends

class QXmppJingleMessageInitiationManager
 
class tst_QXmppJingleMessageInitiationManager
 

Detailed Description

The QXmppJingleMessageInitiation class holds information about the JMI element in the current context.

Since
QXmpp 1.6

Member Function Documentation

◆ closed()

QXmppJingleMessageInitiation::closed ( const Result result)

Emitted when a call was ended either through rejection, retraction, finish or an error.

Parameters
resultclose reason

◆ finish()

QXmppTask< SendResult > QXmppJingleMessageInitiation::finish ( std::optional< QXmppJingleReason reason,
const QString &  migratedTo = {} 
)

Creates a JMI element of type "finish" and sends a request containing the element. The default reason type/tag will be "success" with text "Success".

Parameters
reasonReason object for finish element
migratedToJMI id the session has been migrated to

◆ proceed()

QXmppTask< SendResult > QXmppJingleMessageInitiation::proceed ( )

Creates a JMI element of type "proceed" and sends a request containing the element.

◆ proceeded()

QXmppJingleMessageInitiation::proceeded ( const QString &  id,
const QString &  callPartnerResource 
)

Emitted when a propose request was successfully processed and accepted.

Parameters
idbelonging JMI id
callPartnerResourceresource of the call partner about to be called

◆ reject()

QXmppTask< SendResult > QXmppJingleMessageInitiation::reject ( std::optional< QXmppJingleReason reason,
bool  containsTieBreak = false 
)

Creates a JMI element of type "reject" and sends a request containing the element. The default reason tag/type will be "busy" with text "Busy".

Parameters
reasonReason object for reject element
containsTieBreakWhether the reject element contains a tie-break tag or not

◆ retract()

QXmppTask< SendResult > QXmppJingleMessageInitiation::retract ( std::optional< QXmppJingleReason reason,
bool  containsTieBreak = false 
)

Creates a JMI element of type "retract" and sends a request containing the element. The default reason tag/type will be "cancel" with text "Retracted".

Parameters
reasonReason object for retract element
containsTieBreakWhether the retract element contains a tie-break tag or not

◆ ring()

QXmppTask< SendResult > QXmppJingleMessageInitiation::ring ( )

Creates a JMI element of type "ringing" and sends a request containing the element.

◆ ringing()

QXmppJingleMessageInitiation::ringing ( )

Emitted when a propose request was accepted and the device starts ringing.


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