ContactThe Contact element represents an addressbook contact. More... Properties
Methods
Detailed DescriptionThe Contact element is part of the QtContacts module. 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. If some of the contact details are not unique details, all of this type of detail values can be accessed by the property with the name in plural. For example, if 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 a contact does not contain a detail of particular type, the value of the corresponding singular property (e.g. phoneNumber) in undefined and the plural (e.g. phoneNumbers) is empty. The list of properties which support multiple detail instances depends on the contact engine implementations. See also QContact. Property DocumentationThis property holds the address detail of the Contact object. In case a contact has several addresses then the first one is returned. This property holds the anniversary detail of the Contact object. This property holds the avatar detail of the Contact object. This property holds the birthday detail of the Contact object. This property holds the list of all the details that the contact has. This property holds the id of the Contact object. This property is read only. This property holds the displayLabel detail of the Contact object. display label is the one which gets displayed when a contact is created as per versit doc specs this is a "FN" property This property holds the email address detail of the Contact object. In case a contact has several email addresses then the first one is returned. This property holds the email address details of the Contact object. This property holds the extended detail of the Contact object. In case a contact has several extended details then the first one is returned. This property holds the extended details of the Contact object. This property holds the family detail of the Contact object. This property holds the favorite detail of the Contact object. This property holds the gender detail of the Contact object. This property holds the geolocation detail of the Contact object. This property holds the globalPresence detail of the Contact object. This property holds the guid detail of the Contact object. This property holds the hobby detail of the Contact object. This property holds the manager name which the Contact object comes from. This property holds the dirty flag of the Contact object. If the Contact has been changed, returns true, otherwise returns false. This property holds the name detail of the Contact object. This property holds the nickname detail of the Contact object. This property holds the note detail of the Contact object. This property holds the onlineAccount detail of the Contact object. In case a contact has several accounts then the first one is returned. This property holds the organization detail of the Contact object. This property holds the organization details of the Contact object. This property holds the phone number detail of the Contact object. In case a contact has several numbers then the first one is returned. This property holds the phone number details of the Contact object. This property holds the presence detail of the Contact object. This property holds the ringtone detail of the Contact object. This property holds the syncTarget detail of the Contact object. This property holds the tag detail of the Contact object. This property holds the timestamp detail of the Contact object. This property holds type of the Contact, the value can be one of:
This property holds the url detail of the Contact object. This property holds the version detail of the Contact object. Method DocumentationAdds 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. Removes the given contact detail from the contact, returns true if successful, otherwise returns false. Saves this Contact if the contact has been modified. See also Contact::modified. |