QXmppCallInvite Class

The QXmppCallInvite class holds information about the Call Invite element in the current context. More...

Header: #include <QXmppCallInvite>
Since: QXmpp 1.6

Public Types

(since QXmpp 1.6) Result

Public Functions

QXmppCallInvite(QXmppCallInviteManager *manager)
QXmppTask<QXmpp::SendResult> accept()
QXmppTask<QXmpp::SendResult> leave()
QXmppTask<QXmpp::SendResult> reject()
QXmppTask<QXmpp::SendResult> retract()

Signals

void accepted(const QString &id, const QString &callPartnerResource)
void closed(const QXmppCallInvite::Result &result)
void invited()

Detailed Description

Member Type Documentation

[alias, since QXmpp 1.6] QXmppCallInvite::Result

Contains one of the result types Rejected, Retracted, Left or QXmppError used for Call Invite states.

This typedef was introduced in QXmpp 1.6.

Member Function Documentation

[explicit] QXmppCallInvite::QXmppCallInvite(QXmppCallInviteManager *manager)

Constructs a Call Invite object owned by manager.

QXmppTask<QXmpp::SendResult> QXmppCallInvite::accept()

Creates a Call Invite element of type "accept" and sends a request containing the element.

[signal] void QXmppCallInvite::accepted(const QString &id, const QString &callPartnerResource)

Emitted when a call was accepted. id is the Call Invite session ID and callPartnerResource is the resource of the call partner.

[signal] void QXmppCallInvite::closed(const QXmppCallInvite::Result &result)

Emitted when a call was closed. result is the close reason.

[signal] void QXmppCallInvite::invited()

Emitted when a call invitation was sent.

QXmppTask<QXmpp::SendResult> QXmppCallInvite::leave()

Creates a Call Invite element of type "leave" and sends a request containing the element.

QXmppTask<QXmpp::SendResult> QXmppCallInvite::reject()

Creates a Call Invite element of type "reject" and sends a request containing the element.

QXmppTask<QXmpp::SendResult> QXmppCallInvite::retract()

Creates a Call Invite element of type "retract" and sends a request containing the element.