|
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 "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: EMC Test App |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CEnhanMediaTestClass_H |
|
21 #define CEnhanMediaTestClass_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <StifLogger.h> |
|
25 #include <TestScripterInternal.h> |
|
26 #include <StifTestModule.h> |
|
27 |
|
28 #include <e32svr.h> |
|
29 #include <e32base.h> |
|
30 #include <e32cons.h> |
|
31 //#include <customInterfaceUtility.h> |
|
32 //#include <SoundDevice.h> |
|
33 //#include <AacDecoderConfig.h> |
|
34 //#include <MdaAudioOutputStream.h> |
|
35 //#include <Mda\Common\Audio.h> |
|
36 #include <StreamControl.h> |
|
37 #include <SourceControl.h> |
|
38 #include <ControlObserver.h> |
|
39 #include <Events.h> |
|
40 #include <ProgDLSource.h> |
|
41 #include <DataBufferSource.h> |
|
42 #include <FileSource.h> |
|
43 #include <DataBuffer.h> |
|
44 #include <MMControlFactory.h> |
|
45 #include <SinkControl.h> |
|
46 #include <badesca.h> |
|
47 #include <MimeTypes.h> |
|
48 #include <DescriptorSource.h> |
|
49 #include <MultimediaDataSource.h> |
|
50 #include <EffectControl.h> |
|
51 #include <VolumeControl.h> |
|
52 #include <BalanceControl.h> |
|
53 |
|
54 #include <EqualizerControl.h> |
|
55 #include <ReverbControl.h> |
|
56 #include "CEMCConstants.h" |
|
57 |
|
58 #include<StereoWideningControl.h> |
|
59 #include<LoudnessControl.h> |
|
60 #include<BassBoostControl.h> |
|
61 #include<RoomLevelControl.h> |
|
62 #include<DistanceAttenuationControl.h> |
|
63 #include<ListenerLocationControl.h> |
|
64 #include<SourceLocationControl.h> |
|
65 #include<ListenerDopplerControl.h> |
|
66 #include<SourceDopplerControl.h> |
|
67 #include<SourceOrientationControl.h> |
|
68 #include<ListenerOrientationControl.h> |
|
69 //#include <CacheDataSource.h> |
|
70 //#include <DataSourceConfigIntfcImpl.h> |
|
71 |
|
72 #include "CEMCConstants.h" |
|
73 |
|
74 #include <DownloadMgrClientApiExt.h> |
|
75 using multimedia::MStreamControl; |
|
76 using multimedia::MControlObserver; |
|
77 using multimedia::MProgDLSource; |
|
78 using multimedia::MDataBufferSource; |
|
79 using multimedia::MDescriptorSource; |
|
80 using multimedia::MDataBuffer; |
|
81 using multimedia::MControl; |
|
82 using multimedia::CMultimediaFactory; |
|
83 using multimedia::MSinkControl; |
|
84 using multimedia::MFileSource; |
|
85 using multimedia::MSourceControl; |
|
86 using multimedia::MVolumeControl; |
|
87 using multimedia::MBalanceControl; |
|
88 using multimedia::MEffectControl; |
|
89 using multimedia::MEqualizerControl; |
|
90 using multimedia::MReverbControl; |
|
91 |
|
92 using multimedia::MStereoWideningControl; |
|
93 using multimedia::MLoudnessControl; |
|
94 using multimedia::MBassBoostControl; |
|
95 using multimedia::MRoomLevelControl; |
|
96 using multimedia::MDistanceAttenuationControl; |
|
97 using multimedia::MListenerLocationControl; |
|
98 using multimedia::MSourceLocationControl; |
|
99 using multimedia::MListenerDopplerControl; |
|
100 using multimedia::MSourceDopplerControl; |
|
101 using multimedia::MSourceOrientationControl; |
|
102 using multimedia::MListenerOrientationControl; |
|
103 #include "TimeoutController.h" |
|
104 |
|
105 |
|
106 |
|
107 // FORWARD DECLARATIONS |
|
108 class CEnhanMediaTestClass; |
|
109 class CDRMConfigIntfc; |
|
110 |
|
111 // CLASS DECLARATION |
|
112 |
|
113 /** |
|
114 * CRadioUtilityTestClass test class for STIF Test Framework TestScripter. |
|
115 * ?other_description_lines |
|
116 * |
|
117 * @lib ?library |
|
118 * @since Series60_3_2 |
|
119 */ |
|
120 NONSHARABLE_CLASS(CEnhanMediaTestClass) : public CScriptBase, |
|
121 public MTimeoutObserver |
|
122 ,public MControlObserver, |
|
123 public MHttpDownloadMgrObserver |
|
124 //public MDevSoundObserver, |
|
125 //public MMdaAudioOutputStreamCallback |
|
126 // public MRadioFmTunerObserver, |
|
127 // public MRadioPlayerObserver, |
|
128 // public MRadioRdsObserver |
|
129 /*public MRadioPresetObserver*/ |
|
130 { |
|
131 public: // Constructors and destructor |
|
132 /** |
|
133 * Two-phased constructor. |
|
134 */ |
|
135 static CEnhanMediaTestClass* NewL( CTestModuleIf& aTestModuleIf ); |
|
136 |
|
137 /** |
|
138 * Destructor. |
|
139 */ |
|
140 virtual ~CEnhanMediaTestClass(); |
|
141 |
|
142 void Event( MControl* aObject,TUint aEvent, TAny* aData ); |
|
143 /** |
|
144 * From MhttpDownloadMgrObserver. |
|
145 * Callback from the DownloadManager notifying Client Events. |
|
146 * @since S60 v3.2 |
|
147 * @param aDownload Download for which the Event is meant |
|
148 * @param aEvent Actual Event |
|
149 */ |
|
150 void HandleDMgrEventL( RHttpDownload& aDownload, THttpDownloadEvent aEvent ); |
|
151 |
|
152 enum TAEnhsExpectedEvent |
|
153 { |
|
154 EEDBSOpen, |
|
155 EEStreamPause, |
|
156 EEDeleteBuffer, |
|
157 EEDBSGetInterface, |
|
158 EEWriteToStream, |
|
159 EEDataBuffer, |
|
160 EEStreamStart, |
|
161 EEStreamClose, |
|
162 EEStreamAddEffect, |
|
163 EEStreamOpen, |
|
164 EEStreamPrime, |
|
165 EEPDLSOpen, |
|
166 |
|
167 }; |
|
168 |
|
169 enum TControlTy |
|
170 { |
|
171 EStreamControl, |
|
172 ESourceControl, |
|
173 ESinkControl, |
|
174 EEffectControl |
|
175 }; |
|
176 |
|
177 public: // New functions |
|
178 |
|
179 /** |
|
180 * ?member_description. |
|
181 * @since ?Series60_version |
|
182 * @param ?arg1 ?description |
|
183 * @return ?description |
|
184 */ |
|
185 //?type ?member_function( ?type ?arg1 ); |
|
186 |
|
187 public: // Functions from base classes |
|
188 |
|
189 /** |
|
190 * From CScriptBase Runs a script line. |
|
191 * @since ?Series60_version |
|
192 * @param aItem Script line containing method name and parameters |
|
193 * @return Symbian OS error code |
|
194 */ |
|
195 virtual TInt RunMethodL( CStifItemParser& aItem ); |
|
196 |
|
197 |
|
198 // From MTimeoutObserver |
|
199 |
|
200 /** |
|
201 * @since ?Series60_version |
|
202 * @param none |
|
203 * Review if all the expected events have ocurred once the time is over |
|
204 */ |
|
205 void HandleTimeout(TInt error); |
|
206 |
|
207 |
|
208 |
|
209 |
|
210 protected: // New functions |
|
211 |
|
212 /** |
|
213 * ?member_description. |
|
214 * @since ?Series60_version |
|
215 * @param ?arg1 ?description |
|
216 * @return ?description |
|
217 */ |
|
218 //?type ?member_function( ?type ?arg1 ); |
|
219 |
|
220 protected: // Functions from base classes |
|
221 |
|
222 /** |
|
223 * From ?base_class ?member_description |
|
224 */ |
|
225 //?type ?member_function(); |
|
226 |
|
227 private: |
|
228 /** |
|
229 * C++ default constructor. |
|
230 */ |
|
231 CEnhanMediaTestClass( CTestModuleIf& aTestModuleIf ); |
|
232 |
|
233 /** |
|
234 * By default Symbian 2nd phase constructor is private. |
|
235 */ |
|
236 void ConstructL(); |
|
237 |
|
238 // Prohibit copy constructor if not deriving from CBase. |
|
239 // ?classname( const ?classname& ); |
|
240 // Prohibit assigment operator if not deriving from CBase. |
|
241 // ?classname& operator=( const ?classname& ); |
|
242 |
|
243 /** |
|
244 * Frees all resources allocated from test methods. |
|
245 * @since ?Series60_version |
|
246 */ |
|
247 void Delete(); |
|
248 |
|
249 /** |
|
250 * Test methods are listed below. |
|
251 */ |
|
252 |
|
253 /** |
|
254 * Example test method. |
|
255 * @since ?Series60_version |
|
256 * @param aItem Script line containing parameters. |
|
257 * @return Symbian OS error code. |
|
258 */ |
|
259 |
|
260 /** |
|
261 * Set an event as expected and set default timeout |
|
262 * @since ?Series60_version |
|
263 */ |
|
264 void AddExpectedEvent(TAEnhsExpectedEvent event, TInt ms); |
|
265 |
|
266 |
|
267 /** |
|
268 * Unset an event as expected |
|
269 * @since ?Series60_version |
|
270 */ |
|
271 TBool RemoveExpectedEvent(TAEnhsExpectedEvent event); |
|
272 |
|
273 |
|
274 /** |
|
275 * @since ?Series60_version |
|
276 * @param none |
|
277 * Removes all expected events |
|
278 */ |
|
279 void RemoveAllExpectedEvents(); |
|
280 |
|
281 /** |
|
282 * Verify that the event was expected, removes it from the list |
|
283 * Signal the TestScripter with the returned error code |
|
284 * @since ?Series60_version |
|
285 */ |
|
286 void ProcessEvent(TAEnhsExpectedEvent aEvent, TInt aError); |
|
287 |
|
288 /** |
|
289 * Maps a event with a descriptor with its name |
|
290 * @since ?Series60_version |
|
291 */ |
|
292 TPtrC EventName( TInt aKey ); |
|
293 |
|
294 /* |
|
295 * Test methods are listed below. |
|
296 */ |
|
297 |
|
298 /** |
|
299 * Sets a timeout different since the default |
|
300 * @since Series60_3_2 |
|
301 * @param aItem Script line containing parameters. |
|
302 * @return Symbian OS error code. |
|
303 */ |
|
304 TInt SetTimeout( CStifItemParser& aItem ); |
|
305 |
|
306 /** |
|
307 * |
|
308 * @since Series60_3_2 |
|
309 * @param aItem Script line containing parameters. |
|
310 * @return Symbian OS error code. |
|
311 */ |
|
312 TInt SetExpectedEvents( CStifItemParser& aItem ); |
|
313 |
|
314 /** |
|
315 * |
|
316 * @since Series60_3_2 |
|
317 * @param aItem Script line containing parameters. |
|
318 * @return Symbian OS error code. |
|
319 */ |
|
320 TInt SetAllowedPanic( CStifItemParser& aItem ); |
|
321 |
|
322 /** |
|
323 * Connect to the default client to the server |
|
324 * @since ?Series60_version |
|
325 * @param aItem Script line containing parameters. |
|
326 * @return Symbian OS error code. |
|
327 */ |
|
328 |
|
329 TInt ExampleL( CStifItemParser& aItem ); |
|
330 TInt CreateFactory( CStifItemParser& aItem ); |
|
331 TInt DeleteFactory( CStifItemParser& aItem ); |
|
332 TInt CreateSourceControl( CStifItemParser& aItem ); |
|
333 TInt DeleteSource(CStifItemParser& /*aItem*/); |
|
334 TInt CloseSource(CStifItemParser& /*aItem*/); |
|
335 TInt CreateSink(CStifItemParser& aItem); |
|
336 TInt StreamAddSink(CStifItemParser& /*aItem*/); |
|
337 TInt StreamRemoveSink(CStifItemParser& /*aItem*/); |
|
338 TInt DeleteSink(CStifItemParser& aItem); |
|
339 TInt CreateEffect(CStifItemParser& aItem); |
|
340 TInt DeleteEffect(CStifItemParser& aItem); |
|
341 TInt RemoveEffect(CStifItemParser& aItem); |
|
342 TInt CreateStream(CStifItemParser& aItem); |
|
343 TInt DeleteStream(CStifItemParser& aItem); |
|
344 TInt StreamAddEffect(CStifItemParser& aItem); |
|
345 TInt StreamAddSource(CStifItemParser& aItem); |
|
346 TInt StreamRemoveSource(CStifItemParser& aItem); |
|
347 TInt AddObserver(CStifItemParser& aItem); |
|
348 TInt RemoveObserver(CStifItemParser& aItem); |
|
349 TInt FileSOpen(CStifItemParser& aItem); |
|
350 TInt FileSGetBitRate(CStifItemParser& aItem); |
|
351 TInt FileSGetSize(CStifItemParser& aItem); |
|
352 TInt Source_GetMimeType(CStifItemParser& aItem); |
|
353 TInt Source_GetSize(CStifItemParser& aItem); |
|
354 TInt SourceClose (CStifItemParser& aItem); |
|
355 TInt FileGenOpen(CStifItemParser& aItem); |
|
356 TInt DescSOpen(CStifItemParser& aItem); |
|
357 TInt DBSOpen(CStifItemParser& aItem); |
|
358 TInt DBSClose(CStifItemParser& aItem); |
|
359 TInt DBSSetSize(CStifItemParser& aItem); |
|
360 TInt DBSMinBufSize(CStifItemParser& aItem); |
|
361 void WriteLoop(CStifItemParser& aItem); |
|
362 TInt GetBuffConfig(CStifItemParser& aItem); |
|
363 TInt DBSSetBuffConfig(CStifItemParser& aItem); |
|
364 TInt DBSGetBuffType(CStifItemParser& aItem); |
|
365 TInt DBSGetInterface(CStifItemParser& aItem); |
|
366 TInt DBSGetBitRate(CStifItemParser& aItem); |
|
367 TInt DBSGetSize(CStifItemParser& aItem); |
|
368 TInt DSGetSize(CStifItemParser& aItem); |
|
369 TInt StreamOpen(CStifItemParser& aItem); |
|
370 TInt StreamClose(CStifItemParser& /*aItem*/); |
|
371 TInt StreamPrime(CStifItemParser& /*aItem*/); |
|
372 TInt StreamStart(CStifItemParser& /*aItem*/); |
|
373 TInt StreamPause(CStifItemParser& /*aItem*/); |
|
374 TInt StreamStop(CStifItemParser& /*aItem*/); |
|
375 TInt Stream_GetDuration(CStifItemParser& /*aItem*/); |
|
376 TInt Stream_SetPriority(CStifItemParser& /*aItem*/); |
|
377 TInt StreamGetSSL(CStifItemParser& aItem); |
|
378 TInt StreamGetRSSL(CStifItemParser& aItem); |
|
379 TInt EqualizerBandLevel(CStifItemParser& aItem); |
|
380 TInt EqualizerNumBands (CStifItemParser& aItem); |
|
381 TInt EqualizerBandWidth (CStifItemParser& aItem); |
|
382 TInt EqualizerCenterFrequency (CStifItemParser& aItem); |
|
383 TInt EqualizerCrossoverFrequency (CStifItemParser& aItem); |
|
384 TInt EqualizerDbLevelLimits (CStifItemParser& aItem); |
|
385 TInt EqualizerSetBandLevel (CStifItemParser& aItem); |
|
386 TInt StreamGetStateL(CStifItemParser& aItem); |
|
387 TInt StreamGetCIL(CStifItemParser& aItem); |
|
388 TInt StreamGetPositionL(CStifItemParser& aItem); |
|
389 TInt StreamSetPositionL(CStifItemParser& aItem); |
|
390 TInt StreamCustomInterface(CStifItemParser& aItem); |
|
391 TInt ControlTypeL(CStifItemParser& aItem); |
|
392 TInt ControlControlTypeL(CStifItemParser& aItem); |
|
393 TInt DescSGetBitRate(CStifItemParser& aItem); |
|
394 TInt CreateDataBuffer(CStifItemParser& aItem); |
|
395 TInt DeleteDataBuffer(CStifItemParser& aItem); |
|
396 TInt VolGetMinVolume(CStifItemParser& aItem); |
|
397 TInt VolGetMaxVolume(CStifItemParser& aItem); |
|
398 TInt VolGetVolume(CStifItemParser& aItem); |
|
399 TInt VolGetDefaultVolume(CStifItemParser& aItem); |
|
400 TInt VolSetVolume(CStifItemParser& aItem); |
|
401 TInt BalGetBalance(CStifItemParser& aItem); |
|
402 TInt BalSetBalance(CStifItemParser& aItem); |
|
403 TInt EffectApply(CStifItemParser& aItem); |
|
404 TInt VolSetVolumeRamp(CStifItemParser& aItem); |
|
405 |
|
406 |
|
407 TInt ReadFromFileAndWriteToStream(TInt index); |
|
408 |
|
409 TInt DRMGetType( CStifItemParser& aItem ); |
|
410 TInt DRMSetType( CStifItemParser& aItem); |
|
411 TInt DRMGetAllowedOutputDeviceCount( CStifItemParser& aItem ); |
|
412 TInt DRMGetAllowedOutputDevice(CStifItemParser& aItem ); |
|
413 TInt DRMAppendAllowedOutputDevice(CStifItemParser& aItem ); |
|
414 TInt DRMRemoveAllowedOutputDevice(CStifItemParser& aItem ); |
|
415 TInt DRMReset(); |
|
416 TInt DRMCommit(CStifItemParser& aItem); |
|
417 |
|
418 TInt CreateSeekableData(CStifItemParser& aItem); |
|
419 |
|
420 TInt GeneralGen_StartProgDLL(CStifItemParser& aItem); |
|
421 TInt PDLSOpenL(CStifItemParser& aItem); |
|
422 TInt PDLSGetCurFileSizeL(CStifItemParser& aItem); |
|
423 TInt PDLSGetExpFileSizeL(CStifItemParser& aItem); |
|
424 TInt PDLSGetDLStatusL(CStifItemParser& aItem); |
|
425 TInt PDLSIsDLCompleteL(CStifItemParser& aItem); |
|
426 TInt PDLSGetPerDownloadedL(CStifItemParser& aItem); |
|
427 TInt PDLSGetPerBufferedL(CStifItemParser& aItem); |
|
428 TInt PDLSGetDLRateL(CStifItemParser& aItem); |
|
429 TInt PDLSGetBitRateL(CStifItemParser& aItem); |
|
430 TInt PDLSResumeDownloadL(CStifItemParser& aItem); |
|
431 TInt PDLSMoveFileL(CStifItemParser& aItem); |
|
432 TInt PDLSGetSize(CStifItemParser& aItem); |
|
433 TInt PDLSCancelDownloadL(CStifItemParser& aItem); |
|
434 |
|
435 TInt AudioEffectIsEnabled (CStifItemParser& aItem); |
|
436 |
|
437 TInt HandleAudioEffectEnableL(CStifItemParser& aItem); |
|
438 TInt HandleAudioEffectDisableL(CStifItemParser& aItem); |
|
439 TInt AudioEffectIsEnforced (CStifItemParser& aItem); |
|
440 |
|
441 TInt AudioEffectUid (CStifItemParser& aItem); |
|
442 TInt AudioEffectHaveUpdateRights (CStifItemParser& aItem); |
|
443 TInt AudioEffectEnforce (CStifItemParser& aItem); |
|
444 |
|
445 TInt HandleReverbDecayHFRatioL(CStifItemParser& aItem); |
|
446 TInt HandleReverbDecayHFRatioRangeL(CStifItemParser& aItem); |
|
447 TInt HandleReverbDecayTimeL(CStifItemParser& aItem); |
|
448 TInt HandleReverbDecayTimeRangeL(CStifItemParser& aItem); |
|
449 TInt HandleReverbDensityL(CStifItemParser& aItem); |
|
450 TInt HandleReverbDiffusionL(CStifItemParser& aItem); |
|
451 TInt HandleReverbReflectionsDelayL(CStifItemParser& aItem); |
|
452 TInt HandleReverbReflectionsDelayMaxL(CStifItemParser& aItem); |
|
453 TInt HandleReverbReflectionsLevelL(CStifItemParser& aItem); |
|
454 TInt HandleReverbReflectionLevelRangeL(CStifItemParser& aItem); |
|
455 TInt HandleReverbReverbDelayL(CStifItemParser& aItem); |
|
456 TInt HandleReverbReverbDelayMaxL(CStifItemParser& aItem); |
|
457 TInt HandleReverbReverbLevelL(CStifItemParser& aItem); |
|
458 TInt HandleReverbReverbLevelRangeL(CStifItemParser& aItem); |
|
459 TInt HandleReverbRoomHFLevelL(CStifItemParser& aItem); |
|
460 TInt HandleReverbRoomHFLevelRangeL(CStifItemParser& aItem); |
|
461 TInt HandleReverbRoomLevelL(CStifItemParser& aItem); |
|
462 TInt HandleReverbRoomLevelRangeL(CStifItemParser& aItem); |
|
463 TInt HandleReverbSetDecayHFRatioL(CStifItemParser& aItem); |
|
464 TInt HandleReverbSetDecayTimeL(CStifItemParser& aItem); |
|
465 TInt HandleReverbSetDensityL(CStifItemParser& aItem); |
|
466 TInt HandleReverbSetDiffusionL(CStifItemParser& aItem); |
|
467 TInt HandleReverbSetReflectionsDelayL(CStifItemParser& aItem); |
|
468 TInt HandleReverbSetReflectionsLevelL(CStifItemParser& aItem); |
|
469 TInt HandleReverbSetReverbDelayL(CStifItemParser& aItem); |
|
470 TInt HandleReverbSetReverbLevelL(CStifItemParser& aItem); |
|
471 TInt HandleReverbSetRoomHFLevelL(CStifItemParser& aItem); |
|
472 TInt HandleReverbSetRoomLevelL(CStifItemParser& aItem); |
|
473 TInt HandleReverbDelayMaxL(CStifItemParser& aItem); |
|
474 |
|
475 |
|
476 TInt HandleSWIsContinuousLevelSupportedL(CStifItemParser& aItem); |
|
477 TInt HandleSWSetStereoWideningLevelL(CStifItemParser& aItem); |
|
478 TInt HandleSWStereoWideningLevelL(CStifItemParser& aItem); |
|
479 |
|
480 TInt HandleRLLevelRangeL(CStifItemParser& aItem); |
|
481 TInt HandleRLSetRoomLevelL(CStifItemParser& aItem); |
|
482 TInt HandleRLLevelL(CStifItemParser& aItem); |
|
483 |
|
484 TInt HandleDADistanceAttenuationL(CStifItemParser& aItem); |
|
485 TInt HandleDARollOffFactorMaxL(CStifItemParser& aItem); |
|
486 TInt HandleDARoomRollOffFactorMaxL(CStifItemParser& aItem); |
|
487 |
|
488 TInt HandleSLLocationCartesianL(CStifItemParser& aItem); |
|
489 TInt HandleSLLocationSphericalL(CStifItemParser& aItem); |
|
490 TInt HandleSLSetLocationCartesianL(CStifItemParser& aItem); |
|
491 TInt HandleSLSetLocationSphericalL(CStifItemParser& aItem); |
|
492 TInt LO_OrientationL (CStifItemParser& aItem); |
|
493 TInt LO_OrientationVectorsL (CStifItemParser& aItem); |
|
494 |
|
495 TInt HandleControlTypeL (CStifItemParser& aItem); |
|
496 TInt HandleControlControlTypeL (CStifItemParser& aItem); |
|
497 |
|
498 |
|
499 TInt HandleLDSetSphericalVelocityL (CStifItemParser& aItem); |
|
500 TInt HandleLDSphericalVelocityL (CStifItemParser& aItem); |
|
501 |
|
502 TInt HandleSDSetFactorL(CStifItemParser& aItem); |
|
503 TInt HandleSDSetSphericalVelocityL(CStifItemParser& aItem); |
|
504 TInt HandleSDSphericalVelocityL(CStifItemParser& aItem); |
|
505 TInt HandleSDCartesianVelocityL(CStifItemParser& aItem); |
|
506 TInt HandleSDFactorL(CStifItemParser& aItem); |
|
507 TInt HandleSDFactorMaxL(CStifItemParser& aItem); |
|
508 TInt HandleSDSetCartesianVelocityL(CStifItemParser& aItem); |
|
509 |
|
510 TInt AttachReverb(CStifItemParser& /*aItem*/); |
|
511 TInt DetachReverb(CStifItemParser& /*aItem*/); |
|
512 |
|
513 |
|
514 public: // Data |
|
515 // ?one_line_short_description_of_data |
|
516 //?data_declaration; |
|
517 |
|
518 protected: // Data |
|
519 // ?one_line_short_description_of_data |
|
520 //?data_declaration; |
|
521 |
|
522 private: // Data |
|
523 |
|
524 // reference to TestModuleIf |
|
525 CTestModuleIf& iTestModuleIf; |
|
526 |
|
527 //CMMFDevSound* iDevSound; |
|
528 //CMdaAudioOutputStream* iAudioOutputStream; |
|
529 |
|
530 //CAacDecoderConfig* iAacDecoder; |
|
531 |
|
532 // Active object with a timer to timeout the test case |
|
533 CSimpleTimeout * iTimeoutController; |
|
534 |
|
535 // Indicates if the test case use a normal exit reason |
|
536 TBool iNormalExitReason; |
|
537 |
|
538 // List of expected events |
|
539 RArray<TAEnhsExpectedEvent> iExpectedEvents; |
|
540 |
|
541 // List of notification event (by the callback) |
|
542 //RArray<TAEnhsExpectedEvent> iOcurredEvents; |
|
543 |
|
544 //RArray<TUint> iSupportedBitrates; |
|
545 |
|
546 |
|
547 CMultimediaFactory* iFactory; |
|
548 MStreamControl* iMStreamControl; |
|
549 MDataBufferSource* iMDataBufferSource; |
|
550 MDescriptorSource* iMDescriptorSource; |
|
551 MSinkControl* iMAudioSink; |
|
552 |
|
553 MFileSource* iMFileSource; |
|
554 MSourceControl* iSourceControl; |
|
555 RPointerArray<MDataBuffer> iBuffers; |
|
556 RArray<TInt> iAvailable; |
|
557 MProgDLSource* iMProgDLSource; |
|
558 MEqualizerControl* iMEqualizerControl; |
|
559 MBassBoostControl* iMBassBoostControl; |
|
560 MVolumeControl* iMVolumeControl; |
|
561 MBalanceControl* iMBalanceControl; |
|
562 MEffectControl* iEffectControl; |
|
563 MReverbControl* iMReverbControl; |
|
564 |
|
565 MStereoWideningControl* iMStereoWideningControl; |
|
566 MLoudnessControl* iMLoudnessControl; |
|
567 MRoomLevelControl* iMRoomLevelControl; |
|
568 MDistanceAttenuationControl* iMDistanceAttenuationControl; |
|
569 |
|
570 MListenerLocationControl* iMListenerLocationControl; |
|
571 MSourceLocationControl* iMSourceLocationControl; |
|
572 |
|
573 MListenerDopplerControl* iMListenerDopplerControl; |
|
574 MSourceDopplerControl* iMSourceDopplerControl; |
|
575 |
|
576 MSourceOrientationControl* iMSourceOrientationControl; |
|
577 MListenerOrientationControl* iMListenerOrientationControl; |
|
578 |
|
579 HBufC* iFileName; |
|
580 HBufC8* iMimeType; |
|
581 RFs iFs; |
|
582 RFile iFile; |
|
583 /*****************************/ |
|
584 //CF32File* iF32File; |
|
585 /*****************************/ |
|
586 HBufC8* iDescData; |
|
587 CDRMConfigIntfc* iDRMConfigIntfc; |
|
588 //CDataSourceConfigIntfcImpl* iDataSourceConfigIntfcImpl; |
|
589 TBool iIsEOFReached; |
|
590 TBool iAutoWriteBuffer; |
|
591 |
|
592 TInt iBytesReadFromFile; |
|
593 TInt iFileSizeInBytes; |
|
594 |
|
595 TInt iAllowedDevice; |
|
596 |
|
597 // Url used to Open the PDL |
|
598 HBufC8* iUrlName; |
|
599 // Download Manager instance to which we connect |
|
600 RHttpDownloadMgrApiExt iDownloadMgr; |
|
601 // Whether the DMgr is connected or not |
|
602 TBool iDMgrConnected; |
|
603 // Download for which we connect |
|
604 RHttpDownload* iDownload; |
|
605 // Current Download ID |
|
606 TInt32 iDownloadId; |
|
607 // Temp FileName |
|
608 HBufC* iAccessPtName; |
|
609 |
|
610 |
|
611 CActiveSchedulerWait* iActive; |
|
612 // ?one_line_short_description_of_data |
|
613 //?data_declaration; |
|
614 |
|
615 // Reserved pointer for future extension |
|
616 //TAny* iReserved; |
|
617 |
|
618 public: // Friend classes |
|
619 //?friend_class_declaration; |
|
620 protected: // Friend classes |
|
621 //?friend_class_declaration; |
|
622 private: // Friend classes |
|
623 //?friend_class_declaration; |
|
624 |
|
625 }; |
|
626 #endif // CEnhanMediaTestClass_H |
|
627 |
|
628 // End of File |