networkcontrol/iptransportlayer/src/iptiermanagerfactory.cpp
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // This is part of an ECOM plug-in
       
    15 // 
       
    16 //
       
    17 
       
    18 #include "iptiermanagerfactory.h"
       
    19 #include "iptiermanager.h"
       
    20 #include <comms-infras/ss_log.h>
       
    21 
       
    22 #ifdef __CFLOG_ACTIVE
       
    23 #define KIpTierMgrFactoryTag KESockMetaConnectionTag
       
    24 _LIT8(KIpTierMgrSubTag, "iptiermanager");
       
    25 #endif // __CFLOG_ACTIVE
       
    26 
       
    27 using namespace ESock;
       
    28 
       
    29 
       
    30 EXPORT_C CIpTierManagerFactory* CIpTierManagerFactory::NewL(TAny* aParentContainer)
       
    31 /** Factory function for the factory which manages ip level meta connection providers.
       
    32 This function also acts as the single ECom entry point into this object.
       
    33 @param aParentContainer the parent factory container which owns this factory
       
    34 @return factory for IP level meta connection providers
       
    35 */
       
    36 	{
       
    37 	__CFLOG_VAR((KIpTierMgrFactoryTag, KIpTierMgrSubTag, _L8("CIpTierManagerFactory::\tNewL(%08x)"), aParentContainer));
       
    38  	return new (ELeave) CIpTierManagerFactory(TUid::Uid(CIpTierManagerFactory::iType),TUid::Uid(CIpTierManagerFactory::iUid),*(reinterpret_cast<CTierManagerFactoryContainer*>(aParentContainer)));
       
    39 	}
       
    40 
       
    41 CIpTierManagerFactory::CIpTierManagerFactory(TUid aTierTypeId, TUid aFactoryUid, CTierManagerFactoryContainer& aParentContainer)
       
    42 	: CTierManagerFactoryBase(aTierTypeId, aFactoryUid, aParentContainer)
       
    43 /** Constructor for Ip level meta connection providers.
       
    44 @param aFactoryId the ID which this factory can be looked up by
       
    45 @param aParentContainer the parent factory container which owns this factory
       
    46 */
       
    47 	{
       
    48 	}
       
    49 
       
    50 ESock::ACommsFactoryNodeId* CIpTierManagerFactory::DoCreateObjectL(ESock::TFactoryQueryBase& /* aQuery */)
       
    51 	{
       
    52 	return CIpTierManager::NewL(*this);
       
    53 	}