|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef TPHONETSYTESTHELPER_H |
|
17 #define TPHONETSYTESTHELPER_H |
|
18 |
|
19 |
|
20 #include "ttsytesthelperbase.h" |
|
21 |
|
22 class TPhoneTsyTestHelper : public TTsyTestHelperBase |
|
23 { |
|
24 public: |
|
25 TPhoneTsyTestHelper(CCTSYIntegrationTestSuiteStepBase& aTestStep); |
|
26 |
|
27 void WaitForMobilePhoneNotifyCostCapsChange( |
|
28 RMobilePhone& aMobilePhone, |
|
29 TEtelRequestBase& aRequestStatus, |
|
30 TUint32& aCaps, |
|
31 TUint32 aWantedCaps, |
|
32 TUint32 aUnwantedCaps, |
|
33 TInt aWantedStatus ); |
|
34 |
|
35 void WaitForMobilePhoneNotifyIccAccessCapsChange( |
|
36 RMobilePhone& aMobilePhone, |
|
37 TEtelRequestBase& aRequestStatus, |
|
38 TUint32& aCaps, |
|
39 TUint32 aWantedCaps, |
|
40 TUint32 aUnwantedCaps, |
|
41 TInt aWantedStatus ); |
|
42 |
|
43 void WaitForMobilePhoneNotifySecurityCapsChange( |
|
44 RMobilePhone& aMobilePhone, |
|
45 TEtelRequestBase& aRequestStatus, |
|
46 TUint32& aCaps, |
|
47 TUint32 aWantedCaps, |
|
48 TUint32 aUnwantedCaps, |
|
49 TInt aWantedStatus ); |
|
50 |
|
51 void WaitForMobilePhoneNotifySecurityEvent( |
|
52 RMobilePhone& aMobilePhone, |
|
53 TEtelRequestBase& aRequestStatus, |
|
54 RMobilePhone::TMobilePhoneSecurityEvent& aEvent, |
|
55 RMobilePhone::TMobilePhoneSecurityEvent aExpectedEvent, |
|
56 TInt aWantedStatus ); |
|
57 |
|
58 void WaitForMobilePhoneNotifySignalStrengthChange( |
|
59 RMobilePhone& aMobilePhone, |
|
60 TEtelRequestBase& aRequestStatus, |
|
61 TInt32& aSignalStrength, |
|
62 TInt32 aExpectedSignalStrength, |
|
63 TInt8 &aBar, |
|
64 TInt aWantedStatus ); |
|
65 |
|
66 void WaitForMobilePhoneNotifyLockInfoChange( |
|
67 RMobilePhone& aMobilePhone, |
|
68 TEtelRequestBase& aRequestStatus, |
|
69 RMobilePhone::TMobilePhoneLock &aLock, |
|
70 RMobilePhone::TMobilePhoneLock aExpectedLock, |
|
71 TCmpBase<RMobilePhone::TMobilePhoneLockInfoV1> &aMobilePhoneLockInfoV1, |
|
72 TInt aWantedStatus ); |
|
73 |
|
74 void WaitForMobilePhoneNotifyNITZInfoChange( |
|
75 RMobilePhone& aMobilePhone, |
|
76 TEtelRequestBase& aRequestStatus, |
|
77 RMobilePhone::TMobilePhoneNITZ& aNITZInfo, |
|
78 RMobilePhone::TMobilePhoneNITZ& aExpectedNITZInfo, |
|
79 TInt aWantedStatus ); |
|
80 |
|
81 void WaitForMobilePhoneNotifyNetworkSelectionSettingChange( |
|
82 RMobilePhone& aMobilePhone, |
|
83 TEtelRequestBase& aRequestStatus, |
|
84 TCmpBase<RMobilePhone::TMobilePhoneNetworkSelectionV1> &aMobilePhoneNetworkSelectionV1, |
|
85 TInt aWantedStatus ); |
|
86 |
|
87 void WaitForMobilePhoneNotifySecurityCodeInfoChange( |
|
88 RMobilePhone& aMobilePhone, |
|
89 TEtelRequestBase& aRequestStatus, |
|
90 RMobilePhone::TMobilePhoneSecurityCode &aSecurityCode, |
|
91 TCmpBase<RMobilePhone::TMobilePhoneSecurityCodeInfoV5> &aMobilePhoneSecurityCodeInfoV5, |
|
92 TInt aWantedStatus ); |
|
93 |
|
94 void WaitForMobilePhoneNotifyMmsConfig( |
|
95 RMobilePhone& aMobilePhone, |
|
96 TEtelRequestBase& aRequestStatus, |
|
97 RMobilePhone::TMmsConnParams& aType, |
|
98 RMobilePhone::TMmsConnParams aExpectedType, |
|
99 TDes8 &aConnectivity, |
|
100 TInt aWantedStatus ); |
|
101 |
|
102 void WaitForMobilePhoneNotifyMmsUpdate( |
|
103 RMobilePhone& aMobilePhone, |
|
104 TEtelRequestBase& aRequestStatus, |
|
105 TCmpBase<RMobilePhone::TMmsNotificationV3> &aMmsNotificationV3, |
|
106 TInt aWantedStatus ); |
|
107 |
|
108 void WaitForMobilePhoneNotifyBatteryInfoChange( |
|
109 RMobilePhone& aMobilePhone, |
|
110 TEtelRequestBase& aRequestStatus, |
|
111 TCmpBase<RMobilePhone::TMobilePhoneBatteryInfoV1> &aPhoneBatteryInfoComp, |
|
112 TInt aWantedStatus ); |
|
113 |
|
114 void WaitForMobilePhoneNotifyDefaultPrivacyChange( |
|
115 RMobilePhone& aMobilePhone, |
|
116 TEtelRequestBase& aRequestStatus, |
|
117 RMobilePhone::TMobilePhonePrivacy& aSetting, |
|
118 RMobilePhone::TMobilePhonePrivacy aExpectedSetting, |
|
119 TInt aWantedStatus ); |
|
120 |
|
121 void WaitForPhoneBookStoreCacheReadyL( |
|
122 RMmCustomAPI& aMmCustomAPI, |
|
123 TPhoneBookStoreId aPhoneBookId ); |
|
124 void BlockPinL(RMobilePhone& aMobilePhone,RMobilePhone::TMobilePhoneSecurityCode aPhoneSecurityCode); |
|
125 void ChangePhoneLockSettingL(RMobilePhone& aMobilePhone, RMobilePhone::TMobilePhoneLock aLock, |
|
126 RMobilePhone::TMobilePhoneLockSetting aLockSetting, TDesC& aPasswd, TInt aErrorCode = KErrNone); |
|
127 TInt SetPhoneFdnSettingL( RMobilePhone &aPhone, |
|
128 RMobilePhone::TMobilePassword& aPIN2Password, |
|
129 RMobilePhone::TMobilePhoneFdnSetting aFdnSetting ); |
|
130 |
|
131 }; // class TPhoneTsyTestHelper |
|
132 |
|
133 class TFdnCleanupDisable |
|
134 { |
|
135 public: |
|
136 TFdnCleanupDisable(TPhoneTsyTestHelper &aBase, |
|
137 RMobilePhone &aPhone, |
|
138 RMobilePhone::TMobilePassword& aPIN2Password); |
|
139 operator TCleanupItem(); |
|
140 |
|
141 private: |
|
142 TPhoneTsyTestHelper &iBase; |
|
143 RMobilePhone &iPhone; |
|
144 RMobilePhone::TMobilePassword &iPIN2Password; |
|
145 |
|
146 static void DoCleanupL(TAny* aPtr); |
|
147 void CleanupL(); |
|
148 }; |
|
149 |
|
150 |
|
151 #endif |