QXmppUserLocationManager Class
| Header: | #include <QXmppUserLocationManager> |
| Since: | QXmpp 1.5 |
| Inherits: | QXmppClientExtension and QXmppPubSubEventHandler |
- List of all members, including inherited members
- QXmppUserLocationManager is part of Managers.
Public Types
Public Functions
| QXmppTask<QXmppUserLocationManager::GetResult> | request(const QString &jid) |
Signals
| void | itemReceived(const QString &jid, const QXmppGeolocItem &item) |
Detailed Description
The QXmppUserLocationManager implements XEP-0080: User Location. You'll receive location updates from all presence subscriptions. You can publish location information on the user's account (publish()) and request location information from specific accounts (request()).
The manager needs to be added to the client first and also requires the QXmppPubSubManager.
QXmppClient client; auto *pubSubManager = client.addNewExtension<QXmppPubSubManager>(); auto *locationManager = client.addNewExtension<QXmppUserLocationManager>();
Member Type Documentation
[alias] QXmppUserLocationManager::GetResult
Contains the User Location information or an error.
[alias] QXmppUserLocationManager::Item
Used pubsub item type.
[alias] QXmppUserLocationManager::PublishResult
Contains the ID of the published item on success or a stanza error.
Member Function Documentation
[signal] void QXmppUserLocationManager::itemReceived(const QString &jid, const QXmppGeolocItem &item)
Emitted whenever a XEP-0080: User Location items event arrives.
jid is the JID of the contact. item contains the received location data.
QXmppTask<QXmppUserLocationManager::GetResult> QXmppUserLocationManager::request(const QString &jid)
Request User Location information from the account with JID jid.