QXmppDiscoIdentity Class
| Header: | #include <QXmppDiscoveryIq.h> |
Public Functions
| QXmppDiscoIdentity(const QString &category, const QString &type = {}, const QString &name = {}, const QString &lang = {}) | |
| const QString & | category() const |
| const QString & | language() const |
| const QString & | name() const |
| void | setCategory(const QString &newCategory) |
| void | setLanguage(const QString &newLanguage) |
| void | setName(const QString &newName) |
| void | setType(const QString &newType) |
| const QString & | type() const |
Detailed Description
Identity of an XMPP entity as defined in XEP-0030: Service Discovery.
Note: In QXmpp 1.11 and earlier, this class was called QXmppDiscoveryIq::Item.
Member Function Documentation
[explicit] QXmppDiscoIdentity::QXmppDiscoIdentity(const QString &category, const QString &type = {}, const QString &name = {}, const QString &lang = {})
Default constructor
const QString &QXmppDiscoIdentity::category() const
Returns the category of the identity.
See also setCategory().
const QString &QXmppDiscoIdentity::language() const
Returns the xml:lang code of the name.
It is possible that the same identity (same type and same category) is included multiple times with different languages and localized names.
See also setLanguage().
const QString &QXmppDiscoIdentity::name() const
Returns the human-readable name of the service.
See also setName().
void QXmppDiscoIdentity::setCategory(const QString &newCategory)
Sets the category of the identity.
newCategory.
See also category().
void QXmppDiscoIdentity::setLanguage(const QString &newLanguage)
Sets the xml:lang code of the name.
It is possible that the same identity (same type and same category) is included multiple times with different languages and localized names.
newLanguage.
See also language().
void QXmppDiscoIdentity::setName(const QString &newName)
Sets the human-readable name of the service.
newName.
See also name().
void QXmppDiscoIdentity::setType(const QString &newType)
Sets the service type in this category.
See https://xmpp.org/registrar/disco-categories.html for details.
newType.
See also type().
const QString &QXmppDiscoIdentity::type() const
Returns the service type in this category.
See https://xmpp.org/registrar/disco-categories.html for details.
See also setType().