|
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 "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 |
|
19 |
|
20 #ifndef ISVTELEPHONYTESTPARSER_H |
|
21 #define ISVTELEPHONYTESTPARSER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <etel3rdparty.h> |
|
26 #include "IsvTelephonyTest.hrh" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class MIsvTelephonyTestMessageHandler; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Class for parsing test result data to log/UI |
|
35 * |
|
36 * @lib |
|
37 * @since |
|
38 */ |
|
39 class CIsvTelephonyTestParser : public CBase |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Two-phased constructor. |
|
45 * @param aMessageHandler Reference to class |
|
46 * implementing abstract class MIsvTelephonyTestMessageHandler |
|
47 */ |
|
48 static CIsvTelephonyTestParser* NewL( |
|
49 MIsvTelephonyTestMessageHandler& aMessageHandler ); |
|
50 |
|
51 /** |
|
52 * Destructor. |
|
53 */ |
|
54 virtual ~CIsvTelephonyTestParser(); |
|
55 |
|
56 public: // New functions |
|
57 |
|
58 /** |
|
59 * Parses parameter data and outputs it to a |
|
60 * log and/or UI |
|
61 * @param aVersion Version data |
|
62 */ |
|
63 void ParseGetVersion( TVersion& aVersion ); |
|
64 |
|
65 /** |
|
66 * Parses parameter data and outputs it to a |
|
67 * log and/or UI |
|
68 * @param aPhoneId Phone id data |
|
69 */ |
|
70 void ParseGetPhoneId( |
|
71 CTelephony::TPhoneIdV1& aPhoneId ); |
|
72 |
|
73 /** |
|
74 * Parses parameter data and outputs it to a |
|
75 * log and/or UI |
|
76 * @param aSubscriberId Subscriber id data |
|
77 */ |
|
78 void ParseGetSubscriberId( |
|
79 CTelephony::TSubscriberIdV1& aSubscriberId ); |
|
80 |
|
81 /** |
|
82 * Parses parameter data and outputs it to a |
|
83 * log and/or UI |
|
84 * @param aMode Mode data |
|
85 */ |
|
86 void ParseGetFlightMode( |
|
87 CTelephony::TFlightModeV1& aFlightMode ); |
|
88 |
|
89 /** |
|
90 * Parses parameter data and outputs it to a |
|
91 * log and/or UI |
|
92 * @param aIndicator Indicator data |
|
93 */ |
|
94 void ParseGetIndicator( |
|
95 CTelephony::TIndicatorV1& aIndicator ); |
|
96 |
|
97 /** |
|
98 * Parses parameter data and outputs it to a |
|
99 * log and/or UI |
|
100 * @param aBatteryInfo Battery info data |
|
101 */ |
|
102 void ParseGetBatteryInfo( |
|
103 CTelephony::TBatteryInfoV1& aBatteryInfo ); |
|
104 |
|
105 /** |
|
106 * Parses parameter data and outputs it to a |
|
107 * log and/or UI |
|
108 * @param aSignalStrength Signal strength data |
|
109 */ |
|
110 void ParseGetSignalStrength( |
|
111 CTelephony::TSignalStrengthV1& aSignalStrength ); |
|
112 |
|
113 /** |
|
114 * Parses parameter data and outputs it to a |
|
115 * log and/or UI |
|
116 * @param aLock Lock selection |
|
117 * @param aLockInfo Lock info data |
|
118 */ |
|
119 void ParseGetLockInfo( |
|
120 CTelephony::TIccLock& aLock, |
|
121 CTelephony::TIccLockInfoV1& aLockInfo ); |
|
122 |
|
123 /** |
|
124 * Parses parameter data and outputs it to a |
|
125 * log and/or UI |
|
126 * @param aPhoneLine |
|
127 * @param aCallStatus |
|
128 */ |
|
129 void ParseGetLineStatus( |
|
130 CTelephony::TPhoneLine& aPhoneLine, |
|
131 CTelephony::TCallStatusV1& aCallStatus ); |
|
132 |
|
133 /** |
|
134 * Parses parameter data and outputs it to a |
|
135 * log and/or UI |
|
136 * @param aCallSelection |
|
137 * @param aCallInfo |
|
138 * @param aRemotePartyInfo |
|
139 */ |
|
140 void ParseGetCallInfoL( |
|
141 CTelephony::TCallSelectionV1& aCallSelection, |
|
142 CTelephony::TCallInfoV1& aCallInfo, |
|
143 CTelephony::TRemotePartyInfoV1& aRemotePartyInfo ); |
|
144 |
|
145 /** |
|
146 * Parses parameter data and outputs it to a |
|
147 * log and/or UI |
|
148 * @param aNetworkRegistration Network registration data |
|
149 */ |
|
150 void ParseGetNetworkRegistrationStatus( |
|
151 CTelephony::TNetworkRegistrationV1& aNetworkRegistration ); |
|
152 |
|
153 /** |
|
154 * Parses parameter data and outputs it to a |
|
155 * log and/or UI |
|
156 * @param aNetworkInfo Network info data |
|
157 */ |
|
158 void ParseGetCurrentNetworkInfo( |
|
159 CTelephony::TNetworkInfoV1& aNetworkInfo ); |
|
160 |
|
161 /** |
|
162 * Parses parameter data and outputs it to a |
|
163 * log and/or UI |
|
164 * @param aNetworkName Network name data |
|
165 */ |
|
166 void ParseGetCurrentNetworkName( |
|
167 CTelephony::TNetworkNameV1& aNetworkName ); |
|
168 |
|
169 /** |
|
170 * Parses parameter data and outputs it to a |
|
171 * log and/or UI |
|
172 * @param aOperatorName Operator name data |
|
173 */ |
|
174 void ParseGetOperatorName( |
|
175 CTelephony::TOperatorNameV1& aOperatorName ); |
|
176 |
|
177 /** |
|
178 * Parses parameter data and outputs it to a |
|
179 * log and/or UI |
|
180 * @param aCallForwardingCondition Cal |
|
181 * @param aCallForwardingStatus |
|
182 * @param aServiceGroup |
|
183 */ |
|
184 void ParseGetCallForwardingStatus( |
|
185 CTelephony::TCallForwardingCondition& aCallForwardingCondition, |
|
186 CTelephony::TCallForwardingSupplServicesV1& aCallForwardingStatus, |
|
187 CTelephony::TServiceGroup& aServiceGroup ); |
|
188 |
|
189 /** |
|
190 * Parses parameter data and outputs it to a |
|
191 * log and/or UI |
|
192 * @param aCallBarringCondition |
|
193 * @param aCallBarringStatus |
|
194 * @param aServiceGroup |
|
195 */ |
|
196 void ParseGetCallBarringStatus( |
|
197 CTelephony::TCallBarringCondition& aCallBarringCondition, |
|
198 CTelephony::TCallBarringSupplServicesV1& aCallBarringStatus, |
|
199 CTelephony::TServiceGroup& aServiceGroup ); |
|
200 |
|
201 /** |
|
202 * Parses parameter data and outputs it to a |
|
203 * log and/or UI |
|
204 * @param aCallWaitingStatus |
|
205 * @param aServiceGroup |
|
206 */ |
|
207 void ParseGetCallWaitingStatus( |
|
208 CTelephony::TCallWaitingSupplServicesV1& aCallWaitingStatus, |
|
209 CTelephony::TServiceGroup& aServiceGroup ); |
|
210 |
|
211 /** |
|
212 * Parses parameter data and outputs it to a |
|
213 * log and/or UI |
|
214 * @param aIdentityService |
|
215 * @param aIdentityServiceStatus |
|
216 */ |
|
217 void ParseGetIdentityServiceStatus( |
|
218 CTelephony::TIdentityService& aIdentityService, |
|
219 CTelephony::TIdentityServiceV1& aIdentityServiceStatus ); |
|
220 |
|
221 /** |
|
222 * Parses parameter data and outputs it to a |
|
223 * log and/or UI |
|
224 * @param aCallId |
|
225 */ |
|
226 void ParseCallId( |
|
227 CTelephony::TCallId& aCallId ); |
|
228 |
|
229 /** |
|
230 * Parses parameter data and outputs it to a |
|
231 * log and/or UI |
|
232 * @param aCallParams |
|
233 * @param aTelNumber |
|
234 * @param aCallId |
|
235 * @param aPhoneLine |
|
236 */ |
|
237 void ParseDialNewCall( |
|
238 CTelephony::TCallParamsV1& aCallParams, |
|
239 CTelephony::TTelNumber& aTelNumber, |
|
240 CTelephony::TCallId& aCallId, |
|
241 CTelephony::TPhoneLine& aPhoneLine ); |
|
242 |
|
243 /** |
|
244 * Parses parameter data and outputs it to a |
|
245 * log and/or UI |
|
246 * @param aCallId |
|
247 * @param aCallCaps |
|
248 */ |
|
249 void ParseGetCallDynamicCaps( |
|
250 CTelephony::TCallId& aCallId, |
|
251 CTelephony::TCallCapsV1& aCallCaps ); |
|
252 |
|
253 /** |
|
254 * Parses parameter data and outputs it to a |
|
255 * log and/or UI |
|
256 * @param aCallId |
|
257 * @param aCallStatus |
|
258 */ |
|
259 void ParseGetCallStatus( |
|
260 CTelephony::TCallId& aCallId, |
|
261 CTelephony::TCallStatusV1& aCallStatus ); |
|
262 |
|
263 /** |
|
264 * Parses parameter data and outputs it to a |
|
265 * log and/or UI |
|
266 * @param aCallStatus |
|
267 */ |
|
268 void ParseCallStatus( |
|
269 CTelephony::TCallStatusV1& aCallStatus ); |
|
270 |
|
271 private: |
|
272 |
|
273 /** |
|
274 * C++ default constructor. |
|
275 * @param aMessageHandler Reference to class |
|
276 * implementing abstract class MIsvTelephonyTestMessageHandler |
|
277 */ |
|
278 CIsvTelephonyTestParser( |
|
279 MIsvTelephonyTestMessageHandler& aMessageHandler ); |
|
280 |
|
281 /** |
|
282 * By default Symbian 2nd phase constructor is private. |
|
283 */ |
|
284 void ConstructL(); |
|
285 |
|
286 private: // Data |
|
287 // Reference to message handler |
|
288 MIsvTelephonyTestMessageHandler& iMessageHandler; |
|
289 |
|
290 }; |
|
291 |
|
292 #endif // ISVTELEPHONYTESTPARSER_H |
|
293 |
|
294 // End of File |