|
1 // Copyright (c) 2002-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 // This file contains Test step implementations for |
|
15 // playing audio via the audio controller. |
|
16 // |
|
17 |
|
18 #if (!defined __TESTSTEP_PLAY_H__) |
|
19 #define __TESTSTEP_PLAY_H__ |
|
20 |
|
21 #include <e32std.h> |
|
22 #include <e32base.h> |
|
23 |
|
24 #include "TS_MMF_ACTRL_TestStep.h" |
|
25 |
|
26 /** |
|
27 * |
|
28 * CTestStepActrlPlay |
|
29 * This class provides a test step to play a audio clip |
|
30 * |
|
31 * @lib "TSU_MMF_ACTRL_01.lib" |
|
32 * |
|
33 * |
|
34 */ |
|
35 class CTestStepActrlPlay : public CTestStepActrl |
|
36 { |
|
37 public: |
|
38 CTestStepActrlPlay(); |
|
39 ~CTestStepActrlPlay(); |
|
40 virtual TVerdict DoTestStepL( void ); |
|
41 }; |
|
42 |
|
43 /** |
|
44 * |
|
45 * CTestStepPlayT |
|
46 * This class provides a test step to play an audio clip t times |
|
47 * |
|
48 * @lib "TSU_MMF_ACTRL_01.lib" |
|
49 * |
|
50 * |
|
51 */ |
|
52 class CTestStepPlayT : public CTestStepActrl |
|
53 { |
|
54 public: |
|
55 CTestStepPlayT( TInt aTimesToPlay ); |
|
56 virtual ~CTestStepPlayT(); |
|
57 virtual enum TVerdict DoTestStepL(); |
|
58 private: |
|
59 TInt iTimesToPlay ; |
|
60 }; |
|
61 |
|
62 /** |
|
63 * |
|
64 * CTestStepPause |
|
65 * This class provides a test step to play an audio clip t times |
|
66 * |
|
67 * @lib "TSU_MMF_ACTRL_01.lib" |
|
68 * |
|
69 * |
|
70 */ |
|
71 class CTestStepPause : public CTestStepActrl |
|
72 { |
|
73 public: |
|
74 CTestStepPause(); |
|
75 virtual ~CTestStepPause(); |
|
76 virtual enum TVerdict DoTestStepL(); |
|
77 }; |
|
78 |
|
79 /** |
|
80 * |
|
81 * CTestStepStop |
|
82 * This class provides a test step to test the stop function |
|
83 * on the Controller |
|
84 * |
|
85 * @lib "TSU_MMF_ACTRL_01.lib" |
|
86 * |
|
87 * |
|
88 */ |
|
89 class CTestStepStop : public CTestStepActrl |
|
90 { |
|
91 public: |
|
92 CTestStepStop(); |
|
93 virtual ~CTestStepStop(); |
|
94 virtual enum TVerdict DoTestStepL(); |
|
95 }; |
|
96 |
|
97 |
|
98 // forward reference |
|
99 class TConvParameters; |
|
100 |
|
101 /** |
|
102 * |
|
103 * CTestStepConvertFormat |
|
104 * This class provides a test step to test format conversion |
|
105 * |
|
106 * @lib "TSU_MMF_ACTRL_01.lib" |
|
107 * |
|
108 * |
|
109 */ |
|
110 class CTestStepConvertFormat : public CTestStepActrl |
|
111 { |
|
112 public: |
|
113 CTestStepConvertFormat( TUint aTestIndex ); |
|
114 virtual ~CTestStepConvertFormat(); |
|
115 virtual enum TVerdict DoTestStepL(); |
|
116 TVerdict DoConvertStepL( void ); |
|
117 virtual TVerdict DoTestStepPreambleL(void); |
|
118 virtual TVerdict DoTestStepPostambleL(void); |
|
119 void SetRefFileNameL( const TDesC& aPathNameAndExtn ); |
|
120 TMMFFileConfig& RefFileName(); |
|
121 TVerdict CompareFilesL(const TDesC& aFile1,const TDesC& aFile2); |
|
122 private: |
|
123 const TConvParameters *iTestParameters; |
|
124 |
|
125 TMMFFileConfig iFileConfigRef; // audio reference file |
|
126 }; |
|
127 |
|
128 /** |
|
129 * |
|
130 * CTestStepRampVolume |
|
131 * This class tests the volume Ramp |
|
132 * |
|
133 * @lib "TSU_MMF_ACTRL_01.lib" |
|
134 * |
|
135 */ |
|
136 class CTestStepRampVolume : public CTestStepActrl |
|
137 { |
|
138 public: |
|
139 CTestStepRampVolume(); |
|
140 virtual ~CTestStepRampVolume(); |
|
141 virtual enum TVerdict DoTestStepL(); |
|
142 virtual TVerdict DoTestStepPreambleL(void); |
|
143 virtual TVerdict DoTestStepPostambleL(void); |
|
144 }; |
|
145 |
|
146 |
|
147 #endif //(__TESTSTEP_PLAY_H__) |