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: #ifndef GLOBALEFFECTTEST_H sl@0: #define GLOBALEFFECTTEST_H sl@0: sl@0: #include sl@0: sl@0: #include sl@0: sl@0: class CTestGlobalEffect; // forward sl@0: sl@0: class RGlobalEffectPrimitiveTest : public RTestStep sl@0: { sl@0: public: sl@0: static RGlobalEffectPrimitiveTest* NewL(TBool aAllocTest); sl@0: protected: sl@0: // from RTestStep; sl@0: TVerdict DoTestStepL(); sl@0: private: sl@0: RGlobalEffectPrimitiveTest(TBool aAllocTest); sl@0: sl@0: }; sl@0: sl@0: class RGlobalEffectStdTest : public RTestStep sl@0: { sl@0: public: sl@0: static RGlobalEffectStdTest* NewL(TBool aAllocTest); sl@0: protected: sl@0: // from RTestStep; sl@0: TVerdict DoTestStepL(); sl@0: private: sl@0: RGlobalEffectStdTest(TBool aAllocTest); sl@0: sl@0: }; sl@0: sl@0: class RGlobalEffectMainTest : public RTestStep sl@0: { sl@0: public: sl@0: static RGlobalEffectMainTest* NewL(TBool aAllocTest); sl@0: protected: sl@0: // from RTestStep; sl@0: TVerdict DoTestStepL(); sl@0: private: sl@0: RGlobalEffectMainTest(TBool aAllocTest); sl@0: sl@0: }; sl@0: sl@0: class RGlobalEffectCallbackTest : public RTestStep, sl@0: public MMmfGlobalAudioEffectObserver sl@0: { sl@0: public: sl@0: static RGlobalEffectCallbackTest* NewL(TBool aAllocTest); sl@0: protected: sl@0: // from RTestStep; sl@0: TVerdict DoTestStepL(); sl@0: sl@0: // from MMmfGlobalAudioEffectObserver sl@0: void GAEEventNotificationL(CMmfGlobalAudioEffect* aEffect, TUid aEventUid, const TDesC8& aParam); sl@0: sl@0: private: sl@0: RGlobalEffectCallbackTest(TBool aAllocTest); sl@0: sl@0: CTestGlobalEffect* iEffect; // not owned sl@0: TBool iCalledBack; sl@0: TVerdict iResult; sl@0: }; sl@0: sl@0: #endif // GLOBALEFFECTTEST_H