equal
deleted
inserted
replaced
43 #define QCONTACTRELATIONSHIPFILTER_H |
43 #define QCONTACTRELATIONSHIPFILTER_H |
44 |
44 |
45 #include "qtcontactsglobal.h" |
45 #include "qtcontactsglobal.h" |
46 #include "qcontactfilter.h" |
46 #include "qcontactfilter.h" |
47 #include "qcontactid.h" |
47 #include "qcontactid.h" |
|
48 #include "qcontactrelationship.h" |
48 |
49 |
49 #include <QSharedDataPointer> |
50 #include <QSharedDataPointer> |
50 #include <QStringList> |
51 #include <QStringList> |
51 #include <QList> |
52 #include <QList> |
52 #include <QString> |
53 #include <QString> |
58 { |
59 { |
59 public: |
60 public: |
60 QContactRelationshipFilter(); |
61 QContactRelationshipFilter(); |
61 QContactRelationshipFilter(const QContactFilter& other); |
62 QContactRelationshipFilter(const QContactFilter& other); |
62 |
63 |
63 enum Role { |
|
64 First = 0, |
|
65 Second, |
|
66 Either |
|
67 }; |
|
68 |
|
69 void setRelationshipType(const QString& relationshipType); |
64 void setRelationshipType(const QString& relationshipType); |
70 void setRelatedContactId(const QContactId& relatedContactId); |
65 void setRelatedContactId(const QContactId& relatedContactId); |
71 void setRelatedContactRole(QContactRelationshipFilter::Role relatedContactRole); |
66 void setRelatedContactRole(QContactRelationship::Role relatedContactRole); |
72 |
67 |
73 QString relationshipType() const; |
68 QString relationshipType() const; |
74 QContactId relatedContactId() const; |
69 QContactId relatedContactId() const; |
75 QContactRelationshipFilter::Role relatedContactRole() const; |
70 QContactRelationship::Role relatedContactRole() const; |
76 |
71 |
77 // deprecated and will be removed after transition period has elapsed. replaced by setRelatedContactRole / setRelatedContactId. |
|
78 void Q_DECL_DEPRECATED setRole(QContactRelationshipFilter::Role roleInRelationship); |
|
79 void Q_DECL_DEPRECATED setOtherParticipantId(const QContactId& contactId); |
|
80 QContactRelationshipFilter::Role Q_DECL_DEPRECATED role() const; |
|
81 QContactId Q_DECL_DEPRECATED otherParticipantId() const; |
|
82 |
72 |
83 private: |
73 private: |
84 Q_DECLARE_CONTACTFILTER_PRIVATE(QContactRelationshipFilter) |
74 Q_DECLARE_CONTACTFILTER_PRIVATE(QContactRelationshipFilter) |
85 }; |
75 }; |
86 |
76 |