![]() |
Home · All Classes · All Functions · | ![]() |
The QContactRelationshipFilter class provides a filter based around relationship criteria. More...
#include <QContactRelationshipFilter>
Inherits QContactFilter.
enum | Role { First, Second, Either } |
QContactRelationshipFilter () | |
QContactRelationshipFilter ( const QContactFilter & other ) | |
QContactId | otherParticipantId () const |
QString | relationshipType () const |
QContactRelationshipFilter::Role | role () const |
void | setOtherParticipantId ( const QContactId & id ) |
void | setRelationshipType ( const QString & relationshipType ) |
void | setRole ( QContactRelationshipFilter::Role roleInRelationship ) |
The QContactRelationshipFilter class provides a filter based around relationship criteria.
It may be used to select contacts which are involved in relationships which are of a certain type, or which involve certain contacts.
Describes the roles that a contact may take in a relationship
Constant | Value | Description |
---|---|---|
QContactRelationshipFilter::First | 0 | The contact is the first contact in the relationship |
QContactRelationshipFilter::Second | 1 | The contact is the second contact in the relationship |
QContactRelationshipFilter::Either | 2 | The contact is either the first or second contact in the relationship |
Constructs a new relationship filter
Constructs a copy of other if possible, else constructs a new QContactRelationshipFilter.
Returns the id of another contact with whom a contact must have a relationship in order to match the filter
See also setOtherParticipantId().
Returns the type of relationship that a contact must have in order to match the filter
See also setRelationshipType().
Returns the role that a contact must have in a relationship in order to match the filter
See also setRole().
Sets the contact id of the other participant which must be present in the relationship with the contact in order for the contact to match the filter to be id
See also otherParticipantId().
Sets the type of relationship which a contact must have in order to match this filter to relationshipType
See also relationshipType().
Sets the role in the relationship that a contact must be in order to match this filter to roleInRelationship
See also role().
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.0 (Technical Preview) |