|
QXmpp Version: 1.15.1
|
Public Types | |
| enum class | Action { Add , Delete , Modify } |
| enum class | Transport { Tcp , Udp } |
Public Member Functions | |
| QString | host () const |
| void | setHost (const QString &) |
| QString | type () const |
| void | setType (const QString &) |
| std::optional< Action > | action () const |
| void | setAction (std::optional< Action >) |
| std::optional< QDateTime > | expires () const |
| void | setExpires (std::optional< QDateTime >) |
| std::optional< QString > | name () const |
| void | setName (std::optional< QString >) |
| std::optional< QString > | password () const |
| void | setPassword (std::optional< QString >) |
| std::optional< quint16 > | port () const |
| void | setPort (std::optional< quint16 >) |
| std::optional< bool > | restricted () const |
| void | setRestricted (std::optional< bool >) |
| std::optional< Transport > | transport () const |
| void | setTransport (std::optional< Transport >) |
| std::optional< QString > | username () const |
| void | setUsername (std::optional< QString >) |
| void | parse (const QDomElement &) |
| void | toXml (QXmlStreamWriter *) const |
| QXmppExternalService::toXml. | |
Static Public Member Functions | |
| static bool | isExternalService (const QDomElement &) |
QXmppExternalService represents a related XMPP entity that can be queried using XEP-0215: External Service Discovery.
|
strong |
Describes the action type of an external service IQ.
|
strong |
Describes the packet type of an external service IQ.
| std::optional< Action > QXmppExternalService::action | ( | ) | const |
Returns the action of the external service.
| std::optional< QDateTime > QXmppExternalService::expires | ( | ) | const |
Returns the expiration date of the external service.
| QString QXmppExternalService::host | ( | ) | const |
Returns the host of the external service.
|
static |
Returns true if the element is a valid external service and can be parsed.
| std::optional< QString > QXmppExternalService::name | ( | ) | const |
Returns the name of the external service.
| void QXmppExternalService::parse | ( | const QDomElement & | el | ) |
Parses given DOM element as an external service.
| std::optional< QString > QXmppExternalService::password | ( | ) | const |
Returns the password of the external service.
| std::optional< quint16 > QXmppExternalService::port | ( | ) | const |
Returns the port of the external service.
| std::optional< bool > QXmppExternalService::restricted | ( | ) | const |
Returns the restricted mode of the external service.
| void QXmppExternalService::setAction | ( | std::optional< Action > | action | ) |
Sets the action of the external service.
| void QXmppExternalService::setExpires | ( | std::optional< QDateTime > | expires | ) |
Sets the expiration date of the external service.
| void QXmppExternalService::setHost | ( | const QString & | host | ) |
Sets the host of the external service.
| void QXmppExternalService::setName | ( | std::optional< QString > | name | ) |
Sets the name of the external service.
| void QXmppExternalService::setPassword | ( | std::optional< QString > | password | ) |
Sets the password of the external service.
| void QXmppExternalService::setPort | ( | std::optional< quint16 > | port | ) |
Sets the port of the external service.
| void QXmppExternalService::setRestricted | ( | std::optional< bool > | restricted | ) |
Sets the restricted mode of the external service.
| void QXmppExternalService::setTransport | ( | std::optional< Transport > | transport | ) |
Sets the transport type of the external service.
| void QXmppExternalService::setType | ( | const QString & | type | ) |
Sets the type of the external service.
| void QXmppExternalService::setUsername | ( | std::optional< QString > | username | ) |
Sets the username of the external service.
| void QXmppExternalService::toXml | ( | QXmlStreamWriter * | writer | ) | const |
Translates the external service to XML using the provided XML stream writer.
| std::optional< QXmppExternalService::Transport > QXmppExternalService::transport | ( | ) | const |
Returns the transport type of the external service.
| QString QXmppExternalService::type | ( | ) | const |
Returns the type of the external service.
| std::optional< QString > QXmppExternalService::username | ( | ) | const |
Returns the username of the external service.