|
35
|
1 |
/*
|
|
|
2 |
* Copyright (c) 2009 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: Wrapper for equalizer framework - private implementation.
|
|
|
15 |
*
|
|
|
16 |
*/
|
|
|
17 |
|
|
|
18 |
#ifndef MPEQUALIZERFRAMEWORKWRAPPER_P_H
|
|
|
19 |
#define MPEQUALIZERFRAMEWORKWRAPPER_P_H
|
|
|
20 |
|
|
|
21 |
// System includes
|
|
|
22 |
#include <e32base.h>
|
|
|
23 |
#include <mdaaudiosampleplayer.h>
|
|
|
24 |
|
|
|
25 |
// FORWARD DECLARATIONS
|
|
|
26 |
class CAudioEqualizerUtility;
|
|
|
27 |
|
|
|
28 |
class MpEqualizerFrameworkWrapperPrivate : public CBase,
|
|
|
29 |
public MMdaAudioPlayerCallback
|
|
|
30 |
{
|
|
|
31 |
public:
|
|
|
32 |
|
|
|
33 |
MpEqualizerFrameworkWrapperPrivate( MpEqualizerFrameworkWrapper *wrapper );
|
|
|
34 |
virtual ~MpEqualizerFrameworkWrapperPrivate();
|
|
|
35 |
|
|
|
36 |
void init();
|
|
|
37 |
int getPresetNameKey( int presetIndex );
|
|
|
38 |
int getPresetIndex( int presetNameKey );
|
|
|
39 |
QStringList presetNames();
|
|
|
40 |
|
|
|
41 |
private:
|
|
|
42 |
|
|
|
43 |
void DoInitL();
|
|
|
44 |
TInt DoGetPresetNameKeyL( const TInt presetIndex ) const;
|
|
|
45 |
void MapcInitComplete( TInt aError,
|
|
|
46 |
const TTimeIntervalMicroSeconds& aDuration );
|
|
|
47 |
void MapcPlayComplete( TInt aError );
|
|
|
48 |
|
|
|
49 |
private:
|
|
|
50 |
|
|
|
51 |
MpEqualizerFrameworkWrapper *q_ptr;
|
|
|
52 |
CMdaAudioPlayerUtility* mMdaPlayUtility;
|
|
|
53 |
CAudioEqualizerUtility* mEqualizerUtility;
|
|
|
54 |
};
|
|
|
55 |
|
|
|
56 |
#endif // MPEQUALIZERFRAMEWORKWRAPPER_P_H
|
|
|
57 |
|
|
|
58 |
//End of File
|