QXmpp Version: 1.10.0
|
The QXmppCallInviteElement class represents a Call Invite element as specified by XEP-0482: Call Invites. More...
Public Types | |
enum class | Type { None , Invite , Retract , Accept , Reject , Left } |
Public Member Functions | |
QXmppCallInviteElement () | |
Constructs a Call Invite element. | |
Type | type () const |
void | setType (Type type) |
QString | id () const |
void | setId (const QString &id) |
bool | audio () const |
void | setAudio (bool audio) |
bool | video () const |
void | setVideo (bool video) |
std::optional< Jingle > | jingle () const |
void | setJingle (std::optional< Jingle > jingle) |
std::optional< QVector< External > > | external () const |
void | setExternal (std::optional< QVector< External > > external) |
Static Public Member Functions | |
static bool | isCallInviteElement (const QDomElement &) |
The QXmppCallInviteElement class represents a Call Invite element as specified by XEP-0482: Call Invites.
|
strong |
Possible types of Call Invite elements
bool QXmppCallInviteElement::audio | ( | ) | const |
Returns the Call Invite element audio flag.
std::optional< QVector< QXmppCallInviteElement::External > > QXmppCallInviteElement::external | ( | ) | const |
Returns possible Call Invite "external" sub elements.
QString QXmppCallInviteElement::id | ( | ) | const |
Returns the Call Invite element id.
|
static |
Returns true if passed QDomElement is a Call Invite element
std::optional< QXmppCallInviteElement::Jingle > QXmppCallInviteElement::jingle | ( | ) | const |
Returns a possible Call Invite element "jingle" sub element.
void QXmppCallInviteElement::setAudio | ( | bool | audio | ) |
Sets the Call Invite element audio flag.
void QXmppCallInviteElement::setExternal | ( | std::optional< QVector< External > > | external | ) |
Sets possible Call Invite "external" sub elements.
void QXmppCallInviteElement::setId | ( | const QString & | id | ) |
Sets the Call Invite element id.
void QXmppCallInviteElement::setJingle | ( | std::optional< Jingle > | jingle | ) |
Sets a possible Call Invite "jingle" sub element.
void QXmppCallInviteElement::setType | ( | Type | type | ) |
Sets the Call Invite element type.
void QXmppCallInviteElement::setVideo | ( | bool | video | ) |
Sets the Call Invite element video flag.
QXmppCallInviteElement::Type QXmppCallInviteElement::type | ( | ) | const |
Returns the Call Invite element type.
bool QXmppCallInviteElement::video | ( | ) | const |
Returns the Call Invite element video flag.