sl@0: // Copyright (c) 2007-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 FILES sl@0: #include sl@0: #include "mmfaudioserver.h" sl@0: #include sl@0: #include "mmfaudioserverinterfaceimpl.h" sl@0: sl@0: sl@0: // ============================ MEMBER FUNCTIONS =============================== sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // CAudioSvrLoader::NewL sl@0: // Two-phased constructor. sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: EXPORT_C CAudioSvrLoader* CAudioSvrLoader::NewL() sl@0: { sl@0: CAudioSvrLoaderImpl* self = new(ELeave) CAudioSvrLoaderImpl(); sl@0: CleanupStack::PushL(self); sl@0: self->ConstructL(); sl@0: CleanupStack::Pop(self); sl@0: return self; sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // CAudioSvrLoader::CAudioSvrLoader sl@0: // C++ default constructor can NOT contain any code, that sl@0: // might leave. sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: CAudioSvrLoader::CAudioSvrLoader() sl@0: { sl@0: } sl@0: sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // CAudioSvrLoader::~CAudioSvrLoader sl@0: // Destructor sl@0: // (other items were commented in a header). sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: CAudioSvrLoader::~CAudioSvrLoader() sl@0: { sl@0: } sl@0: sl@0: sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // CAudioSvrLoaderImpl::CAudioSvrLoaderImpl sl@0: // C++ default constructor can NOT contain any code, that sl@0: // might leave. sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: CAudioSvrLoaderImpl::CAudioSvrLoaderImpl() sl@0: { sl@0: } sl@0: sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // CAudioSvrLoaderImpl::~CAudioSvrLoaderImpl sl@0: // Destructor sl@0: // (other items were commented in a header). sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: CAudioSvrLoaderImpl::~CAudioSvrLoaderImpl() sl@0: { sl@0: delete iServer; sl@0: } sl@0: sl@0: // ----------------------------------------------------------------------------- sl@0: // CAudioSvrLoaderImpl::~CAudioSvrLoaderImpl sl@0: // Destructor sl@0: // (other items were commented in a header). sl@0: // ----------------------------------------------------------------------------- sl@0: // sl@0: void CAudioSvrLoaderImpl::ConstructL() sl@0: { sl@0: iServer = CMMFAudioServer::NewL(); sl@0: } sl@0: sl@0: sl@0: // End of file sl@0: sl@0: