diff -r 0fd27995241b -r 9ac0a0a7da70 javauis/amms_qt/mmacontrol/inc.emc/cammsemcreverbenvironmentalpresetutility.h --- a/javauis/amms_qt/mmacontrol/inc.emc/cammsemcreverbenvironmentalpresetutility.h Tue May 11 16:07:20 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,108 +0,0 @@ -/* -* Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: Utility to get the preset and data -* -*/ - - -#ifndef CAMMSEMCREVERBENVIRONMENTALPRESETUTILITY_H -#define CAMMSEMCREVERBENVIRONMENTALPRESETUTILITY_H - -// INCLUDES -#include -#include "cammsemcbasemmfdevsound.h" -#include -#include - - -// CLASS DECLARATION - -/** - * Group for effect controls - * - * @since 5.1 - */ -NONSHARABLE_CLASS(CAMMSEMCReverbEnvironmentalPresetUtility) - : public CAMMSEMCBaseMMFDevSound -{ -public: // destructor - - /** - * Destructor. - */ - ~CAMMSEMCReverbEnvironmentalPresetUtility(); - -public: // New functions - - /** - * Gets the current preset. - * - * @return the current preset - */ - void GetPresetAtIndexL(TDes& aPreset ,TInt iPresetIndex); - - /** - * Sets the effect according to the given preset. - * - * @param aPreset The new preset that will be taken into use - */ - void SetPresetL(const TDesC& aPreset); - - /** - * Creates utilities that can be used to obtain CEnvironmentalReverb Utility - * and preset data . - * Does nothing if the utility already exists. - */ - virtual TInt PrepareEmptyReverbUtilitiesL(); - - /** - * Deletes Environmental utilities - * Does nothing if the utilities have already been deleted. - */ - virtual void DeleteEmptyReverbUtilities(); - /** - * Gets list of preset names available. - * @param aPresetNames Returned preset names - */ - virtual void GetPresetNamesL(CDesCArray& aPresetNames); - - CEnvironmentalReverb * GetEnvironmentalReverbAtPresetIndexL(TInt iPresetIndex); - - CMMFDevSound* MMFDevSound(); - -public: - /** - * c++ constructor. - */ - CAMMSEMCReverbEnvironmentalPresetUtility(); - /** - * 2nd phase constructor. - */ - - void ConstructL(); - -protected: // data - - // Available preset names, owned - CDesCArrayFlat* iPresetNames; - // Used to get preset names and data when the group is empty - // (there are no controls in the group, and thus, no actual - // control can be used for that purpose). - CEnvironmentalReverbUtility* iEmptyEnvironmentalReverbUtility; - -}; - -#endif // CAMMSEMCREVERBENVIRONMENTALPRESETUTILITY_H - -