author | sl |
Tue, 10 Jun 2014 14:32:02 +0200 | |
changeset 1 | 260cb5ec6c19 |
permissions | -rw-r--r-- |
sl@0 | 1 |
/* |
sl@0 | 2 |
* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). |
sl@0 | 3 |
* All rights reserved. |
sl@0 | 4 |
* This component and the accompanying materials are made available |
sl@0 | 5 |
* under the terms of "Eclipse Public License v1.0" |
sl@0 | 6 |
* which accompanies this distribution, and is available |
sl@0 | 7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html". |
sl@0 | 8 |
* |
sl@0 | 9 |
* Initial Contributors: |
sl@0 | 10 |
* Nokia Corporation - initial contribution. |
sl@0 | 11 |
* |
sl@0 | 12 |
* Contributors: |
sl@0 | 13 |
* |
sl@0 | 14 |
* Description: This is the definition of the Audio Equalizer proxy class. |
sl@0 | 15 |
* |
sl@0 | 16 |
*/ |
sl@0 | 17 |
|
sl@0 | 18 |
|
sl@0 | 19 |
|
sl@0 | 20 |
#ifndef CTEMPAUDIOEQUALIZER_H |
sl@0 | 21 |
#define CTEMPAUDIOEQUALIZER_H |
sl@0 | 22 |
|
sl@0 | 23 |
// INCLUDES |
sl@0 | 24 |
|
sl@0 | 25 |
#include <e32base.h> |
sl@0 | 26 |
#include <AudioEqualizerBase.h> |
sl@0 | 27 |
#include <mmfcontrollerframework.h> |
sl@0 | 28 |
|
sl@0 | 29 |
/** |
sl@0 | 30 |
* This is the AudioEqualizer effect proxy class responsible for handling framework messages. |
sl@0 | 31 |
* |
sl@0 | 32 |
* @lib AudioEqualizerProxy.lib |
sl@0 | 33 |
* @since 3.0 |
sl@0 | 34 |
*/ |
sl@0 | 35 |
|
sl@0 | 36 |
class CTempAudioEqualizer : public CAudioEqualizer |
sl@0 | 37 |
|
sl@0 | 38 |
{ |
sl@0 | 39 |
public: // Constructors and destructor |
sl@0 | 40 |
|
sl@0 | 41 |
/** |
sl@0 | 42 |
* |
sl@0 | 43 |
* Factory function for creating the AudioEqualizer proxy object. |
sl@0 | 44 |
* @since 3.0 |
sl@0 | 45 |
* @param aMessageHandler reference to message handler |
sl@0 | 46 |
* @param aCustomCommand reference to custom command utility |
sl@0 | 47 |
* @return pointer to a AudioEqualizer proxy object |
sl@0 | 48 |
*/ |
sl@0 | 49 |
IMPORT_C static CTempAudioEqualizer* NewL(TInt aNumberOfBands, CAudioEqualizer* aAudioEqualizer); |
sl@0 | 50 |
/** |
sl@0 | 51 |
* |
sl@0 | 52 |
* Destructor |
sl@0 | 53 |
*/ |
sl@0 | 54 |
virtual ~CTempAudioEqualizer(); |
sl@0 | 55 |
|
sl@0 | 56 |
public: // functions from base class |
sl@0 | 57 |
|
sl@0 | 58 |
/** |
sl@0 | 59 |
* From CAudioEffect |
sl@0 | 60 |
* Apply effect settings |
sl@0 | 61 |
* @since 3.0 |
sl@0 | 62 |
*/ |
sl@0 | 63 |
IMPORT_C virtual void ApplyL(); |
sl@0 | 64 |
|
sl@0 | 65 |
|
sl@0 | 66 |
/** |
sl@0 | 67 |
* From CAudioEffect |
sl@0 | 68 |
* check enable flag |
sl@0 | 69 |
* @since 3.0 |
sl@0 | 70 |
*/ |
sl@0 | 71 |
IMPORT_C virtual TBool IsEnabled() const; |
sl@0 | 72 |
|
sl@0 | 73 |
/** |
sl@0 | 74 |
* Disable the effect |
sl@0 | 75 |
* @since 3.0 |
sl@0 | 76 |
*/ |
sl@0 | 77 |
IMPORT_C virtual void DisableL(); |
sl@0 | 78 |
|
sl@0 | 79 |
/** |
sl@0 | 80 |
* Check if the effect is enforced. |
sl@0 | 81 |
* @since 3.0 |
sl@0 | 82 |
* @return ETrue if the effect is enforced, EFalse if the effect isn ot enforced. |
sl@0 | 83 |
*/ |
sl@0 | 84 |
IMPORT_C virtual TBool IsEnforced() const; |
sl@0 | 85 |
|
sl@0 | 86 |
/** |
sl@0 | 87 |
* Enable the effect |
sl@0 | 88 |
* @since 3.0 |
sl@0 | 89 |
*/ |
sl@0 | 90 |
IMPORT_C virtual void EnableL(); |
sl@0 | 91 |
|
sl@0 | 92 |
/** |
sl@0 | 93 |
* Enforce the effect. |
sl@0 | 94 |
* @since 3.0 |
sl@0 | 95 |
* @param aEnforced Indicate the effect is to be enforced or not. ETrue = Enforced. |
sl@0 | 96 |
*/ |
sl@0 | 97 |
IMPORT_C virtual void EnforceL( TBool aEnforced ); |
sl@0 | 98 |
|
sl@0 | 99 |
/** |
sl@0 | 100 |
* Check if this effect object currently has update rights. |
sl@0 | 101 |
* A client can lose update rights in some hardware platforms where there are a limited |
sl@0 | 102 |
* number of instances of an effect that can exist at the same time. When an effect instance |
sl@0 | 103 |
* has lost update rights the user can still change settings, but any calls to Apply the |
sl@0 | 104 |
* settings will be deferred until update rights are regained. |
sl@0 | 105 |
* @since 3.0 |
sl@0 | 106 |
* @return ETrue if this object currently has rights to update the settings of this effect, |
sl@0 | 107 |
* EFalse otherwise. |
sl@0 | 108 |
*/ |
sl@0 | 109 |
IMPORT_C virtual TBool HaveUpdateRights() const; |
sl@0 | 110 |
|
sl@0 | 111 |
|
sl@0 | 112 |
private: |
sl@0 | 113 |
|
sl@0 | 114 |
/** |
sl@0 | 115 |
* Private C++ constructor for this class. |
sl@0 | 116 |
* @since 3.0 |
sl@0 | 117 |
* @param aMessageHandler reference to message handler |
sl@0 | 118 |
* @param aCustomCommand reference to custom command utility |
sl@0 | 119 |
* @return - |
sl@0 | 120 |
*/ |
sl@0 | 121 |
CTempAudioEqualizer(); |
sl@0 | 122 |
|
sl@0 | 123 |
/** |
sl@0 | 124 |
* Second phase constructor for this class. |
sl@0 | 125 |
* @since 3.0 |
sl@0 | 126 |
* @return - |
sl@0 | 127 |
*/ |
sl@0 | 128 |
void ConstructL(TInt aNumberOfBands,CAudioEqualizer* aAudioEqualizer); |
sl@0 | 129 |
|
sl@0 | 130 |
private: |
sl@0 | 131 |
CAudioEqualizer* iAudioEqualizer; |
sl@0 | 132 |
TInt iNumberOfBands; |
sl@0 | 133 |
}; |
sl@0 | 134 |
|
sl@0 | 135 |
#endif // of CTEMPAUDIOEQUALIZER_H |
sl@0 | 136 |
|
sl@0 | 137 |
// End of File |