19 |
19 |
20 #include <qtcontacts.h> |
20 #include <qtcontacts.h> |
21 |
21 |
22 QTM_USE_NAMESPACE |
22 QTM_USE_NAMESPACE |
23 |
23 |
|
24 Q_DECLARE_METATYPE(QContactAction::State) |
|
25 |
24 class TestMobCntActions : public QObject |
26 class TestMobCntActions : public QObject |
25 { |
27 { |
26 Q_OBJECT |
28 Q_OBJECT |
27 |
29 |
28 private slots: |
30 private slots: |
29 //Init/cleanup the test class |
31 //Init/cleanup the test class |
30 void initTestCase(); |
32 void initTestCase(); |
31 void cleanupTestCase(); |
33 void cleanupTestCase(); |
32 |
34 |
33 //Init/cleanup each test method |
35 //Init/cleanup each test method |
34 void init(); |
36 void init(); |
35 void cleanup(); |
37 void cleanup(); |
36 |
38 |
37 void emptyContactNoActionSupport(); |
39 void emptyContactNoActionSupport(); |
38 |
40 |
39 //call |
41 //call |
40 void phonenumberCallSupport(); |
42 void phonenumberCallSupport(); |
41 void phonenumberNoCallSupport(); |
43 void phonenumberNoCallSupport(); |
42 |
44 |
43 //message |
45 //message |
44 void phonenumberMessageSupport(); |
46 void phonenumberMessageSupport(); |
45 void phonenumberNoMessageSupport(); |
47 void phonenumberNoMessageSupport(); |
46 |
48 |
47 //video call |
49 //video call |
48 void phonenumberVideoCallSupport(); |
50 void phonenumberVideoCallSupport(); |
49 void phonenumberNoVideoCallSupport(); |
51 void phonenumberNoVideoCallSupport(); |
50 |
52 |
51 //email |
53 //email |
52 void phonenumberEmailSupport(); |
54 void emailSupport(); |
53 void phonenumberNoEmailSupport(); |
55 void noEmailSupport(); |
|
56 |
|
57 //url |
|
58 void urlSupport(); |
|
59 void noUrlSupport(); |
54 |
60 |
55 private: |
61 private: |
56 QContactManager *m_manager; |
62 QContactManager *m_manager; |
57 }; |
63 }; |