Update contrib.
2 // MmfGlblAudioEffectPlugin.cpp
4 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
5 // All rights reserved.
6 // This component and the accompanying materials are made available
7 // under the terms of "Eclipse Public License v1.0"
8 // which accompanies this distribution, and is available
9 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
11 // Initial Contributors:
12 // Nokia Corporation - initial contribution.
19 #include <mmf/common/mmfglblaudioeffect.h>
20 #include <mmf/plugin/mmfglblaudioeffectplugin.h>
21 #include <mmf/plugin/mmfglblaudioeffect.hrh>
23 #include <ecom/ecom.h>
24 #include <mm/mmpluginutils.h>
26 #include <mmf/common/mmfcontroller.h> //needed for CleanupResetAndDestroyPushL()
28 // construct implementation of global plugin
30 MMmfGlobalAudioImpl* MMmfGlobalAudioImpl::NewL(TUid aImplementationUid,
31 CMmfGlobalAudioEffect* aParent,
32 MMmfGlobalAudioEffectObserver* aObserver)
34 // The Uid of the plugin will be the match string
35 TInt uidAsInteger = aImplementationUid.iUid;
37 tempBuffer.Num(uidAsInteger, EHex); // has value
38 TUid interfaceUid = {KUidGlobalAudioEffectInterface};
41 MMmfGlobalAudioImpl* self =
42 static_cast<MMmfGlobalAudioImpl*>
43 (MmPluginUtils::CreateImplementationL(interfaceUid, destructorKey, tempBuffer, KRomOnlyResolverUid));
45 self->PassDestructorKey(destructorKey);
47 CleanupReleasePushL(*self);
48 self->CompleteConstructL(aParent, aObserver);
49 CleanupStack::Pop(self);