| Home · All Classes · Grouped Classes · Annotated · Functions |
The QPresence class provides presence information for Voice-Over-IP style phone services. More...
#include <QPresence>
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. |
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.
Returns the list of all uri's that are being monitored in the system, even by other applications.
See also monitoredUris() and monitoredUriStatus().
Returns the presence status for the local user.
See also setLocalPresence() and localPresenceChanged().
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().
Returns the list of uri's that are being monitored by this client object due to previous calls on startMonitoring() and stopMonitoring()
See also allMonitoredUris() and monitoredUriStatus().
Sets the presence status for the local user.
See also localPresence() and localPresenceChanged().
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 © 2007 Trolltech | Trademarks | Qtopia 4.2.5 |