sl@0: sl@0: // GlobalEffectTest.cpp sl@0: sl@0: // Copyright (c) 2005-2009 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: sl@0: // sl@0: sl@0: #include "TestEffect.h" sl@0: #include "TestGlobalEffect.hrh" sl@0: #include "TestEffectCustom.h" sl@0: sl@0: const TUid KUidTestGlblPlugin = {KUidTestGlblPluginDefine}; sl@0: const TUid KUidTestGlbCustomCall = {KUidTestGlbCustomCallDefine}; sl@0: sl@0: // sl@0: // TestGlobalEffect - note normally this will be in a separate DLL to the calling code, sl@0: // but seems no point in doing that for this test code sl@0: // sl@0: sl@0: CTestGlobalEffect* CTestGlobalEffect::NewL(MMmfGlobalAudioEffectObserver* aObserver) sl@0: { sl@0: CTestGlobalEffect* self = new (ELeave) CTestGlobalEffect; sl@0: CleanupStack::PushL(self); sl@0: self->ConstructL(aObserver); sl@0: CleanupStack::Pop(self); sl@0: return self; sl@0: } sl@0: sl@0: CTestGlobalEffect::CTestGlobalEffect() sl@0: { sl@0: // empty constructor sl@0: } sl@0: sl@0: void CTestGlobalEffect::ConstructL(MMmfGlobalAudioEffectObserver* aObserver) sl@0: { sl@0: BaseConstructL(KUidTestGlblPlugin, aObserver); sl@0: User::LeaveIfError(CreateCustomInterface(KUidTestGlbCustomCall)); sl@0: } sl@0: sl@0: void CTestGlobalEffect::SetActive(TBool aValue) sl@0: { sl@0: MTestEffectCustomIf* custIf = sl@0: static_cast(CustomInterface(KUidTestGlbCustomCall)); sl@0: custIf->SetActive(aValue); sl@0: } sl@0: sl@0: void CTestGlobalEffect::GenCallbackL() sl@0: { sl@0: MTestEffectCustomIf* custIf = sl@0: static_cast(CustomInterface(KUidTestGlbCustomCall)); sl@0: custIf->GenCallbackL(); sl@0: } sl@0: