mmfenh/configurationcomponentsfactory/src/ConfigurationComponentsFactory.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 19 Feb 2010 23:19:48 +0200
branchRCL_3
changeset 3 4f62049db6ac
parent 0 71ca22bcf22a
permissions -rw-r--r--
Revision: 201003 Kit: 201007

/*
* Copyright (c) 2007 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:  This is the implementation of the CConfigurationComponentsFactory class.
*
*/



// INCLUDE FILES
#include <ConfigurationComponentsFactory.h>
#include "ConfigurationComponentsFactoryImpl.h"



// Two-phased constructor.
EXPORT_C TInt CConfigurationComponentsFactory::CreateFactoryL(CConfigurationComponentsFactory*& aFactory)
    {	
    CConfigurationComponentsFactory* self = new (ELeave)CConfigurationComponentsFactory;
    CleanupStack::PushL(self);
    self->ConstructL();
    CleanupStack::Pop(self);
    aFactory = self;
    return KErrNone;
    }
    
CConfigurationComponentsFactory::CConfigurationComponentsFactory()
	{

	}    
// -----------------------------------------------------------------------------
// CConfigurationComponentsFactory::ConstructL
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CConfigurationComponentsFactory::ConstructL()
    {
    iBody = CBody::NewL();
    iBody->ConstructL();
    }
       
// -----------------------------------------------------------------------------
// CMMFDevSoundAdaptation::DestructL
// Destructor
// -----------------------------------------------------------------------------
//
EXPORT_C CConfigurationComponentsFactory::~CConfigurationComponentsFactory()
    {
    delete iBody;
    }
            
// ---------------------------------------------------------
// CConfigurationComponentsFactory::CreateRestrictedAudioOutput
// ?implementation_description
// (other items were commented in a header).
// ---------------------------------------------------------
//
EXPORT_C TInt CConfigurationComponentsFactory::CreateRestrictedAudioOutput(CMMFDevSound& aDevSound, CRestrictedAudioOutput*& aAudioOutput)
    {
    return iBody->CreateRestrictedAudioOutput(aDevSound, aAudioOutput);
    }
    
// ---------------------------------------------------------
// CConfigurationComponentsFactory::CreateAudioOutputControlUtility
// ?implementation_description
// (other items were commented in a header).
// ---------------------------------------------------------
//
EXPORT_C TInt CConfigurationComponentsFactory::CreateAudioOutputControlUtility(CAudioOutputControlUtility*& aAudioOutputControlUtility)
    {
    return iBody->CreateAudioOutputControlUtility(aAudioOutputControlUtility);
    }    
    
// End of file