| Home · All Classes · Grouped Classes · Annotated · Functions | ![]() |
The QPresence class provides presence information for Voice-Over-IP style phone services. More...
#include <QPresence>
This class is under development and is subject to change.
Inherits QCommInterface.
The QPresence class provides presence information for Voice-Over-IP style phone services.
Clients can monitor the presence status of other users with startMonitoring(). The monitoredPresence() signal will be emitted whenever the status of the other users change. The client should call stopMonitoring() when it no longer wishes to monitor changes in a remote user's availability.
Clients can also alter the local user's presence status with setLocalPresence(). The presence change will be advertised to any remote user that is currently monitoring the local user.
See also QCommInterface.
This enum defines whether a Voice-Over-IP user is present or not.
| Constant | Value | Description |
|---|---|---|
| QPresence::Unavailable | 0 | The user is not available. |
| QPresence::Available | 1 | The user is available. |
This property holds the list of all uri's that are being monitored in the system, even by other applications.
Access functions:
This property holds the presence status for the local user.
Access functions:
This property holds the list of uri's that are being monitored by this client object.
Access functions:
Construct a new presence monitoring object for service and attach it to parent. The object will be created in client mode if mode is Client, or server mode otherwise.
Destroy this presence monitoring object. Any remaining monitor requests will be stopped.
Signal that is emitted when the localPresence() value changes.
See also localPresence() and setLocalPresence().
Signal that is emitted when the monitored presence status on uri changes. This signal may be emitted for uri's that are being monitored by other applications. The uri should be checked by the caller against the expected values from monitoredUris().
See also startMonitoring() and stopMonitoring().
Returns the current monitoring status associated with uri.
See also monitoredUris() and allMonitoredUris().
Start monitoring uri for presence changes. The monitoredPresence() signal will be emitted whenever the status changes. Returns false if the uri was already being monitored by this object.
Server implementations that inherit from QPresence should call this base implementation before performing any other action.
See also monitoredPresence() and stopMonitoring().
Stop monitoring uri for presence changes. Returns false if uri was not currently being monitored by this object, or there are still remaining references to uri in the system. Monitoring will be implicitly stopped when this object is destroyed.
Server implementations that inherit from QPresence should call this base implementation before performing any other action.
See also monitoredPresence() and startMonitoring().
Called from server implementations to update the monitoring status of uri. This function will update the global state as seen by monitoredUriStatus() and then emits monitoredPresence().
See also monitoredPresence(), startMonitoring(), and stopMonitoring().
| Copyright © 2008 Nokia | Trademarks | Qtopia 4.3.3 |