sl@0: /* sl@0: * Copyright (c) 2005-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: sl@0: sl@0: sl@0: /*@{*/ sl@0: _LIT(KDataImplInf, "CImplementationInformation"); sl@0: _LIT(KDataEComResParam, "TEComResolverParams"); sl@0: _LIT(KDataEComSession, "REComSession"); sl@0: /*@}*/ sl@0: sl@0: inline CT_ECOMServer::CT_ECOMBlock::CT_ECOMBlock() sl@0: { sl@0: } sl@0: sl@0: inline CT_ECOMServer::CT_ECOMBlock::~CT_ECOMBlock() sl@0: { sl@0: } sl@0: sl@0: inline CDataWrapper* CT_ECOMServer::CT_ECOMBlock::CreateDataL( const TDesC& aData ) sl@0: { sl@0: CDataWrapper* wrapper = NULL; sl@0: if( KDataImplInf() == aData ) sl@0: { sl@0: wrapper = CT_ImplementationInformationData::NewL(); sl@0: } sl@0: else if( KDataEComResParam() == aData ) sl@0: { sl@0: wrapper = CT_EComResolverParamsData::NewL(); sl@0: } sl@0: else if( KDataEComSession() == aData ) sl@0: { sl@0: wrapper = CT_EComSessionData::NewL(); sl@0: } sl@0: return wrapper; sl@0: } sl@0: sl@0: inline CT_ECOMServer::CT_ECOMServer() sl@0: { sl@0: } sl@0: sl@0: inline CT_ECOMServer::~CT_ECOMServer() sl@0: { sl@0: } sl@0: sl@0: inline CTestBlockController* CT_ECOMServer::CreateTestBlock() sl@0: { sl@0: return new CT_ECOMBlock(); sl@0: }