equal
deleted
inserted
replaced
40 ****************************************************************************/ |
40 ****************************************************************************/ |
41 #ifndef TESTRELATIONSHIP_H |
41 #ifndef TESTRELATIONSHIP_H |
42 #define TESTRELATIONSHIP_H |
42 #define TESTRELATIONSHIP_H |
43 |
43 |
44 #include <QObject> |
44 #include <QObject> |
45 |
45 #include "cntsymbianengine.h" |
46 //Qt Contacts |
|
47 #include <qtcontacts.h> |
|
48 |
46 |
49 class CContactDatabase; |
47 class CContactDatabase; |
50 class CntRelationship; |
48 class CntRelationship; |
51 |
|
52 QTM_USE_NAMESPACE |
|
53 |
49 |
54 class TestCntRelationship : public QObject |
50 class TestCntRelationship : public QObject |
55 { |
51 { |
56 Q_OBJECT |
52 Q_OBJECT |
57 |
53 |
69 void invalidFirstContactGroupRelationship(); |
65 void invalidFirstContactGroupRelationship(); |
70 void invalidSecondContactGroupRelationship(); |
66 void invalidSecondContactGroupRelationship(); |
71 void invalidFirstAndSecondContactGroupRelationship(); |
67 void invalidFirstAndSecondContactGroupRelationship(); |
72 |
68 |
73 private: |
69 private: |
74 bool TestCntRelationship::validateRelationshipFilter(const QContactRelationshipFilter::Role role, const QContactId contactId, const QList<QContactLocalId> expectedContacts); |
70 bool validateRelationshipFilter(const QContactRelationship::Role role, const QContactId contactId, const QList<QContactLocalId> expectedContacts); |
75 |
71 |
76 private: |
72 private: |
77 QContactManager *m_manager; |
73 CntSymbianEngine *m_manager; |
78 CContactDatabase *m_database; |
74 CContactDatabase *m_database; |
79 CntRelationship *m_relationship; |
75 CntRelationship *m_relationship; |
80 }; |
76 }; |
81 |
77 |
82 #endif |
78 #endif |