QXmppCallInviteManager Class

The QXmppCallInviteManager class makes it possible to retrieve Call Invite elements as defined by XEP-0482: Call Invites. More...

Header: #include <QXmppCallInviteManager>
Since: QXmpp 1.6
Inherits: QXmppClientExtension and QXmppMessageHandler

Public Types

Public Functions

QXmppTask<QXmppCallInviteManager::ProposeResult> invite(QString callPartnerJid, bool audio = true, bool video = false, std::optional<QXmppCallInviteElement::Jingle> jingle = std::nullopt, std::optional<QVector<QXmppCallInviteElement::External>> external = std::nullopt)

Signals

void invited(const std::shared_ptr<QXmppCallInvite> &callInvite, const QString &id)

Detailed Description

Member Type Documentation

[alias] QXmppCallInviteManager::ProposeResult

Contains Call Invite object or an error if sending the propose message failed.

Member Function Documentation

QXmppTask<QXmppCallInviteManager::ProposeResult> QXmppCallInviteManager::invite(QString callPartnerJid, bool audio = true, bool video = false, std::optional<QXmppCallInviteElement::Jingle> jingle = std::nullopt, std::optional<QVector<QXmppCallInviteElement::External>> external = std::nullopt)

Creates a proposal Call Invite element and sends it as a message to callPartnerJid. audio and video select the requested media streams. jingle and external optionally describe the available Jingle session methods and external service endpoints.

[signal] void QXmppCallInviteManager::invited(const std::shared_ptr<QXmppCallInvite> &callInvite, const QString &id)

Emitted when a call invitation has been received. callInvite is the Call Invite object of the proposed session and id is the Call Invite element id.