os/mm/devsoundextensions/effectspresets/StereoWideningUtility/src/TempStereoWidening.h
Update contrib.
2 * Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
14 * Description: This is the definition of the Audio StereoWidening proxy class.
20 #ifndef CTEMPSTEREOWIDENING_H
21 #define CTEMPSTEREOWIDENING_H
26 #include <StereoWideningBase.h>
27 #include <mmfcontrollerframework.h>
30 * This is the StereoWidening effect proxy class responsible for handling framework messages.
32 * @lib StereoWideningProxy.lib
36 class CTempStereoWidening : public CStereoWidening
39 public: // Constructors and destructor
43 * Factory function for creating the StereoWidening proxy object.
45 * @param aMessageHandler reference to message handler
46 * @param aCustomCommand reference to custom command utility
47 * @return pointer to a StereoWidening proxy object
49 IMPORT_C static CTempStereoWidening* NewL(TInt aLevel, CStereoWidening* aStereoWidening);
54 virtual ~CTempStereoWidening();
56 public: // functions from base class
60 * Apply effect settings
63 IMPORT_C virtual void ApplyL();
70 IMPORT_C virtual TBool IsEnabled() const;
76 IMPORT_C virtual void DisableL();
79 * Check if the effect is enforced.
81 * @return ETrue if the effect is enforced, EFalse if the effect isn ot enforced.
83 IMPORT_C virtual TBool IsEnforced() const;
89 IMPORT_C virtual void EnableL();
94 * @param aEnforced Indicate the effect is to be enforced or not. ETrue = Enforced.
96 IMPORT_C virtual void EnforceL( TBool aEnforced );
99 * Check if this effect object currently has update rights.
100 * A client can lose update rights in some hardware platforms where there are a limited
101 * number of instances of an effect that can exist at the same time. When an effect instance
102 * has lost update rights the user can still change settings, but any calls to Apply the
103 * settings will be deferred until update rights are regained.
105 * @return ETrue if this object currently has rights to update the settings of this effect,
108 IMPORT_C virtual TBool HaveUpdateRights() const;
113 * Private C++ constructor for this class.
115 * @param aMessageHandler reference to message handler
116 * @param aCustomCommand reference to custom command utility
119 CTempStereoWidening();
122 * Second phase constructor for this class.
126 void ConstructL(TInt aLevel,CStereoWidening* aStereoWidening);
129 CStereoWidening* iStereoWidening;
132 #endif // of CTEMPSTEREOWIDENING_H