diff -r 000000000000 -r 79dd3e2336a0 devsound/devsoundpluginsupport/src/sounddevice/SoundDeviceBody.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/devsound/devsoundpluginsupport/src/sounddevice/SoundDeviceBody.cpp Fri Oct 08 19:40:43 2010 +0100 @@ -0,0 +1,78 @@ +// Copyright (c) 2001-2009 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: +// + +#include "SoundDeviceBody.h" +#include +#include +#include +#include + + +/* + * Default Constructor. + */ +CMMFDevSound::CBody::CBody() + { + } + +/* + * -doxygen comments moved to header- + * + * Destructor. + * + * Deletes all objects and releases all resource owned by this + * instance. + * + */ +CMMFDevSound::CBody::~CBody() + { + delete iPlugin; + REComSession::DestroyedImplementation(iDestructorKey); + REComSession::FinalClose(); + } + +/* + * -doxygen comments moved to header- + * + * Constructs, and returns a pointer to, a new CMMFDevSound::CBody object. + * + * Leaves on failure. + * + */ +CMMFDevSound::CBody* CMMFDevSound::CBody::NewL() + { + CBody* self = new (ELeave) CBody; + CleanupStack::PushL(self); + self->ConstructL(); + CleanupStack::Pop(); + return self; + } + +/* + * -doxygen comments moved to header- + * + * Second phase constructor. + * + */ +void CMMFDevSound::CBody::ConstructL() + { + TUid interfaceUid = {KMmfUidDevSoundPlugin}; + iPlugin = + static_cast + (MmPluginUtils::CreateImplementationL(interfaceUid, iDestructorKey, KDevSoundPluginMatchString, KRomOnlyResolverUid)); + } + + +