diff -r 4e84c994a771 -r 82baf59ce8dd mpviewplugins/mpsettingsviewplugin/tsrc/unittest_mpmpxasframeworkwrapper/stub/src/mpxaudioeffectproperties.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mpviewplugins/mpsettingsviewplugin/tsrc/unittest_mpmpxasframeworkwrapper/stub/src/mpxaudioeffectproperties.cpp Fri Apr 16 14:56:30 2010 +0300 @@ -0,0 +1,91 @@ +/* +* Copyright (c) 2006 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: audio effect properties stub for testing mpmpxasframeworkwrapper +* +*/ + +#include +#include +#include +#include +#include "stub/inc/mpxaudioeffectproperties.h" + + +/*! + Stub function. +*/ +CMPXAudioEffectProperties::CMPXAudioEffectProperties():iBalance(0), + iLoadFromFile(EFalse), + iSaveToFile(EFalse), + iLeave(EFalse) +{ +} + +/*! + Stub function. +*/ +CMPXAudioEffectProperties::~CMPXAudioEffectProperties() +{ +} + +/*! + Stub function. +*/ +TInt CMPXAudioEffectProperties::Balance() +{ + return iBalance; +} + +/*! + Stub function. +*/ +void CMPXAudioEffectProperties::SetBalance(TInt aBalance) +{ + iBalance = aBalance; +} + +/*! + Stub function. +*/ +void CMPXAudioEffectProperties::Reset() +{ + MPX_DEBUG1("CMPXAudioEffectProperties::Reset"); + iBalance = 0; +} + +/*! + Stub function. +*/ +void CMPXAudioEffectProperties::SaveToFileL() +{ + MPX_DEBUG1("CMPXAudioEffectProperties::SaveToFileL <---"); + iSaveToFile = ETrue; + MPX_DEBUG1("CMPXAudioEffectProperties::SaveToFileL --->"); +} + +/*! + Stub function. +*/ +void CMPXAudioEffectProperties::LoadFromFileL() +{ + MPX_DEBUG1("CMPXAudioEffectProperties::LoadFromFileL <---"); + if(iLeave){ + User::Leave(KErrNotFound); + }else{ + iLoadFromFile = ETrue; + } + MPX_DEBUG1("CMPXAudioEffectProperties::LoadFromFileL --->"); +} + +//end of file