mmfenh/configurationcomponentsfactory/src/ConfigurationComponentsFactory.cpp
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2007 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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  This is the implementation of the CConfigurationComponentsFactory class.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 // INCLUDE FILES
       
    21 #include <ConfigurationComponentsFactory.h>
       
    22 #include "ConfigurationComponentsFactoryImpl.h"
       
    23 
       
    24 
       
    25 
       
    26 // Two-phased constructor.
       
    27 EXPORT_C TInt CConfigurationComponentsFactory::CreateFactoryL(CConfigurationComponentsFactory*& aFactory)
       
    28     {	
       
    29     CConfigurationComponentsFactory* self = new (ELeave)CConfigurationComponentsFactory;
       
    30     CleanupStack::PushL(self);
       
    31     self->ConstructL();
       
    32     CleanupStack::Pop(self);
       
    33     aFactory = self;
       
    34     return KErrNone;
       
    35     }
       
    36     
       
    37 CConfigurationComponentsFactory::CConfigurationComponentsFactory()
       
    38 	{
       
    39 
       
    40 	}    
       
    41 // -----------------------------------------------------------------------------
       
    42 // CConfigurationComponentsFactory::ConstructL
       
    43 // Symbian 2nd phase constructor can leave.
       
    44 // -----------------------------------------------------------------------------
       
    45 //
       
    46 void CConfigurationComponentsFactory::ConstructL()
       
    47     {
       
    48     iBody = CBody::NewL();
       
    49     iBody->ConstructL();
       
    50     }
       
    51        
       
    52 // -----------------------------------------------------------------------------
       
    53 // CMMFDevSoundAdaptation::DestructL
       
    54 // Destructor
       
    55 // -----------------------------------------------------------------------------
       
    56 //
       
    57 EXPORT_C CConfigurationComponentsFactory::~CConfigurationComponentsFactory()
       
    58     {
       
    59     delete iBody;
       
    60     }
       
    61             
       
    62 // ---------------------------------------------------------
       
    63 // CConfigurationComponentsFactory::CreateRestrictedAudioOutput
       
    64 // ?implementation_description
       
    65 // (other items were commented in a header).
       
    66 // ---------------------------------------------------------
       
    67 //
       
    68 EXPORT_C TInt CConfigurationComponentsFactory::CreateRestrictedAudioOutput(CMMFDevSound& aDevSound, CRestrictedAudioOutput*& aAudioOutput)
       
    69     {
       
    70     return iBody->CreateRestrictedAudioOutput(aDevSound, aAudioOutput);
       
    71     }
       
    72     
       
    73 // ---------------------------------------------------------
       
    74 // CConfigurationComponentsFactory::CreateAudioOutputControlUtility
       
    75 // ?implementation_description
       
    76 // (other items were commented in a header).
       
    77 // ---------------------------------------------------------
       
    78 //
       
    79 EXPORT_C TInt CConfigurationComponentsFactory::CreateAudioOutputControlUtility(CAudioOutputControlUtility*& aAudioOutputControlUtility)
       
    80     {
       
    81     return iBody->CreateAudioOutputControlUtility(aAudioOutputControlUtility);
       
    82     }    
       
    83     
       
    84 // End of file
       
    85