|
1 /* |
|
2 * Copyright (c) 2002-2004 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 the License "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: Specifick class for PDI tests |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 #ifndef PDI_H |
|
22 #define PDI_H |
|
23 |
|
24 // INCLUDES |
|
25 #include "core.h" |
|
26 #include "ctsy/serviceapi/cmmgsmphonestorageutility.h" |
|
27 #include "pcktcs.h" //ETel Packet |
|
28 #include "etelpckt.h" //ETel Packet |
|
29 |
|
30 #include <stiflogger.h> |
|
31 #include <testscripterinternal.h> |
|
32 #include <stiftestmodule.h> |
|
33 |
|
34 #include <iscapi.h> |
|
35 #include <pcktcs.h> // for packet data ipcs |
|
36 #include <pn_const.h> |
|
37 #include <iscnokiadefinitions.h> |
|
38 |
|
39 #if ( NCP_COMMON_S60_VERSION_SUPPORT == S60_VERSION_32 ) |
|
40 #include <mmmmesshandlerbase.h> |
|
41 #else |
|
42 #include <ctsy/rmmcustomapi.h> |
|
43 #endif |
|
44 |
|
45 #if defined(NCP_COMMON_S60_VERSION_SUPPORT ) && ( NCP_COMMON_S60_VERSION_SUPPORT >= S60_VERSION_50 ) |
|
46 #include <ctsy/serviceapi/cmmutility.h> |
|
47 #else |
|
48 #include <cmmcommonstaticutility.h> |
|
49 #endif |
|
50 |
|
51 // CONSTANTS |
|
52 |
|
53 // MACROS |
|
54 // Logging path |
|
55 _LIT( KSSLogPath, "\\logs\\testframework\\PDI\\" ); |
|
56 // Log file |
|
57 _LIT( KSSLogFile, "PDI.txt" ); |
|
58 |
|
59 _LIT( KIscControlTestCaseFilePDI, "nokiatsy_pdi.xml"); |
|
60 |
|
61 // FORWARD DECLARATIONS |
|
62 class TDataPackage; |
|
63 class CMmDataPackage; |
|
64 class CMessageRouterBase; |
|
65 |
|
66 |
|
67 // CLASS DECLARATION |
|
68 class CPDI : public CCore |
|
69 { |
|
70 public: // Constructors and destructor |
|
71 |
|
72 /** |
|
73 * Two-phased constructor. |
|
74 */ |
|
75 static CPDI* NewL( CTestModuleIf& aTestModuleIf ); |
|
76 |
|
77 /** |
|
78 * Destructor. |
|
79 */ |
|
80 virtual ~CPDI(); |
|
81 |
|
82 |
|
83 public: // New functions |
|
84 |
|
85 public: // Functions from base classes |
|
86 |
|
87 /** |
|
88 * From CScriptBase Runs a script line. |
|
89 * @since Series60_ver 2.8 |
|
90 * @param aItem Script line containing method name and parameters |
|
91 * @return Symbian OS error code |
|
92 */ |
|
93 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
94 |
|
95 /** |
|
96 * Completes a request or notification via the specific Tsy object, |
|
97 * based on IPC number and data package |
|
98 * @since Series60_ver 2.8 |
|
99 * @param aIpc: IPC number |
|
100 * aDataPackage: Data package |
|
101 * aResult: result |
|
102 * @return None |
|
103 */ |
|
104 IMPORT_C virtual void RouteCompletion( TInt aIpc, |
|
105 CMmDataPackage* aDataPackage, TInt aResult ); |
|
106 |
|
107 |
|
108 protected: // New functions |
|
109 |
|
110 /** |
|
111 * Complete Notify current network status |
|
112 * @since Series60_ver 3.0 |
|
113 * @param aResult Symbian OS error code |
|
114 * @param aDataPackage Data package containgin location area and network information |
|
115 * @return Symbian OS error code. |
|
116 */ |
|
117 void CompleteNotifyCurrentNetworkChange( TInt aResult, CMmDataPackage* aDataPackage ); |
|
118 |
|
119 /** |
|
120 * Notify current network change |
|
121 * @since Series60_ver 3.0 |
|
122 * @param aItem Script line containing method name and parameters |
|
123 * @return Symbian OS error code. |
|
124 */ |
|
125 TInt NotifyCurrentNetworkChange( CStifItemParser& aItem ); |
|
126 |
|
127 /** |
|
128 * Get Network Registration Status |
|
129 * @since Series60_ver 3.0 |
|
130 * @param aItem Script line containing method name and parameters |
|
131 * @return Symbian OS error code. |
|
132 */ |
|
133 TInt GetNetworkRegistrationStatusL( CStifItemParser& aItem ); |
|
134 |
|
135 /** |
|
136 * Complete GetNetworkRegistrationStatus |
|
137 * @since Series60_ver 3.0 |
|
138 * @param aResult |
|
139 * @return None |
|
140 */ |
|
141 void CompleteGetNetworkRegistrationStatus( TInt aResult, CMmDataPackage* aDataPackage ); |
|
142 |
|
143 /** |
|
144 * Sets expected registration status on completion of |
|
145 * EPacketNotifyChangeOfNtwkRegStatus |
|
146 * @param aItem Script line containing method name and parameters |
|
147 * @return Symbian OS error code. |
|
148 */ |
|
149 TInt NotifyChangeOfNtwkRegStatusSetParameterL( CStifItemParser& aItem ); |
|
150 |
|
151 /** |
|
152 * NotifyChangeofNtwkRegStatus |
|
153 * @since Series60_ver 3.0 |
|
154 * @param aResult |
|
155 * @return None |
|
156 */ |
|
157 void NotifyChangeOfNtwkRegStatus( TInt aResult, CMmDataPackage* aDataPackage ); |
|
158 |
|
159 /** |
|
160 * Get HomeNetwork |
|
161 * @since Series60_ver 2.8 |
|
162 * @return Symbian OS error code. |
|
163 */ |
|
164 TInt GetHomeNetworkL( CStifItemParser& aItem ); |
|
165 |
|
166 /** |
|
167 * Complete Get HomeNetwork |
|
168 * @since Series60_ver 2.8 |
|
169 * @param aResult |
|
170 * aDataPackage |
|
171 * @return none. |
|
172 */ |
|
173 void CompleteGetHomeNetwork( TInt aResult, |
|
174 CMmDataPackage* aDataPackage ); |
|
175 |
|
176 /** |
|
177 * Detach from Packet Service Network |
|
178 * @since Series60_ver 3.0 |
|
179 * @param aItem Script line containing method name and parameters |
|
180 * @return Symbian OS error code. |
|
181 */ |
|
182 TInt PacketServiceDetachL( CStifItemParser& aItem ); |
|
183 |
|
184 /** |
|
185 * Complete PacketServiceDetach |
|
186 * @since Series60_ver 3.0 |
|
187 * @param aResult |
|
188 * @return None |
|
189 */ |
|
190 void CompletePacketServiceDetach( TInt aResult ); |
|
191 |
|
192 /** |
|
193 * PacketNotifyStatusChange |
|
194 * @since Series60_ver 3.0 |
|
195 * @param aResult |
|
196 * @return None |
|
197 */ |
|
198 void PacketNotifyStatusChange( TInt aResult, CMmDataPackage* aDataPackage ); |
|
199 |
|
200 /** |
|
201 * Reject Packet Serive Activation request |
|
202 * @since Series60_ver 3.0 |
|
203 * @param aItem Script line containing method name and parameters |
|
204 * @return Symbian OS error code. |
|
205 */ |
|
206 TInt PacketServiceRejectActivationRequestL( CStifItemParser& aItem ); |
|
207 |
|
208 /** |
|
209 * Complete PacketServiceRejectActivationRequest |
|
210 * @since Series60_ver 3.0 |
|
211 * @param aResult |
|
212 * @return None |
|
213 */ |
|
214 void CompletePacketServiceRejectActivationRequest( TInt aResult ); |
|
215 |
|
216 /** |
|
217 * Get Packet Attach Mode |
|
218 * @since Series60_ver 3.0 |
|
219 * @param aItem Script line containing method name and parameters |
|
220 * @return Symbian OS error code. |
|
221 */ |
|
222 TInt GetPacketAttachModeL( CStifItemParser& aItem ); |
|
223 |
|
224 /** |
|
225 * Complete GetPacketAttachMode |
|
226 * @since Series60_ver 3.0 |
|
227 * @param aResult |
|
228 * @return None |
|
229 */ |
|
230 void CompleteGetPacketAttachMode( TInt aResult, CMmDataPackage* aDataPackage ); |
|
231 |
|
232 /** |
|
233 * Attach Packet Service |
|
234 * @since Series60_ver 3.0 |
|
235 * @param aItem Script line containing method name and parameters |
|
236 * @return Symbian OS error code. |
|
237 */ |
|
238 TInt PacketServiceAttachL( CStifItemParser& aItem ); |
|
239 |
|
240 /** |
|
241 * Complete PacketServiceAttach |
|
242 * @since Series60_ver 3.0 |
|
243 * @param aResult |
|
244 * @return None |
|
245 */ |
|
246 void CompletePacketServiceAttach( TInt aResult ); |
|
247 |
|
248 /** |
|
249 * Attach Packet Service |
|
250 * @since Series60_ver 3.0 |
|
251 * @param aItem Script line containing method name and parameters |
|
252 * @return Symbian OS error code. |
|
253 */ |
|
254 TInt SetPacketServiceAttachModeL( CStifItemParser& aItem ); |
|
255 |
|
256 /** |
|
257 * Complete SetPacketServiceAttachMode |
|
258 * @since Series60_ver 3.0 |
|
259 * @param aResult |
|
260 * @return None |
|
261 */ |
|
262 void CompleteSetPacketServiceAttachMode( TInt aResult ); |
|
263 |
|
264 /** |
|
265 * Set Defaul Context Parameters for Packet Service |
|
266 * @since Series60_ver 3.0 |
|
267 * @param aItem Script line containing method name and parameters |
|
268 * @return Symbian OS error code. |
|
269 */ |
|
270 TInt PacketServiceSetDefaultContextParametersL( CStifItemParser& aItem ); |
|
271 |
|
272 /** |
|
273 * Complete PacketServiceSetDefaultContextParameters |
|
274 * @since Series60_ver 3.0 |
|
275 * @param aResult |
|
276 * @return None |
|
277 */ |
|
278 void CompletePacketServiceSetDefaultContextParameters( TInt aResult ); |
|
279 |
|
280 /** |
|
281 * Set Preferred Bearer |
|
282 * @since Series60_ver 3.0 |
|
283 * @param aItem Script line containing method name and parameters |
|
284 * @return Symbian OS error code. |
|
285 */ |
|
286 TInt SetPreferredBearerL( CStifItemParser& aItem ); |
|
287 |
|
288 /** |
|
289 * Complete SetPreferredBearer |
|
290 * @since Series60_ver 3.0 |
|
291 * @param aResult |
|
292 * @return None |
|
293 */ |
|
294 void CompleteSetPreferredBearer( TInt aResult ); |
|
295 |
|
296 /** |
|
297 * Get data volume transferred |
|
298 * @since Series60_ver 3.0 |
|
299 * @param aItem Script line containing method name and parameters |
|
300 * @return Symbian OS error code. |
|
301 */ |
|
302 TInt GetDataVolumeTransferredL( CStifItemParser& aItem ); |
|
303 |
|
304 /** |
|
305 * Complete GetDataVolumeTransferred |
|
306 * @since Series60_ver 3.0 |
|
307 * @param aResult |
|
308 * @return None |
|
309 */ |
|
310 void CompleteGetDataVolumeTransferred( TInt aResult, CMmDataPackage* aDataPackage ); |
|
311 |
|
312 /** |
|
313 * Initialize packet context |
|
314 * @since Series60_ver 3.0 |
|
315 * @param aItem Script line containing method name and parameters |
|
316 * @return Symbian OS error code. |
|
317 */ |
|
318 TInt InitializePacketContextL( CStifItemParser& aItem ); |
|
319 |
|
320 /** |
|
321 * Complete InitializePacketContext |
|
322 * @since Series60_ver 3.0 |
|
323 * @param aResult |
|
324 * @return None |
|
325 */ |
|
326 void CompleteInitializePacketContext( TInt aResult ); |
|
327 |
|
328 /** |
|
329 * Activate packet context |
|
330 * @since Series60_ver 3.0 |
|
331 * @param aItem Script line containing method name and parameters |
|
332 * @return Symbian OS error code. |
|
333 */ |
|
334 TInt ActivatePacketContextL( CStifItemParser& aItem ); |
|
335 |
|
336 /** |
|
337 * Complete ActivatePacketContext |
|
338 * @since Series60_ver 3.0 |
|
339 * @param aResult |
|
340 * @return None |
|
341 */ |
|
342 void CompleteActivatePacketContext( TInt aResult, CMmDataPackage* aDataPackage ); |
|
343 |
|
344 /** |
|
345 * Setting Packet Context Configuration |
|
346 * @since Series60_ver 3.0 |
|
347 * @param aItem Script line containing method name and parameters |
|
348 * @return Symbian OS error code. |
|
349 */ |
|
350 TInt SetPacketContextConfigurationL( CStifItemParser& aItem ); |
|
351 |
|
352 /** |
|
353 * Complete SetPacketContextConfiguration |
|
354 * @since Series60_ver 3.0 |
|
355 * @param aResult |
|
356 * @return None |
|
357 */ |
|
358 void CompleteSetPacketContextConfiguration( TInt aResult ); |
|
359 |
|
360 /** |
|
361 * Setting Profile Quality of Service Params |
|
362 * @since Series60_ver 3.0 |
|
363 * @param aItem Script line containing method name and parameters |
|
364 * @return Symbian OS error code. |
|
365 */ |
|
366 TInt SetProfileQoSParamsL( CStifItemParser& aItem ); |
|
367 |
|
368 /** |
|
369 * Complete Setting Profile Quality of Service Params |
|
370 * @since Series60_ver 3.0 |
|
371 * @param aResult |
|
372 * @return None |
|
373 */ |
|
374 void CompleteSetProfileQoSParams( TInt aResult ); |
|
375 |
|
376 /** |
|
377 * Deactivating Packet Context |
|
378 * @since Series60_ver 3.0 |
|
379 * @param aItem Script line containing method name and parameters |
|
380 * @return Symbian OS error code. |
|
381 */ |
|
382 TInt DeactivatePacketContextL( CStifItemParser& aItem ); |
|
383 |
|
384 /** |
|
385 * Complete Deactivating Packet Context |
|
386 * @since Series60_ver 3.0 |
|
387 * @param aResult |
|
388 * @return None |
|
389 */ |
|
390 void CompleteDeactivatePacketContext( TInt aResult, CMmDataPackage* aDataPackage ); |
|
391 |
|
392 /** |
|
393 * Deleting Packet Context |
|
394 * @since Series60_ver 3.0 |
|
395 * @param aItem Script line containing method name and parameters |
|
396 * @return Symbian OS error code. |
|
397 */ |
|
398 TInt DeletePacketContextL( CStifItemParser& aItem ); |
|
399 |
|
400 /** |
|
401 * Complete Deleting Packet Context |
|
402 * @since Series60_ver 3.0 |
|
403 * @param aResult |
|
404 * @return None |
|
405 */ |
|
406 void CompleteDeletePacketContext( TInt aResult ); |
|
407 |
|
408 /** |
|
409 * Mapping QoS Params for R99_4 |
|
410 * @since Series60_ver 3.0 |
|
411 * @param aItem Script line containing method name and parameters |
|
412 * @return Symbian OS error code. |
|
413 */ |
|
414 void MapQoSR99_4Params( |
|
415 RPacketQoS::TQoSR99_R4Requested& aProfile, |
|
416 TDesC* aMinTrafficClass, |
|
417 TDesC* aMinDeliveryOrderReq, |
|
418 TDesC* aMinDeliveryErroneusSDU, |
|
419 TDesC* aMaxBER, |
|
420 TDesC* aMaxSDUErrorRatio, |
|
421 TDesC* aMinTrafficHandlingPriority ); |
|
422 |
|
423 /** |
|
424 * Mapping QoS Params for GPRS |
|
425 * @since Series60_ver 3.0 |
|
426 * @param aItem Script line containing method name and parameters |
|
427 * @return Symbian OS error code. |
|
428 */ |
|
429 void MapQoSGPRS( |
|
430 RPacketQoS::TQoSGPRSRequested& aProfileGPRS, |
|
431 TDesC* aMinDelay, |
|
432 TDesC* aMinMeanThroughput, |
|
433 TDesC* aMinPeakThroughput, |
|
434 TDesC* aMinPrecedence, |
|
435 TDesC* aMinReliability, |
|
436 TDesC* aReqDelay, |
|
437 TDesC* aReqMeanThroughput, |
|
438 TDesC* aReqPeakThroughput, |
|
439 TDesC* aReqPrecedence, |
|
440 TDesC* aReqReliability ); |
|
441 |
|
442 /** |
|
443 * Adding Packet Filters |
|
444 * @since Series60_ver 3.0 |
|
445 * @param aItem Script line containing method name and parameters |
|
446 * @return Symbian OS error code. |
|
447 */ |
|
448 TInt AddPacketFiltersL( CStifItemParser& aItem ); |
|
449 |
|
450 /** |
|
451 * Adding Media Authorization Params |
|
452 * @since Series60_ver 3.0 |
|
453 * @param aItem Script line containing method name and parameters |
|
454 * @return Symbian OS error code. |
|
455 */ |
|
456 TInt AddMediaAuthorizationParamsL( CStifItemParser& aItem ); |
|
457 |
|
458 /** |
|
459 * Modifying Packet Context |
|
460 * @since Series60_ver 3.0 |
|
461 * @param aItem Script line containing method name and parameters |
|
462 * @return Symbian OS error code. |
|
463 */ |
|
464 TInt ModifyPacketContextL( CStifItemParser& aItem ); |
|
465 |
|
466 /** |
|
467 * Complete Modifying Packet Context |
|
468 * @since Series60_ver 3.0 |
|
469 * @param aResult |
|
470 * @return None |
|
471 */ |
|
472 void CompleteModifyPacketContext( TInt aResult ); |
|
473 |
|
474 /** |
|
475 * Complete transfer caps change |
|
476 * EPacketNotifyTransferCapsIPC |
|
477 */ |
|
478 void CompleteTransferCapsChange( |
|
479 TInt aResult, |
|
480 CMmDataPackage* aDataPackage ); |
|
481 |
|
482 /** |
|
483 * Context Status Change Notification |
|
484 * EPacketContextNotifyStatusChange |
|
485 */ |
|
486 TInt PacketContextNotifyStatusChange( CStifItemParser& aItem ); |
|
487 |
|
488 /** |
|
489 * Complete Context Status Change Notification |
|
490 * EPacketContextNotifyStatusChange |
|
491 */ |
|
492 void CompletePacketContextNotifyStatusChange( |
|
493 TInt aResult, |
|
494 CMmDataPackage* aDataPackage ); |
|
495 |
|
496 /** |
|
497 * Context Config Change Notification |
|
498 * EPacketContextNotifyConfigChange |
|
499 */ |
|
500 TInt PacketContextNotifyConfigChanged( CStifItemParser& aItem ); |
|
501 |
|
502 /** |
|
503 * Complete Context Config Change Notification |
|
504 * EPacketContextNotifyConfigChange |
|
505 */ |
|
506 void CompletePacketContextNotifyConfigChanged( |
|
507 TInt aResult, |
|
508 CMmDataPackage* aDataPackage ); |
|
509 |
|
510 /** |
|
511 * Setting Notify Dynamic Caps Change Reference Parameters |
|
512 */ |
|
513 TInt SetNotifyDynamicCapsChangeRefParamsL( CStifItemParser& aItem ); |
|
514 |
|
515 /** |
|
516 * Setting Notify Transfer Caps Reference Parameters |
|
517 */ |
|
518 TInt SetNotifyTransferCapsRefParamsL( CStifItemParser& aItem ); |
|
519 |
|
520 /** |
|
521 * Complete Notify Dynamic Caps Change Notification |
|
522 * EPacketNotifyDynamicCapsChange |
|
523 */ |
|
524 void CompleteNotifyDynamicCapsChange( |
|
525 TInt aResult, |
|
526 CMmDataPackage* aDataPackage ); |
|
527 |
|
528 /** |
|
529 * Setting Notify MSClass Change Reference Parameters |
|
530 */ |
|
531 TInt SetNotifyMSClassChangeRefParamsL( CStifItemParser& aItem ); |
|
532 |
|
533 /** |
|
534 * Complete Notify MS Class Change Notification |
|
535 * EPacketNotifyMSClassChange |
|
536 */ |
|
537 void CompleteNotifyMSClassChange( |
|
538 TInt aResult, |
|
539 CMmDataPackage* aDataPackage ); |
|
540 |
|
541 /** |
|
542 * Complete Packet Notify Context Added |
|
543 * EPacketNotifyContextAdded |
|
544 */ |
|
545 void CompletePacketNotifyContextAdded( |
|
546 TInt aResult, |
|
547 CMmDataPackage* aDataPackage ); |
|
548 |
|
549 /** |
|
550 * Complete Packet QoS Notify Profile Changed |
|
551 * EPacketQoSNotifyProfileChanged |
|
552 */ |
|
553 void CompletePacketQoSNotifyProfileChanged( |
|
554 TInt aResult, |
|
555 CMmDataPackage* aDataPackage ); |
|
556 |
|
557 /** |
|
558 * Complete Packet Context Notify Connection Speed Change |
|
559 * EPacketContextNotifyConnectionSpeedChange |
|
560 */ |
|
561 void CompletePacketContextNotifyConnectionSpeedChange( |
|
562 TInt aResult, |
|
563 CMmDataPackage* aDataPackage ); |
|
564 |
|
565 /** |
|
566 * Set expected connection speed value for comparison |
|
567 */ |
|
568 TInt SetExpectedPacketContextNotifyConnectionSpeedL( CStifItemParser& aItem ); |
|
569 |
|
570 /** |
|
571 * Set expected context misc status |
|
572 */ |
|
573 TInt SetExpectedContextMicsStatusL( CStifItemParser& aItem ); |
|
574 |
|
575 /** |
|
576 * Complete Packet Status Change Notification |
|
577 * EPacketNotifyStatusChange |
|
578 */ |
|
579 void CompletePacketNotifyStatusChange( |
|
580 TInt aResult, |
|
581 CMmDataPackage* aDataPackage ); |
|
582 |
|
583 /** |
|
584 * Set PDI reference parameters for parameter checking |
|
585 */ |
|
586 TInt SetPdiReferenceParameters( CStifItemParser& aItem ); |
|
587 |
|
588 /** |
|
589 * Set reference context name received upon NTSY |
|
590 * completing EPacketContextActivate |
|
591 */ |
|
592 TInt SetContextNameForComparison( CStifItemParser& aItem ); |
|
593 |
|
594 protected: // Functions from base classes |
|
595 |
|
596 |
|
597 private: |
|
598 |
|
599 struct TContextParams |
|
600 { |
|
601 TInfoName iContextName; |
|
602 RPacketContext::TProtocolType iPdpType; |
|
603 TBool iContextType; |
|
604 TInfoName iPrimaryContextName; |
|
605 RPacketContext::TContextStatus iContextStatus; |
|
606 }; |
|
607 |
|
608 enum TPacketFilterFilterOperation |
|
609 { |
|
610 ETftCreateNew, |
|
611 EDeleteExisting, |
|
612 EAddPacketFilters, |
|
613 EReplacePacketFilters, |
|
614 EDeletePacketFilters, |
|
615 ETftNoOperation |
|
616 }; |
|
617 |
|
618 class TContextConfiguration |
|
619 { |
|
620 public: |
|
621 TInfoName iContextName; |
|
622 RPacketContext::TProtocolType iConfiguration; |
|
623 RPacketQoS::TQoSGPRSRequested* iQosParams97; |
|
624 RPacketQoS::TQoSR99_R4Requested* iQosParams99; |
|
625 RPacketQoS::TQoSR5Requested* iQosParamsR5; |
|
626 CArrayFixFlat<RPacketContext::TPacketFilterV2>* iTftFilterArray; |
|
627 TInt iFilterIdArray[ 8 ]; |
|
628 TPacketFilterFilterOperation iTftOperation; |
|
629 }; |
|
630 |
|
631 RPacketContext::TContextConfigGPRS* iConfig; |
|
632 |
|
633 /** |
|
634 * C++ default constructor. |
|
635 */ |
|
636 CPDI( CTestModuleIf& aTestModuleIf ); |
|
637 |
|
638 /** |
|
639 * By default Symbian 2nd phase constructor is private. |
|
640 */ |
|
641 void ConstructL(); |
|
642 |
|
643 /** |
|
644 * Frees all resources allocated from test methods. |
|
645 * @since Series60_ver 2.8 |
|
646 */ |
|
647 void Delete(); |
|
648 |
|
649 /** |
|
650 * Add P-CSCF address discovery request into |
|
651 * configuration / iProtocolConfigOption.iMiscBuffer. |
|
652 * @param aContextConfig: Context configuration parameters |
|
653 */ |
|
654 void AddPCSCFAddressDiscoveryRequest( |
|
655 TPacketDataConfigBase& aContextConfig ); |
|
656 |
|
657 /** |
|
658 * Get P-CSCF address from |
|
659 * configuration / iProtocolConfigOption.iMiscBuffer. |
|
660 * @param aAddress: received P-CSCF address |
|
661 * @param aContextConfig: Context configuration parameters |
|
662 */ |
|
663 void GetPCSCFAddress( |
|
664 TDes& aAddress, |
|
665 const RPacketContext::TContextConfigGPRS& aConfig ); |
|
666 |
|
667 /** |
|
668 * Test methods are listed below. |
|
669 */ |
|
670 CArrayFixFlat<RPacketContext::TPacketFilterV2>* iFilterArray; |
|
671 CArrayFixFlat<RPacketContext::CTFTMediaAuthorizationV3>* iMediaAuthorizationArray; |
|
672 |
|
673 |
|
674 public: // Data |
|
675 |
|
676 protected: // Data |
|
677 |
|
678 private: // Data |
|
679 |
|
680 /** |
|
681 * Pointer to logger |
|
682 */ |
|
683 CStifLogger* iPDILog; |
|
684 |
|
685 //For message control |
|
686 TBool iAttachOngoing; |
|
687 TBool iSetQoSOngoing; |
|
688 TBool iInitOngoing; |
|
689 TBool iActivateOngoing; |
|
690 TBool iDeactivateOngoing; |
|
691 TBool iDeleteOngoing; |
|
692 TBool iDetachOngoing; |
|
693 TBool iDefaultConOngoing; |
|
694 TBool iSetAttachOngoing; |
|
695 TBool iModifyOngoing; |
|
696 TBool iGetDataVolOngoing; |
|
697 TBool iContextStatusChangeOngoing; |
|
698 TBool iPCSCFAddressRequested; |
|
699 TBool iContextConfigChangeOngoing; |
|
700 TUint iNotifyCurrentNetworkChangeOngoing; |
|
701 TBool iGetHomeNetworkOngoing; |
|
702 |
|
703 RPacketService::TRegistrationStatus iRegStatusClientForComparison; |
|
704 TBool iLastGprsSupportInCellForComparison; |
|
705 TBool iLastCsServicesForComparison; |
|
706 RPacketService::TMSClass iMsClassForComparison; |
|
707 RPacketService::TAttachMode iAttachModeForComparison; |
|
708 TInfoName iContextNameForComparison; |
|
709 TInt iConnectionSpeedClientForComparison; |
|
710 TInt iTransferCaps; |
|
711 |
|
712 TBuf<100> iProfile; |
|
713 RPacketQoS::TQoSGPRSRequested iProfileGPRS; |
|
714 RPacketQoS::TQoSR99_R4Requested iProfileR99_R4; |
|
715 RPacketQoS::TQoSR5Requested iProfileR5; |
|
716 RPacketContext::TDataVolume iDataVolumeForComparison; |
|
717 #if ( NCP_COMMON_S60_VERSION_SUPPORT == S60_VERSION_32 ) |
|
718 CMmCommonStaticUtility::TContextMisc iMiscForComparison; |
|
719 #else |
|
720 TContextMisc iMiscForComparison; |
|
721 #endif |
|
722 RPacketService::TStatus iPacketStatus; |
|
723 TBool iResumed; |
|
724 |
|
725 public: // Friend classes |
|
726 //?friend_class_declaration; |
|
727 protected: // Friend classes |
|
728 //?friend_class_declaration; |
|
729 private: // Friend classes |
|
730 //?friend_class_declaration; |
|
731 |
|
732 }; |
|
733 |
|
734 |
|
735 #endif // PDI_H |
|
736 |
|
737 // End of File |