|
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 TCALLCONTROLTSYTESTHELPER_H |
|
17 #define TCALLCONTROLTSYTESTHELPER_H |
|
18 |
|
19 #include "ttsytesthelperbase.h" |
|
20 |
|
21 |
|
22 class TCallControlTsyTestHelper : public TTsyTestHelperBase |
|
23 { |
|
24 public: |
|
25 TCallControlTsyTestHelper(CCTSYIntegrationTestSuiteStepBase& aTestStep); |
|
26 |
|
27 void WaitForCallNotifyCapsChange( |
|
28 RCall& aCall, |
|
29 TEtelRequestBase& aRequestStatus, |
|
30 RCall::TCaps& aCaps, |
|
31 RCall::TCaps aWantedCaps, |
|
32 RCall::TCaps aUnwantedCaps, |
|
33 TInt aWantedStatus ); |
|
34 |
|
35 void WaitForCallNotifyCallDurationChange( |
|
36 RCall& aCall, |
|
37 TEtelRequestBase& aRequestStatus, |
|
38 TTimeIntervalSeconds& aTime, |
|
39 TTimeIntervalSeconds aExpectedTime, |
|
40 TInt aWantedStatus ); |
|
41 |
|
42 void WaitForCallNotifyHookChange( |
|
43 RCall& aCall, |
|
44 TEtelRequestBase& aRequestStatus, |
|
45 RCall::THookStatus& aHookStatus, |
|
46 RCall::THookStatus aExpectedHookStatus, |
|
47 TInt aWantedStatus ); |
|
48 |
|
49 void WaitForCallNotifyStatusChange( |
|
50 RCall& aCall, |
|
51 TEtelRequestBase& aRequestStatus, |
|
52 RCall::TStatus& aCallStatus, |
|
53 RCall::TStatus& aExpectedCallStatus, |
|
54 TInt aWantedStatus ); |
|
55 |
|
56 void WaitForLineNotifyCapsChange( |
|
57 RLine& aLine, |
|
58 TEtelRequestBase& aRequestStatus, |
|
59 RLine::TCaps& aCaps, |
|
60 RLine::TCaps aWantedCaps, |
|
61 RLine::TCaps aUnwantedCaps, |
|
62 TInt aWantedStatus ); |
|
63 |
|
64 void WaitForLineNotifyCallAdded( |
|
65 RLine& aLine, |
|
66 TEtelRequestBase& aRequestStatus, |
|
67 TName& aName, |
|
68 TName aExpectedName, |
|
69 TInt aWantedStatus ); |
|
70 |
|
71 void WaitForLineNotifyHookChange( |
|
72 RLine& aLine, |
|
73 TEtelRequestBase& aRequestStatus, |
|
74 RCall::THookStatus& aHookStatus, |
|
75 RCall::THookStatus aExpectedHookStatus, |
|
76 TInt aWantedStatus ); |
|
77 |
|
78 void WaitForLineNotifyStatusChange( |
|
79 RLine& aLine, |
|
80 TEtelRequestBase& aRequestStatus, |
|
81 RCall::TStatus& aLineStatus, |
|
82 RCall::TStatus& aExpectedLineStatus, |
|
83 TInt aWantedStatus ); |
|
84 |
|
85 void WaitForLineNotifyIncomingCall( |
|
86 RLine& aLine, |
|
87 TEtelRequestBase& aRequestStatus, |
|
88 TName& aName, |
|
89 TName aExpectedName, |
|
90 TInt aWantedStatus ); |
|
91 |
|
92 void WaitForPhoneNotifyCapsChange( |
|
93 RPhone& aPhone, |
|
94 TEtelRequestBase& aRequestStatus, |
|
95 RPhone::TCaps& aCaps, |
|
96 RPhone::TCaps aWantedCaps, |
|
97 RPhone::TCaps aUnwantedCaps, |
|
98 TInt aWantedStatus ); |
|
99 |
|
100 void WaitForPhoneNotifyModemDetected( |
|
101 RPhone& aPhone, |
|
102 TEtelRequestBase& aRequestStatus, |
|
103 RPhone::TModemDetection& aDetection, |
|
104 RPhone::TModemDetection aExpectedDetection, |
|
105 TInt aWantedStatus ); |
|
106 |
|
107 void WaitForMobileCallNotifyAlternatingCallSwitch( |
|
108 TEtelRequestBase& aRequestStatus, |
|
109 TInt aWantedStatus ); |
|
110 |
|
111 void WaitForMobileCallNotifyAudioToneEvent( |
|
112 RMobileCall& aMobileCall, |
|
113 TEtelRequestBase& aRequestStatus, |
|
114 TCmpBase<RMobileCall::TAudioToneV3> &aAudioToneV3, |
|
115 TInt aWantedStatus ); |
|
116 |
|
117 void WaitForMobileCallNotifyCallEvent( |
|
118 RMobileCall& aMobileCall, |
|
119 TEtelRequestBase& aRequestStatus, |
|
120 RMobileCall::TMobileCallEvent& aEvent, |
|
121 RMobileCall::TMobileCallEvent aExpectedEvent, |
|
122 TInt aWantedStatus ); |
|
123 |
|
124 void WaitForMobileCallNotifyHscsdInfoChange( |
|
125 RMobileCall& aMobileCall, |
|
126 TEtelRequestBase& aRequestStatus, |
|
127 TCmpBase<RMobileCall::TMobileCallHscsdInfoV1> &aMobileCallHscsdInfoV1, |
|
128 TInt aWantedStatus ); |
|
129 |
|
130 void WaitForMobileCallNotifyMobileCallCapsChange( |
|
131 RMobileCall& aMobileCall, |
|
132 TEtelRequestBase& aRequestStatus, |
|
133 TCmpRMobileCallTMobileCallCaps &aMobileCallCapsV1, |
|
134 TInt aWantedStatus ); |
|
135 |
|
136 void WaitForMobileCallNotifyMobileCallStatusChange( |
|
137 RMobileCall& aMobileCall, |
|
138 TEtelRequestBase& aRequestStatus, |
|
139 RMobileCall::TMobileCallStatus& aStatus, |
|
140 RMobileCall::TMobileCallStatus aExpectedStatus, |
|
141 TInt aWantedStatus ); |
|
142 |
|
143 void WaitForMobileCallNotifyMobileDataCallCapsChange( |
|
144 RMobileCall& aMobileCall, |
|
145 TEtelRequestBase& aRequestStatus, |
|
146 TCmpBase<RMobileCall::TMobileCallDataCapsV1> &aMobileCallDataCapsV1, |
|
147 TInt aWantedStatus ); |
|
148 |
|
149 void WaitForMobileCallNotifyUUSCapsChange( |
|
150 RMobileCall& aMobileCall, |
|
151 TEtelRequestBase& aRequestStatus, |
|
152 TUint32& aCaps, |
|
153 TUint32 aWantedCaps, |
|
154 TUint32 aUnwantedCaps, |
|
155 TInt aWantedStatus ); |
|
156 |
|
157 void WaitForMobileCallNotifyVoiceFallback( |
|
158 RMobileCall& aMobileCall, |
|
159 TEtelRequestBase& aRequestStatus, |
|
160 TName& aCallName, |
|
161 TName aExpectedCallName, |
|
162 TInt aWantedStatus ); |
|
163 |
|
164 void WaitForMobileCallNotifyPrivacyConfirmation( |
|
165 RMobileCall& aMobileCall, |
|
166 TEtelRequestBase& aRequestStatus, |
|
167 RMobilePhone::TMobilePhonePrivacy& aPrivacySetting, |
|
168 RMobilePhone::TMobilePhonePrivacy aExpectedPrivacySetting, |
|
169 TInt aWantedStatus ); |
|
170 |
|
171 void WaitForMobileCallNotifyTrafficChannelConfirmation( |
|
172 RMobileCall& aMobileCall, |
|
173 TEtelRequestBase& aRequestStatus, |
|
174 RMobileCall::TMobileCallTch& aTchType, |
|
175 RMobileCall::TMobileCallTch aExpectedTchType, |
|
176 TInt aWantedStatus ); |
|
177 |
|
178 void WaitForMobileCallNotifyRemotePartyInfoChange( |
|
179 RMobileCall& aMobileCall, |
|
180 TEtelRequestBase& aRequestStatus, |
|
181 TCmpBase<RMobileCall::TMobileCallRemotePartyInfoV1> &aMobileCallRemotePartyInfoV1, |
|
182 TInt aWantedStatus ); |
|
183 |
|
184 void WaitForMobileConferenceCallNotifyCapsChange( |
|
185 RMobileConferenceCall& aMobileConferenceCall, |
|
186 TEtelRequestBase& aRequestStatus, |
|
187 TUint32& aCaps, |
|
188 TUint32 aWantedCaps, |
|
189 TUint32 aUnwantedCaps, |
|
190 TInt aWantedStatus ); |
|
191 |
|
192 void WaitForMobileConferenceCallNotifyConferenceEvent( |
|
193 RMobileConferenceCall& aMobileConferenceCall, |
|
194 TEtelRequestBase& aRequestStatus, |
|
195 RMobileConferenceCall::TMobileConferenceEvent& aEvent, |
|
196 RMobileConferenceCall::TMobileConferenceEvent aExpectedEvent, |
|
197 TName &aCallName, |
|
198 TInt aWantedStatus ); |
|
199 |
|
200 void WaitForMobileConferenceCallNotifyConferenceStatusChange( |
|
201 RMobileConferenceCall& aMobileConferenceCall, |
|
202 TEtelRequestBase& aRequestStatus, |
|
203 RMobileConferenceCall::TMobileConferenceStatus& aStatus, |
|
204 RMobileConferenceCall::TMobileConferenceStatus aExpectedStatus, |
|
205 TInt aWantedStatus ); |
|
206 |
|
207 void WaitForMobileLineNotifyMobileLineStatusChange( |
|
208 RMobileLine& aMobileLine, |
|
209 TEtelRequestBase& aRequestStatus, |
|
210 RMobileCall::TMobileCallStatus& aStatus, |
|
211 RMobileCall::TMobileCallStatus aExpectedStatus, |
|
212 TInt aWantedStatus ); |
|
213 |
|
214 void WaitForMobilePhoneNotifyALSLineChange( |
|
215 RMobilePhone& aMobilePhone, |
|
216 TEtelRequestBase& aRequestStatus, |
|
217 RMobilePhone::TMobilePhoneALSLine& aALSLine, |
|
218 RMobilePhone::TMobilePhoneALSLine aExpectedALSLine, |
|
219 TInt aWantedStatus ); |
|
220 |
|
221 void WaitForMobilePhoneNotifyAlternatingCallCapsChange( |
|
222 RMobilePhone& aMobilePhone, |
|
223 TEtelRequestBase& aRequestStatus, |
|
224 TUint32& aCaps, |
|
225 TUint32 aWantedCaps, |
|
226 TUint32 aUnwantedCaps, |
|
227 TInt aWantedStatus ); |
|
228 |
|
229 void WaitForMobilePhoneNotifyAlternatingCallModeChange( |
|
230 RMobilePhone& aMobilePhone, |
|
231 TEtelRequestBase& aRequestStatus, |
|
232 RMobilePhone::TMobilePhoneAlternatingCallMode& aMode, |
|
233 RMobilePhone::TMobilePhoneAlternatingCallMode aExpectedMode, |
|
234 RMobilePhone::TMobileService &aFirstService, |
|
235 TInt aWantedStatus ); |
|
236 |
|
237 void WaitForMobilePhoneNotifyDTMFCapsChange( |
|
238 RMobilePhone& aMobilePhone, |
|
239 TEtelRequestBase& aRequestStatus, |
|
240 TUint32& aCaps, |
|
241 TUint32 aWantedCaps, |
|
242 TUint32 aUnwantedCaps, |
|
243 TInt aWantedStatus ); |
|
244 |
|
245 void WaitForMobilePhoneNotifyDTMFEvent( |
|
246 RMobilePhone& aMobilePhone, |
|
247 TEtelRequestBase& aRequestStatus, |
|
248 RMobilePhone::TMobilePhoneDTMFEvent& aEvent, |
|
249 RMobilePhone::TMobilePhoneDTMFEvent& aExpectedEvent, |
|
250 TInt aWantedStatus ); |
|
251 |
|
252 void WaitForMobilePhoneNotifyFdnStatusChange( |
|
253 RMobilePhone& aMobilePhone, |
|
254 TEtelRequestBase& aRequestStatus, |
|
255 RMobilePhone::TMobilePhoneFdnStatus& aFdnStatus, |
|
256 RMobilePhone::TMobilePhoneFdnStatus aExpectedFdnStatus, |
|
257 TInt aWantedStatus ); |
|
258 |
|
259 void WaitForMobilePhoneNotifyIncomingCallTypeChange( |
|
260 RMobilePhone& aMobilePhone, |
|
261 TEtelRequestBase& aRequestStatus, |
|
262 RMobilePhone::TMobilePhoneIncomingCallType &aCallType, |
|
263 TCmpBase<RMobileCall::TMobileDataCallParamsV1> &aMobileDataCallParamsV1, |
|
264 TInt aWantedStatus ); |
|
265 |
|
266 void WaitForMobilePhoneNotifyIndicatorChange( |
|
267 RMobilePhone& aMobilePhone, |
|
268 TEtelRequestBase& aRequestStatus, |
|
269 TUint32& aIndicator, |
|
270 TUint32 aExpectedIndicator, |
|
271 TInt aWantedStatus ); |
|
272 |
|
273 void WaitForMobilePhoneNotifyMessageWaiting( |
|
274 RMobilePhone& aMobilePhone, |
|
275 TEtelRequestBase& aRequestStatus, |
|
276 TInt& aCount, |
|
277 TInt aExpectedCount, |
|
278 TInt aWantedStatus ); |
|
279 |
|
280 void WaitForMobilePhoneNotifyMulticallIndicatorChange( |
|
281 RMobilePhone& aMobilePhone, |
|
282 TEtelRequestBase& aRequestStatus, |
|
283 RMobilePhone::TMobilePhoneMulticallIndicator& aMulticallIndicator, |
|
284 RMobilePhone::TMobilePhoneMulticallIndicator aExpectedMulticallIndicator, |
|
285 TInt aWantedStatus ); |
|
286 |
|
287 void WaitForMobilePhoneNotifyMulticallParamsChange( |
|
288 RMobilePhone& aMobilePhone, |
|
289 TEtelRequestBase& aRequestStatus, |
|
290 TCmpBase<RMobilePhone::TMobilePhoneMulticallSettingsV1> &aMobilePhoneMulticallSettingsV1, |
|
291 TInt aWantedStatus ); |
|
292 |
|
293 void WaitForMobilePhoneNotifyMultimediaCallPreferenceChange( |
|
294 RMobilePhone& aMobilePhone, |
|
295 TEtelRequestBase& aRequestStatus, |
|
296 RMobilePhone::TMobilePhoneMultimediaSettings& aMmSettings, |
|
297 RMobilePhone::TMobilePhoneMultimediaSettings aExpectedMmSettings, |
|
298 TInt aWantedStatus ); |
|
299 |
|
300 void WaitForMobilePhoneNotifyStopInDTMFString( |
|
301 TEtelRequestBase& aRequestStatus, |
|
302 TInt aWantedStatus ); |
|
303 |
|
304 void WaitForMobilePhoneNotifyAirTimeDurationChange( |
|
305 RMobilePhone& aMobilePhone, |
|
306 TEtelRequestBase& aRequestStatus, |
|
307 TTimeIntervalSeconds& aTime, |
|
308 TTimeIntervalSeconds aExpectedTime, |
|
309 TInt aWantedStatus ); |
|
310 |
|
311 void WaitForMobilePhoneNotifyCostInfoChange( |
|
312 RMobilePhone& aMobilePhone, |
|
313 TEtelRequestBase& aRequestStatus, |
|
314 TCmpBase<RMobilePhone::TMobilePhoneCostInfoV1> &aMobilePhoneCostInfoV1, |
|
315 TInt aWantedStatus ); |
|
316 |
|
317 void CheckForValidCallInfo(RMobileCall::TMobileCallInfoV1& aCallInfo, TPtrC aNumber); |
|
318 void CheckForValidCallInfo(RMobileCall::TMobileCallInfoV1& aCallInfo, TInt aRequiredExitCode=KErrNone, TBool aIsCallConnected=ETrue); |
|
319 |
|
320 }; // class TCallControlTsyTestHelper |
|
321 |
|
322 #endif |