Home · All Classes · All Functions ·

QContactRelationshipFilter Class Reference

The QContactRelationshipFilter class provides a filter based around relationship criteria. More...

    #include <QContactRelationshipFilter>

Inherits QContactFilter.


Public Types

enum Role { First, Second, Either }

Public Functions

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 )

Detailed Description

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.


Member Type Documentation

enum QContactRelationshipFilter::Role

Describes the roles that a contact may take in a relationship

ConstantValueDescription
QContactRelationshipFilter::First0The contact is the first contact in the relationship
QContactRelationshipFilter::Second1The contact is the second contact in the relationship
QContactRelationshipFilter::Either2The contact is either the first or second contact in the relationship


Member Function Documentation

QContactRelationshipFilter::QContactRelationshipFilter ()

Constructs a new relationship filter

QContactRelationshipFilter::QContactRelationshipFilter ( const QContactFilter & other )

Constructs a copy of other if possible, else constructs a new QContactRelationshipFilter.

QContactId QContactRelationshipFilter::otherParticipantId () const

Returns the id of another contact with whom a contact must have a relationship in order to match the filter

See also setOtherParticipantId().

QString QContactRelationshipFilter::relationshipType () const

Returns the type of relationship that a contact must have in order to match the filter

See also setRelationshipType().

QContactRelationshipFilter::Role QContactRelationshipFilter::role () const

Returns the role that a contact must have in a relationship in order to match the filter

See also setRole().

void QContactRelationshipFilter::setOtherParticipantId ( const QContactId & id )

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

void QContactRelationshipFilter::setRelationshipType ( const QString & relationshipType )

Sets the type of relationship which a contact must have in order to match this filter to relationshipType

See also relationshipType().

void QContactRelationshipFilter::setRole ( QContactRelationshipFilter::Role roleInRelationship )

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 (Technology Preview)