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  · 

QContactId Class Reference

The QContactId class provides information that uniquely identifies a contact in a particular manager. More...

 #include <QContactId>

This class was introduced in Qt Mobility 1.0.

Public Functions

QContactId ()
QContactId ( const QContactId & other )
~QContactId ()
QContactLocalId localId () const
QString managerUri () const
void setLocalId ( const QContactLocalId & id )
void setManagerUri ( const QString & uri )
bool operator!= ( const QContactId & other ) const
bool operator< ( const QContactId & other ) const
QContactId & operator= ( const QContactId & other )
bool operator== ( const QContactId & other ) const

Related Non-Members

typedef QContactLocalId

Detailed Description

The QContactId class provides information that uniquely identifies a contact in a particular manager.

It consists of a manager URI which identifies the manager which contains the contact, and the local id of the contact in that manager.

A "null" QContactId has an empty manager URI, and an invalid QContactLocalId (0).

See also QContactLocalId.

Member Function Documentation

QContactId::QContactId ()

Constructs a new contact id

QContactId::QContactId ( const QContactId & other )

Constructs a new contact id as a copy of other

QContactId::~QContactId ()

Cleans up the memory in use by the contact id

QContactLocalId QContactId::localId () const

Returns the manager-local id of the contact identified by this contact id

This function was introduced in Qt Mobility 1.0.

See also setLocalId().

QString QContactId::managerUri () const

Returns the URI of the manager which contains the contact identified by this id

This function was introduced in Qt Mobility 1.0.

See also setManagerUri().

void QContactId::setLocalId ( const QContactLocalId & id )

Sets the manager-local id of the contact identified by this contact id to id

This function was introduced in Qt Mobility 1.0.

See also localId().

void QContactId::setManagerUri ( const QString & uri )

Sets the URI of the manager which contains the contact identified by this id to uri

This function was introduced in Qt Mobility 1.0.

See also managerUri().

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

Returns true if either the manager URI or local id of the contact id is different to that of other

This function was introduced in Qt Mobility 1.0.

bool QContactId::operator< ( const QContactId & other ) const

Returns true if this id is less than the other id. This id will be considered less than the other id if the manager URI of this id is alphabetically less than the manager URI of the other id. If both ids have the same manager URI, this id will be considered less than the other id if the local id of this id is less than the local id of the other id.

The invalid, empty id consists of an empty manager URI and the invalid, zero local id, and hence will be less than any non-invalid id.

This operator is provided primarily to allow use of a QContactId as a key in a QMap.

This function was introduced in Qt Mobility 1.0.

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

Assigns the contact id to be equal to other

This function was introduced in Qt Mobility 1.0.

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

Returns true if the contact id has the same manager URI and local id as other

This function was introduced in Qt Mobility 1.0.

Related Non-Members

typedef QContactLocalId

The QContactLocalId type represents the unique id of a contact within its manager.

Most operations within a QContactManager accept a QContactLocalId. Some operations (involving links to contacts outside a particular manager) also accept a manager URI - this combination is stored in a QContactId.

An invalid QContactLocalId is represented by a zero (0) value.

See also QContactId.

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 44
  2. Microsoft ouvre aux autres compilateurs C++ AMP, la spécification pour la conception d'applications parallèles C++ utilisant le GPU 22
  3. Les développeurs ignorent-ils trop les failles découvertes dans leur code ? Prenez-vous en compte les remarques des autres ? 17
  4. RIM : « 13 % des développeurs ont gagné plus de 100 000 $ sur l'AppWord », Qt et open-source au menu du BlackBerry DevCon Europe 0
  5. 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
  6. Quelles nouveautés de C++11 Visual C++ doit-il rapidement intégrer ? Donnez-nous votre avis 10
  7. Adieu qmake, bienvenue qbs : Qt Building Suite, un outil déclaratif et extensible pour la compilation de projets Qt 17
Page suivante

Le Qt Developer Network au hasard

Logo

Compiler l'add-in Qt de Visual Studio

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 qtmobility-1.2
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