|
1 /* |
|
2 * Copyright (c) 2002 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: ?Description* |
|
15 */ |
|
16 |
|
17 |
|
18 #ifndef VCXCONNUTILTESTER_H |
|
19 #define VCXCONNUTILTESTER_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include "VCXConnUtilTester.h" |
|
23 |
|
24 #include "vcxconnutilengineobserver.h" |
|
25 #include "../../../../../videoconnutility/inc/vcxconnectionutility.hrh" |
|
26 #include "MIptvTestTimerObserver.h" |
|
27 |
|
28 class CIptvTestTimer; |
|
29 class CIptvTestActiveWait; |
|
30 class CVcxConnectionUtility; |
|
31 |
|
32 /** |
|
33 * Video connection utility tester class. |
|
34 */ |
|
35 class CVCXConnUtilTester : public CBase, |
|
36 public MConnUtilEngineObserver, |
|
37 public MIptvTestTimerObserver |
|
38 { |
|
39 public: |
|
40 |
|
41 /** |
|
42 * Two-phased constructor. |
|
43 */ |
|
44 static CVCXConnUtilTester* NewL(); |
|
45 |
|
46 /** |
|
47 * C++ default constructor. |
|
48 */ |
|
49 CVCXConnUtilTester(); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 ~CVCXConnUtilTester(); |
|
55 |
|
56 public: // Public new functions |
|
57 |
|
58 /** |
|
59 * ConnUtil GetIap |
|
60 * |
|
61 * @return an error code. |
|
62 */ |
|
63 TInt GetIap( TUint32& aIapId, TBool aSilent, TBool aIsTimed ); |
|
64 |
|
65 /** |
|
66 * ConnUtil WapIdFromIapIdL |
|
67 */ |
|
68 TUint32 WapIdFromIapIdL( const TInt32& aIapId ); |
|
69 |
|
70 /** |
|
71 * ConnUtil Disconnect |
|
72 * |
|
73 * @return an error code. |
|
74 */ |
|
75 TInt Disconnect(); |
|
76 |
|
77 private: // Constructors and destructor |
|
78 |
|
79 /** |
|
80 * By default Symbian 2nd phase constructor is private. |
|
81 */ |
|
82 void ConstructL(); |
|
83 |
|
84 private: // Functions from base classes |
|
85 /** |
|
86 * From MConnUtilEngineObserver. |
|
87 */ |
|
88 TBool RequestIsRoamingAllowedL(); |
|
89 |
|
90 /** |
|
91 * From MConnUtilEngineObserver. |
|
92 */ |
|
93 void IapChangedL(); |
|
94 |
|
95 /** |
|
96 * From MIptvTestTimerObserver Handles timer completion |
|
97 * @since |
|
98 * @param aTimerId |
|
99 * @param aError |
|
100 */ |
|
101 void TimerComplete(TInt aTimerId, TInt aError); |
|
102 |
|
103 private: // Data |
|
104 |
|
105 CVcxConnectionUtility* iConnUtil; |
|
106 |
|
107 public: // Data |
|
108 TBool iIsRoamingAllowed; |
|
109 |
|
110 TBool iLeaveAtRoamingRequest; |
|
111 |
|
112 TInt iDelaySecondsAtRoamingRequest; |
|
113 |
|
114 CIptvTestTimer* iTimer; |
|
115 |
|
116 CIptvTestActiveWait* iWait; |
|
117 |
|
118 // This will show in function traces. |
|
119 TBuf<256> iName; |
|
120 }; |
|
121 |
|
122 #endif // VCXCONNUTILTESTER_H |