williamr@2: /* williamr@2: * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). williamr@2: * All rights reserved. williamr@2: * This component and the accompanying materials are made available williamr@4: * under the terms of "Eclipse Public License v1.0" williamr@2: * which accompanies this distribution, and is available williamr@4: * at the URL "http://www.eclipse.org/legal/epl-v10.html". williamr@2: * williamr@2: * Initial Contributors: williamr@2: * Nokia Corporation - initial contribution. williamr@2: * williamr@2: * Contributors: williamr@2: * williamr@2: * Description: Definition of the Audio Effect Observer class. williamr@2: * williamr@2: */ williamr@2: williamr@2: williamr@2: williamr@2: #ifndef AUDIOEFFECTOBSERVER_H williamr@2: #define AUDIOEFFECTOBSERVER_H williamr@2: williamr@2: // CLASS DECLARATION williamr@2: williamr@2: williamr@2: /** williamr@2: * Interface class to be implemented by objects that are interested in receiving events from williamr@2: * audio effect. williamr@2: * williamr@2: * @since 3.0 williamr@2: */ williamr@2: class MAudioEffectObserver williamr@2: { williamr@2: public: williamr@2: williamr@2: static const TUint KEnabled = 1; // The effect is enabled. williamr@2: static const TUint KDisabled = 2; // The effect is disabled williamr@2: static const TUint KEnforced = 3; // The effect is enforced williamr@2: static const TUint KNotEnforced = 4; // The effect is not enforced williamr@2: static const TUint KLostUpdateRights = 5; // The effect has lost update rights williamr@2: static const TUint KGainedUpdateRights = 6; // The effect has gained update rights williamr@2: static const TUint KSpecificEffectBase = 20; // Offset to specific effect events williamr@2: williamr@2: /** williamr@2: * Invoked by the audio effect object when the status of the audio effect has changed. williamr@2: * @since 3.0 williamr@2: * @param aObservedEffect The effect that changed williamr@2: * @param aEvent The specific event Id of the effect that changed. williamr@2: */ williamr@2: virtual void EffectChanged( const CAudioEffect* aObservedEffect, TUint8 aEvent ) = 0; williamr@2: williamr@2: }; williamr@2: williamr@2: #endif // AUDIOEFFECTOBSERVER_H williamr@2: williamr@2: // End of File