qtmobility/src/contacts/requests/qcontactrelationshipfetchrequest.h
changeset 4 90517678cc4f
parent 1 2b40d63a9c3d
child 5 453da2cfceef
equal deleted inserted replaced
1:2b40d63a9c3d 4:90517678cc4f
    58 {
    58 {
    59     Q_OBJECT
    59     Q_OBJECT
    60 
    60 
    61 public:
    61 public:
    62     QContactRelationshipFetchRequest();
    62     QContactRelationshipFetchRequest();
    63     ~QContactRelationshipFetchRequest();
       
    64 
    63 
    65     /* Selection */
    64     /* Selection */
    66     void setFirst(const QContactId& firstId);
    65     void setFirst(const QContactId& firstId);
    67     QContactId first() const;
    66     QContactId first() const;
    68 
    67 
    69     void setRelationshipType(const QString& relationshipType);
    68     void setRelationshipType(const QString& relationshipType);
    70     QString relationshipType() const;
    69     QString relationshipType() const;
    71 
    70 
    72     // we no longer use "participant" or "participant role" -- deprecated and will be removed after transition period has elapsed.
       
    73     void Q_DECL_DEPRECATED setParticipant(const QContactId& participant, QContactRelationshipFilter::Role role = QContactRelationshipFilter::Either); // deprecated
       
    74     QContactId Q_DECL_DEPRECATED participant() const; // deprecated
       
    75     QContactRelationshipFilter::Role Q_DECL_DEPRECATED participantRole() const; // deprecated
       
    76 
       
    77     // replaces the above functions.
       
    78     void setSecond(const QContactId& secondId);
    71     void setSecond(const QContactId& secondId);
    79     QContactId second() const;
    72     QContactId second() const;
    80 
    73 
    81     /* Results */
    74     /* Results */
    82     QList<QContactRelationship> relationships() const;
    75     QList<QContactRelationship> relationships() const;