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: Definition of the Audio Effect Observer class. sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: #ifndef AUDIOEFFECTOBSERVER_H sl@0: #define AUDIOEFFECTOBSERVER_H sl@0: sl@0: // CLASS DECLARATION sl@0: sl@0: sl@0: /** sl@0: * Interface class to be implemented by objects that are interested in receiving events from sl@0: * audio effect. sl@0: * sl@0: * @since 3.0 sl@0: */ sl@0: class MAudioEffectObserver sl@0: { sl@0: public: sl@0: sl@0: static const TUint KEnabled = 1; // The effect is enabled. sl@0: static const TUint KDisabled = 2; // The effect is disabled sl@0: static const TUint KEnforced = 3; // The effect is enforced sl@0: static const TUint KNotEnforced = 4; // The effect is not enforced sl@0: static const TUint KLostUpdateRights = 5; // The effect has lost update rights sl@0: static const TUint KGainedUpdateRights = 6; // The effect has gained update rights sl@0: static const TUint KSpecificEffectBase = 20; // Offset to specific effect events sl@0: sl@0: /** sl@0: * Invoked by the audio effect object when the status of the audio effect has changed. sl@0: * @since 3.0 sl@0: * @param aObservedEffect The effect that changed sl@0: * @param aEvent The specific event Id of the effect that changed. sl@0: */ sl@0: virtual void EffectChanged( const CAudioEffect* aObservedEffect, TUint8 aEvent ) = 0; sl@0: sl@0: }; sl@0: sl@0: #endif // AUDIOEFFECTOBSERVER_H sl@0: sl@0: // End of File