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  · 

QML Contact Element

The Contact element represents an addressbook contact, A Contact object has a collection of details (like a name, phone numbers and email addresses). Each detail (which can have multiple fields) is stored in an appropriate subclass of ContactDetail, and the Contact allows retrieving these details in various ways. More...

  • List of all members, including inherited members
  • Properties

    Methods

    Detailed Description

    If some of the contact details are not unique details, all of this type of detail values can be accessed by dynamic properties. For example, there are 3 phone numbers stored in a contact, they can be accessed by contact.phoneNumbers property, Which holds a list of all PhoneNumber details. If the dynamic property was not exists (for unique details), an undefined value returned. The list of dynamic detail properties depends on the contact engine implementations.

    The Contact element is part of the QtMobility.contacts 1.1 module.

    See also QContact.

    Property Documentation

    read-onlyaddress : Address

    This property holds the address detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlyanniversary : Anniversary

    This property holds the anniversary detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlyavatar : Avatar

    This property holds the avatar detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlybirthday : Birthday

    This property holds the birthday detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlycontactId : int

    This property holds the id of the Contact object. This property is read only.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlydetails : list<ContactDetail>

    This property holds the list of ContactDetail elements that the contact has.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlydisplayLabel : string

    This property holds the display label value of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlyemail : EmailAddress

    This property holds the email address detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlyfamily : Family

    This property holds the family detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlyfavorite : Favorite

    This property holds the favorite detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlygender : Gender

    This property holds the gender detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlygeolocation : GeoLocation

    This property holds the geolocation detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlyglobalPresence : GlobalPresence

    This property holds the globalPresence detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlyguid : Guid

    This property holds the guid detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlyhobby : Hobby

    This property holds the hobby detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlymanager : string

    This property holds the manager name which the Contact object comes from.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlymodified : bool

    This property holds the dirty flag of the Contact object. If the Contact has been changed, returns true, otherwise returns false.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlyname : Name

    This property holds the name detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlynickname : Nickname

    This property holds the nickname detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlynote : Note

    This property holds the note detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlyonlineAccount : OnlineAccount

    This property holds the onlineAccount detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlyorganization : Organization

    This property holds the organization detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlyphoneNumber : PhoneNumber

    This property holds the phoneNumber detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlypresence : Presence

    This property holds the presence detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlyringtone : Ringtone

    This property holds the ringtone detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlysyncTarget : SyncTarget

    This property holds the syncTarget detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlytag : Tag

    This property holds the tag detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    thumbnail : url

    This property holds the thumbnail URL of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    This property holds type of the Contact, the value can be one of:

    • Contact.Contact
    • Contact.Group

    This documentation was introduced in Qt Mobility Mobility 1.1.


    read-onlyurl : Url

    This property holds the url detail of the Contact object.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    Method Documentation

    Contact::addDetail ( detail )

    Adds the given contact detail to the contact, returns true if successful, otherwise returns false. Note:: If the detail has been added into the same contact before, this operation will be ignored, so if you want to add a detail multiple times, the detail should be copied before calling this function.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    Contact::clearDetails ()

    Remove all detail objects in this contact.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    ContactDetail Contact::detail ( name )

    Returns ContactDetail object which detail name or detail type is name.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    list<ContactDetail> Contact::details ( name )

    Returns a list of ContactDetail objects which detail name or detail type is name.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    Contact::removeDetail ( detail )

    Removes the give contact detail from the contact, returns true if successful, otherwise returns false.

    This documentation was introduced in Qt Mobility Mobility 1.1.


    Contact::save ()

    Saves this Contact if the contact has been modified.

    This documentation was introduced in Qt Mobility Mobility 1.1.

    See also Contact::modified.


    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 94
    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. Pourquoi les programmeurs sont-ils moins payés que les gestionnaires de programmes ? Manquent-ils de pouvoir de négociation ? 42
    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. 2017 : un quinquennat pour une nouvelle version du C++ ? Possible, selon Herb Sutter 9
    Page suivante

    Le blog Digia au hasard

    Logo

    Créer des applications avec un style Metro avec Qt, exemples en QML et C++, un article de Digia Qt traduit par Thibaut Cuvelier

    Le blog Digia est l'endroit privilégié pour la communication sur l'édition commerciale de Qt, où des réponses publiques sont apportées aux questions les plus posées au support. 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