sl@0: /* sl@0: * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: This is the definition of the Audio Equalizer proxy class. sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #ifndef CTEMPAUDIOEQUALIZER_H sl@0: #define CTEMPAUDIOEQUALIZER_H sl@0: sl@0: // INCLUDES sl@0: sl@0: #include sl@0: #include sl@0: #include sl@0: sl@0: /** sl@0: * This is the AudioEqualizer effect proxy class responsible for handling framework messages. sl@0: * sl@0: * @lib AudioEqualizerProxy.lib sl@0: * @since 3.0 sl@0: */ sl@0: sl@0: class CTempAudioEqualizer : public CAudioEqualizer sl@0: sl@0: { sl@0: public: // Constructors and destructor sl@0: sl@0: /** sl@0: * sl@0: * Factory function for creating the AudioEqualizer proxy object. sl@0: * @since 3.0 sl@0: * @param aMessageHandler reference to message handler sl@0: * @param aCustomCommand reference to custom command utility sl@0: * @return pointer to a AudioEqualizer proxy object sl@0: */ sl@0: IMPORT_C static CTempAudioEqualizer* NewL(TInt aNumberOfBands, CAudioEqualizer* aAudioEqualizer); sl@0: /** sl@0: * sl@0: * Destructor sl@0: */ sl@0: virtual ~CTempAudioEqualizer(); sl@0: sl@0: public: // functions from base class sl@0: sl@0: /** sl@0: * From CAudioEffect sl@0: * Apply effect settings sl@0: * @since 3.0 sl@0: */ sl@0: IMPORT_C virtual void ApplyL(); sl@0: sl@0: sl@0: /** sl@0: * From CAudioEffect sl@0: * check enable flag sl@0: * @since 3.0 sl@0: */ sl@0: IMPORT_C virtual TBool IsEnabled() const; sl@0: sl@0: /** sl@0: * Disable the effect sl@0: * @since 3.0 sl@0: */ sl@0: IMPORT_C virtual void DisableL(); sl@0: sl@0: /** sl@0: * Check if the effect is enforced. sl@0: * @since 3.0 sl@0: * @return ETrue if the effect is enforced, EFalse if the effect isn ot enforced. sl@0: */ sl@0: IMPORT_C virtual TBool IsEnforced() const; sl@0: sl@0: /** sl@0: * Enable the effect sl@0: * @since 3.0 sl@0: */ sl@0: IMPORT_C virtual void EnableL(); sl@0: sl@0: /** sl@0: * Enforce the effect. sl@0: * @since 3.0 sl@0: * @param aEnforced Indicate the effect is to be enforced or not. ETrue = Enforced. sl@0: */ sl@0: IMPORT_C virtual void EnforceL( TBool aEnforced ); sl@0: sl@0: /** sl@0: * Check if this effect object currently has update rights. sl@0: * A client can lose update rights in some hardware platforms where there are a limited sl@0: * number of instances of an effect that can exist at the same time. When an effect instance sl@0: * has lost update rights the user can still change settings, but any calls to Apply the sl@0: * settings will be deferred until update rights are regained. sl@0: * @since 3.0 sl@0: * @return ETrue if this object currently has rights to update the settings of this effect, sl@0: * EFalse otherwise. sl@0: */ sl@0: IMPORT_C virtual TBool HaveUpdateRights() const; sl@0: sl@0: sl@0: private: sl@0: sl@0: /** sl@0: * Private C++ constructor for this class. sl@0: * @since 3.0 sl@0: * @param aMessageHandler reference to message handler sl@0: * @param aCustomCommand reference to custom command utility sl@0: * @return - sl@0: */ sl@0: CTempAudioEqualizer(); sl@0: sl@0: /** sl@0: * Second phase constructor for this class. sl@0: * @since 3.0 sl@0: * @return - sl@0: */ sl@0: void ConstructL(TInt aNumberOfBands,CAudioEqualizer* aAudioEqualizer); sl@0: sl@0: private: sl@0: CAudioEqualizer* iAudioEqualizer; sl@0: TInt iNumberOfBands; sl@0: }; sl@0: sl@0: #endif // of CTEMPAUDIOEQUALIZER_H sl@0: sl@0: // End of File