Home · All Namespaces · All Classes · Grouped Classes · Modules · Functions |
The QCollectivePresenceInfo class holds presence information for a contact. More...
#include <QCollectivePresenceInfo>
The QCollectivePresenceInfo class holds presence information for a contact.
This class holds the presence information about a particular contact. This information is reported by the QCollectivePresence provider implementation. For protocols that support multiple presence states or multiple presence resources, it is up to the presence provider implementation to report the collated presence information. Presence provider implementations can choose to support custom fields in order to support more complex presence models. These fields can be set and accessed using the setProperties() and properties() methods. The use of such fields is implementation dependent.
See also QCollectivePresence.
This enum specifies the available presence state.
Constant | Value | Description |
---|---|---|
QCollectivePresenceInfo::None | 0 | The presence state is not specified |
QCollectivePresenceInfo::Offline | 1 | The presence entity is offline |
QCollectivePresenceInfo::Away | 3 | The presence entity is away for a short time from the resource and cannot have instant communications |
QCollectivePresenceInfo::Online | 2 | The presence entity is online and available for communications |
QCollectivePresenceInfo::ExtendedAway | 4 | This presence state signifies that the party is away for an extended period of time |
QCollectivePresenceInfo::Hidden | 5 | The presence entity is hidden |
QCollectivePresenceInfo::Busy | 6 | The presence entity is busy and should not be contacted |
Constructs a QCollectivePresenceInfo object for a presence account with uri.
See also QCollectivePresence.
Creates a new QCollectivePresenceInfo object that is a copy of other.
Destroys the presence acount object.
Returns the avatar (buddy icon) filename from this entity.
See also setAvatar().
Returns the capabilities of the entity.
See also setCapabilities().
Returns the display name for this presence account object.
See also setDisplayName().
Returns true if uri() returns an empty string; otherwise returns false.
Returns the last updated time of this entity.
See also setLastUpdateTime().
Returns the message from this entity.
See also setMessage().
Returns the presence state string associated with the uri.
Different providers may have different standard strings associated with QCollectivePresenceInfo::PresenceType values.
See also setPresence().
Returns the presence state type associated with the uri.
The presence state type is the standardized representation of the presence state, which may differ between different presence providers.
See also setPresence().
Returns the custom properties of this entity. These properties might be reported by some implementations of QCollectivePresence and can be used by client applications that have a deeper knowledge of the specific provider.
See also setProperties().
Sets the avatar (buddy icon) filename for this entity.
See also avatar() and message().
Sets the capabilities of the entity.
See also capabilities().
Sets the display name of entity to displayName.
See also displayName().
Sets the last updated time for this entity to lastUpdate.
See also lastUpdateTime().
Sets the message for this entity.
See also message().
Sets the presence state and corresponding type associated with the uri.
Presence providers should perform the mapping from the presence provider specific presence state string to the standardized enumeration (QCollectivePresenceInfo::PresenceType).
See also presence().
Sets the custom properties of this entity.
See also properties().
Sets the URI for this presence account to uri.
See also uri().
Returns the URI for this presence account object.
An account with no URI info is considered to be null.
See also setUri() and isNull().
Returns true if information in other is not equal to information contained in this object; otherwise returns false.
Note that this does not compare the properties.
Assigns other to this account and returns a reference to this presence account.
Returns true if information in other is equal to information contained in this object; otherwise returns false.
Note that this does not compare the properties.
Copyright © 2009 Trolltech | Trademarks | Qt Extended 4.4.3 |