First public contribution.
2 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
3 // All rights reserved.
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.
17 #ifndef TESTGLOBALEFFECTPLUGIN_H
18 #define TESTGLOBALEFFECTPLUGIN_H
20 #include <mmf/plugin/mmfglblaudioeffectplugin.h>
22 #include "../src/TestEffectCustom.h"
23 #include "PresetList.h"
25 // Test global audio effect - does nothing but supports setting, getting etc
27 class CTestEffect : public CBase,
28 public MMmfGlobalAudioImpl,
29 public MTestEffectCustomIf
32 static MMmfGlobalAudioImpl* NewL();
44 // from MMmfGlobalAudioImpl
46 TUint Capability(TBool aCurrentOnly);
47 void RequestNotificationL(TUid aEventUid);
48 TBool IsEnabled() const;
49 TBool IsActive() const;
50 void SetEnabledL(TBool aBool);
51 TUid SettingsByUidL() const;
52 void SetSettingsByUidL(TUid aPresetUid);
53 HBufC8* SettingsByDesL() const;
54 void SetSettingsByDesL(const TDesC8& aParam);
55 MMmfGlobalAudioPresetList* KnownPresetsL();
56 void ExtractValuesL(TDes8& aPackageBuf);
57 void SetByValuesL(const TDesC8& aPackageBuf);
58 TInt CreateCustomInterface(TUid aInterfaceUid);
59 TAny* CustomInterface(TUid aInterfaceUid);
60 void PassDestructorKey(TUid aDestructorKey);
61 void CompleteConstructL(CMmfGlobalAudioEffect* aParent, MMmfGlobalAudioEffectObserver* aObserver);
63 // from MTestEffectCustomIf
64 void SetActive(TBool aValue);
71 CMmfGlobalAudioEffect* iParent;
72 MMmfGlobalAudioEffectObserver* iObserver;
76 TValueState iValueState;
79 CPresetList* iPresetList;