Qt Contacts QML Types

Qt Contacts' QML API enables client to search for contacts data from local backends and use filters to get only the relevant results. The QML Contacts API delivers this capability in easy to use form. The Qt Contacts QML API page contains an overview of the QML types.

To use the types, simply add the following to the QML file:


  import QtContacts 5.0

ActionFilter

Element provides a filter based around an action availability criterion

Address

Element contains an address of a contact

Anniversary

Element contains an anniversary of a contact

Avatar

Element contains avatar URLs of a contact

Birthday

Element contains a birthday of a contact

ChangeLogFilter

Element provides a filter based around a contact timestamp criterion

Collection

Element represents a collection of items in a contacts manager

Contact

Element represents an addressbook contact

ContactDetail

Element represents a single, complete detail about a contact

ContactModel

Element provides access to contacts from the contacts store

DetailFilter

Element provides a filter based around a detail value criterion

DetailRangeFilter

Element provides a filter based around a detail value range criterion

DisplayLabel

Element contains a label that can be used by clients when displaying a contact, for example in a list

EmailAddress

Element contains an email address of a contact

ExtendedDetail

Element contains an extended detail of a contact

Family

Element contains names of family members of a contact

Favorite

Element indicates if a contact is a favorite contact as well as the position it should appear in an ordered list of favorites

FetchHint

Element provides hints to the manager about which contact information needs to be retrieved in an asynchronous fetch request or a synchronous function call

Filter

Element is used as a property of ContactModel, to allow selection of contacts which have certain details or properties

Gender

Element contains the gender of a contact

GeoLocation

Element contains a global location coordinate associated with a contact

GlobalPresence

Element provides aggregated presence information for a contact, synthesized or supplied by the backend

Guid

Element contains a globally unique Id of a contact, for use in synchronization with other datastores

Hobby

Element contains a hobby of the contact

IdFilter

Element provides a filter based around a list of contact ids

IntersectionFilter

Element provides a filter which intersects the results of other filters

InvalidFilter

The InvalidFilter element provides a filter which will never match any contacts

Name

Element contains a name of a contact

Nickname

Element contains a nickname of a contact

Note

Element contains a note associated with a contact

OnlineAccount

Element contains a note associated with a contact

Organization

Element provides details about an organization that the contact is either a part of, or stands for

PhoneNumber

Element provides a phone number of a contact

Presence

Element provides presence information for an online account of a contact

Relationship

Element describes a one-to-one relationship between a locally-stored contact and another (possibly remote) contact

RelationshipFilter

Element provides a filter based around relationship criteria

RelationshipModel

Model of contact relationships from the contacts store

Ringtone

Element provides a ringtone associated with a contact

SortOrder

Element defines how a list of contacts should be ordered according to some criteria

SyncTarget

Element provides a sync target for a contact

Tag

Element provides a contains a tag associated with a contact

Timestamp

Element contains the creation and last-modified timestamp associated with the contact

UnionFilter

Element provides a filter which unions the results of other filters

Url

Element contains a url associated with a contact