The RelationshipModel provides a model of contact relationships from the contacts store. More...
This element was introduced in Mobility 1.1.
This element is part of the QtMobility.contacts 1.1 module.
The contents of the model can be specified with participantId, role and relationshipType properties. Whether the model is automatically updated when the store or filter changes, can be controlled with RelationshipModel::autoUpdate property.
There are two ways of accessing the relationship data: through model by using views and delegates, or alternatively via relationships list property.
At the moment only data role provided by the model is relationship (Relationship). Through that one can access any data provided by the Relationship element.
See also Relationship and QContactRelationship.
autoUpdate : bool |
This property indicates whether or not the relationship model should be updated automatically, default value is true.
This property group was introduced in Mobility 1.1.
read-onlyerror : string |
This property holds the latest error code returned by the contact manager.
This property is read only.
This property group was introduced in Mobility 1.1.
manager : string |
This property holds the manager uri of the contact backend engine.
This property group was introduced in Mobility 1.1.
participantId : int |
This property holds the participant id which the list of relationships returned by RelationshipModel should contain.
This property group was introduced in Mobility 1.1.
See also RelationshipFilter::relatedContactId and RelationshipModel::role.
This property holds the relationship type which the list of relationships returned by RelationshipModel should contain.
This property group was introduced in Mobility 1.1.
See also Relationship::type.
read-onlyrelationships : list<Relationship> |
This property holds a list of relationships.
This property group was introduced in Mobility 1.1.
See also Relationship.
role : enumeration |
This property holds the relationship role which the list of relationships returned by RelationshipModel should contain.
This property group was introduced in Mobility 1.1.
See also RelationshipFilter::relatedContactRole.
Adds the given relationship to the backend store.
This documentation was introduced in Mobility 1.1.
Removes the given relationship from the backend store.
This documentation was introduced in Mobility 1.1.
© 2008-2011 Nokia Corporation and/or its subsidiaries. Nokia, Qt and their respective logos are trademarks of Nokia Corporation in Finland and/or other countries worldwide.
All other trademarks are property of their respective owners. Privacy Policy
Licensees holding valid Qt Commercial licenses may use this document in accordance with the Qt Commercial License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Nokia.
Alternatively, this document may be used under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation.