|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TESTPBKSERVICES_H |
|
19 #define TESTPBKSERVICES_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <QVariant> |
|
23 |
|
24 #include <qmobilityglobal.h> //defines Q_SFW_EXPORT |
|
25 #include <xqappmgr.h> |
|
26 |
|
27 class HbMainWindow; |
|
28 class HbAction; |
|
29 class HbDialog; |
|
30 |
|
31 /** |
|
32 * Launches phonebookservices highway services, for functional testing. |
|
33 */ |
|
34 class testPbkServices : public QObject |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public slots: |
|
39 // FETCH |
|
40 void launchMultiFetch(); |
|
41 void launchMultiFetch_old(); |
|
42 void launchMultiFetch_sms(); |
|
43 void launchMultiFetch_sms_old(); |
|
44 void launchMultiFetch_email(); |
|
45 void launchMultiFetch_email_old(); |
|
46 void launchSingleFetch(); |
|
47 void launchSingleFetch_old(); |
|
48 |
|
49 // EDIT - create new |
|
50 void launchEditCreateNew_number(); |
|
51 void launchEditCreateNew_number_old(); |
|
52 void launchEditCreateNew_numberWithSubtype(); |
|
53 void launchEditCreateNew_numberWithSubtype_old(); |
|
54 void launchEditCreateNew_email(); |
|
55 void launchEditCreateNew_email_old(); |
|
56 void launchEditCreateNew_onlineAccount(); |
|
57 void launchEditCreateNew_onlineAccount_old(); |
|
58 void launchEditCreateNew_onlineAccountWithSubtype(); |
|
59 void launchEditCreateNew_onlineAccountWithSubtype_old(); |
|
60 void launchEditorVCard(); |
|
61 void launchEditorVCard_old(); |
|
62 |
|
63 // EDIT - update existing |
|
64 void launchEditUpdateExisting_number(); |
|
65 void launchEditUpdateExisting_number_old(); |
|
66 void launchEditUpdateExisting_numberWithSubtype(); |
|
67 void launchEditUpdateExisting_numberWithSubtype_old(); |
|
68 void launchEditUpdateExisting_email(); |
|
69 void launchEditUpdateExisting_email_old(); |
|
70 void launchEditUpdateExisting_onlineAccount(); |
|
71 void launchEditUpdateExisting_onlineAccount_old(); |
|
72 void launchEditUpdateExisting_onlineAccountWithSubtype(); |
|
73 void launchEditUpdateExisting_onlineAccountWithSubtype_old(); |
|
74 |
|
75 // CONTACT CARD |
|
76 void launchContactCard(); |
|
77 void launchContactCard_old(); |
|
78 void launchContactCardNumber(); |
|
79 void launchContactCardNumber_old(); |
|
80 void launchContactCardEmail(); |
|
81 void launchContactCardEmail_old(); |
|
82 void launchContactCardOnlineAccount(); |
|
83 void launchContactCardOnlineAccount_old(); |
|
84 |
|
85 // GROUP MEMBER VIEW |
|
86 void launchGroupMemberView(); |
|
87 |
|
88 void onEditCompleted(const QVariant& value); |
|
89 void onRequestCompleted(const QVariant& value); |
|
90 |
|
91 public: |
|
92 testPbkServices(HbMainWindow *aParent); |
|
93 ~testPbkServices(); |
|
94 |
|
95 private: |
|
96 void launchMultiFetch( bool aNewInterface, QString aAction ); |
|
97 void launchSingleFetch( bool aNewInterface, QString aAction ); |
|
98 void launchEditCreateNew( bool aNewInterface, QString aDetailType, QString aFieldContent, QString aDetailSubtype = QString() ); |
|
99 void launchEditorVCard( bool aNewInterface ); |
|
100 void launchEditUpdateExisting( bool aNewInterface, QString aDetailType, QString aDetailValue, QString aDetailSubtype = QString()); |
|
101 void launchContactCard( bool aNewInterface ); |
|
102 void launchContactCard( bool aNewInterface, QString aDetailType, QString aDetailValue ); |
|
103 |
|
104 private: |
|
105 |
|
106 XQAiwRequest *mRequest; |
|
107 HbMainWindow *mMainWindow; |
|
108 HbDialog *mPopup; |
|
109 |
|
110 }; |
|
111 |
|
112 #endif |