|
1 /* |
|
2 * Copyright (c) 2006 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: audioequalizerutility stub for testing mpequalizerframeworkwrapper |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CAUDIOEQUALIZERUTILITY_H |
|
20 #define CAUDIOEQUALIZERUTILITY_H |
|
21 |
|
22 //#include <e32base.h> |
|
23 //#include <e32svr.h> |
|
24 #include <AudioEqualizerBase.h> |
|
25 //#include <centralrepository.h> |
|
26 #include <AudioEqualizerUtilityData.h> |
|
27 |
|
28 //#include <badesca.h> |
|
29 |
|
30 |
|
31 //Forward declarations |
|
32 class CMdaAudioPlayerUtility; |
|
33 |
|
34 class CAudioEqualizerUtility : public CBase |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 |
|
38 /** |
|
39 * Factory function for creating the audio equalizer utility object. |
|
40 * @since 3.0 |
|
41 * @param aUtility A reference to a audio player utility |
|
42 * @return pointer to CAudioEqualizerUtility object |
|
43 */ |
|
44 static CAudioEqualizerUtility* NewL(CMdaAudioPlayerUtility& aUtility); |
|
45 |
|
46 /** |
|
47 * Destructor. |
|
48 */ |
|
49 virtual ~CAudioEqualizerUtility(); |
|
50 |
|
51 /** |
|
52 * Retrieves a Preset with the given index from the Central Repository |
|
53 * @since 3.0 |
|
54 * @param aPresetIndex Index of the Preset in the Array |
|
55 */ |
|
56 const TDesC& GetPresetL(TInt aPresetIndex); |
|
57 |
|
58 /** |
|
59 * Get all the Presets defined in the Central Repository |
|
60 * @since 3.0 |
|
61 * @return Array of all Presets. |
|
62 */ |
|
63 TArray<TEfAudioEqualizerUtilityPreset> Presets(); |
|
64 |
|
65 private: |
|
66 |
|
67 /** |
|
68 * C++ default constructor. |
|
69 */ |
|
70 CAudioEqualizerUtility(); |
|
71 |
|
72 /** |
|
73 * By default Symbian 2nd phase constructor is private. |
|
74 */ |
|
75 |
|
76 /** |
|
77 * Second Phase Costructor for CMdaAudioPlayerUtility |
|
78 * @since 3.0 |
|
79 * @param aUtility CMdaAudioPlayerUtility Referece |
|
80 */ |
|
81 void ConstructL(CMdaAudioPlayerUtility& aUtility); |
|
82 |
|
83 |
|
84 /** |
|
85 * Function of Updating the Preset Array for the User |
|
86 * @since 3.0 |
|
87 * @param aUtility MCustomInterface Referece |
|
88 */ |
|
89 void UpdatePresetArray(RArray<TEfAudioEqualizerUtilityPreset>& aPresetArray); |
|
90 |
|
91 private: // Data |
|
92 |
|
93 // Array for Storing the Current State of the Repository |
|
94 // which has been compacted after the transaction |
|
95 // with the Central Repository |
|
96 RArray<TEfAudioEqualizerUtilityPreset> iPresetArray; |
|
97 |
|
98 }; |
|
99 |
|
100 #endif // CAUDIOEQUALIZERUTILITY_H |
|
101 |