Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Toutes les fonctions  ·  Vues d'ensemble  · 

QCollectivePresenceInfo Class Reference
[QtBaseModule]

The QCollectivePresenceInfo class holds presence information for a contact. More...

    #include <QCollectivePresenceInfo>

Public Types

  • enum PresenceType { None, Offline, Away, Online, ..., Busy }

Public Functions


Detailed Description

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.


Member Type Documentation

enum QCollectivePresenceInfo::PresenceType

This enum specifies the available presence state.

ConstantValueDescription
QCollectivePresenceInfo::None0The presence state is not specified
QCollectivePresenceInfo::Offline1The presence entity is offline
QCollectivePresenceInfo::Away3The presence entity is away for a short time from the resource and cannot have instant communications
QCollectivePresenceInfo::Online2The presence entity is online and available for communications
QCollectivePresenceInfo::ExtendedAway4This presence state signifies that the party is away for an extended period of time
QCollectivePresenceInfo::Hidden5The presence entity is hidden
QCollectivePresenceInfo::Busy6The presence entity is busy and should not be contacted


Member Function Documentation

QCollectivePresenceInfo::QCollectivePresenceInfo ( const QString & uri = QString() )

Constructs a QCollectivePresenceInfo object for a presence account with uri.

See also QCollectivePresence.

QCollectivePresenceInfo::QCollectivePresenceInfo ( const QCollectivePresenceInfo & other )

Creates a new QCollectivePresenceInfo object that is a copy of other.

QCollectivePresenceInfo::~QCollectivePresenceInfo ()

Destroys the presence acount object.

QString QCollectivePresenceInfo::avatar () const

Returns the avatar (buddy icon) filename from this entity.

See also setAvatar().

QStringList QCollectivePresenceInfo::capabilities () const

Returns the capabilities of the entity.

See also setCapabilities().

QString QCollectivePresenceInfo::displayName () const

Returns the display name for this presence account object.

See also setDisplayName().

bool QCollectivePresenceInfo::isNull () const

Returns true if uri() returns an empty string; otherwise returns false.

QDateTime QCollectivePresenceInfo::lastUpdateTime () const

Returns the last updated time of this entity.

See also setLastUpdateTime().

QString QCollectivePresenceInfo::message () const

Returns the message from this entity.

See also setMessage().

QString QCollectivePresenceInfo::presence () const

Returns the presence state string associated with the uri.

Different providers may have different standard strings associated with QCollectivePresenceInfo::PresenceType values.

See also setPresence().

PresenceType QCollectivePresenceInfo::presenceType () const

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().

QVariantMap QCollectivePresenceInfo::properties () const

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().

void QCollectivePresenceInfo::setAvatar ( const QString & avatar )

Sets the avatar (buddy icon) filename for this entity.

See also avatar() and message().

void QCollectivePresenceInfo::setCapabilities ( const QStringList & capabilities )

Sets the capabilities of the entity.

See also capabilities().

void QCollectivePresenceInfo::setDisplayName ( const QString & displayName )

Sets the display name of entity to displayName.

See also displayName().

void QCollectivePresenceInfo::setLastUpdateTime ( const QDateTime & lastUpdate )

Sets the last updated time for this entity to lastUpdate.

See also lastUpdateTime().

void QCollectivePresenceInfo::setMessage ( const QString & message )

Sets the message for this entity.

See also message().

void QCollectivePresenceInfo::setPresence ( const QString & presence, PresenceType type )

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().

void QCollectivePresenceInfo::setProperties ( const QVariantMap & properties )

Sets the custom properties of this entity.

See also properties().

void QCollectivePresenceInfo::setUri ( const QString & uri )

Sets the URI for this presence account to uri.

See also uri().

QString QCollectivePresenceInfo::uri () const

Returns the URI for this presence account object.

An account with no URI info is considered to be null.

See also setUri() and isNull().

bool QCollectivePresenceInfo::operator!= ( const QCollectivePresenceInfo & other ) const

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.

QCollectivePresenceInfo & QCollectivePresenceInfo::operator= ( const QCollectivePresenceInfo & other )

Assigns other to this account and returns a reference to this presence account.

bool QCollectivePresenceInfo::operator== ( const QCollectivePresenceInfo & other ) const

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.

Publicité

Best Of

Actualités les plus lues

Semaine
Mois
Année
  1. « Quelque chose ne va vraiment pas avec les développeurs "modernes" », un développeur à "l'ancienne" critique la multiplication des bibliothèques 64
  2. Apercevoir la troisième dimension ou l'utilisation multithreadée d'OpenGL dans Qt, un article des Qt Quarterly traduit par Guillaume Belz 0
  3. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  4. BlackBerry 10 : premières images du prochain OS de RIM qui devrait intégrer des widgets et des tuiles inspirées de Windows Phone 0
  5. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  6. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
  7. La rubrique Qt a besoin de vous ! 1
Page suivante

Le Qt Developer Network au hasard

Logo

Combiner licence, à propos et fermer d'une autre manière

Le Qt Developer Network est un réseau de développeurs Qt anglophone, où ils peuvent partager leur expérience sur le framework. Lire l'article.

Communauté

Ressources

Liens utiles

Contact

  • Vous souhaitez rejoindre la rédaction ou proposer un tutoriel, une traduction, une question... ? Postez dans le forum Contribuez ou contactez-nous par MP ou par email (voir en bas de page).

Qt dans le magazine

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt qtextended4.4
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web