Qt Mobility Reference Documentation

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

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

address : Address

This property holds the address detail of the Contact object.


read-onlyanniversary : Anniversary

This property holds the anniversary detail of the Contact object.


read-onlyavatar : Avatar

This property holds the avatar detail of the Contact object.


read-onlybirthday : Birthday

This property holds the birthday detail of the Contact object.


read-onlycontactId : int

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


details : QDeclarativeListProperty

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


read-onlydisplayLabel : string

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


email : EmailAddress

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


read-onlyfamily : Family

This property holds the family detail of the Contact object.


favorite : Favorite

This property holds the favorite detail of the Contact object.


read-onlygender : Gender

This property holds the gender detail of the Contact object.


read-onlygeolocation : GeoLocation

This property holds the geolocation detail of the Contact object.


read-onlyglobalPresence : GlobalPresence

This property holds the globalPresence detail of the Contact object.


read-onlyguid : Guid

This property holds the guid detail of the Contact object.


read-onlyhobby : Hobby

This property holds the hobby detail of the Contact object.


read-onlymanager : string

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


modified : bool

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


read-onlyname : Name

This property holds the name detail of the Contact object.


read-onlynickname : Nickname

This property holds the nickname detail of the Contact object.


read-onlynote : Note

This property holds the note detail of the Contact object.


read-onlyonlineAccount : OnlineAccount

This property holds the onlineAccount detail of the Contact object.


organization : Organization

This property holds the organization detail of the Contact object.


phoneNumber : PhoneNumber

This property holds the phoneNumber detail of the Contact object.


read-onlypresence : Presence

This property holds the presence detail of the Contact object.


ringtone : Ringtone

This property holds the ringtone detail of the Contact object.


syncTarget : SyncTarget

This property holds the syncTarget detail of the Contact object.


read-onlytag : Tag

This property holds the tag detail of the Contact object.


thumbnail : url

This property holds the thumbnail URL of the Contact object.


type : enumeration

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

  • Contact.Contact
  • Contact.Group

read-onlyurl : Url

This property holds the url detail of the Contact object.


Method Documentation

Contact::clearDetails ()

Remove all detail objects in this contact.


ContactDetail Contact::detail ( name )

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


list<ContactDetail> Contact::details ( name )

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


Contact::removeDetail ( detail )

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


Contact::save ()

Saves this Contact if the contact has been modified.

See also Contact::modified.


X

Thank you for giving your feedback.

Make sure it is related to this specific page. For more general bugs and requests, please use the Qt Bug Tracker.