telephonyprotocols/pdplayer/src/pdptiermanagerfactory.cpp
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    16 /**
    16 /**
    17  @file
    17  @file
    18  @internalComponent
    18  @internalComponent
    19 */
    19 */
    20 
    20 
    21 
       
    22 #include "OstTraceDefinitions.h"
       
    23 #ifdef OST_TRACE_COMPILER_IN_USE
       
    24 #include "pdptiermanagerfactoryTraces.h"
       
    25 #endif
       
    26 
       
    27 #include <comms-infras/ss_log.h>
    21 #include <comms-infras/ss_log.h>
    28 #include <ecom/ecom.h>
    22 #include <ecom/ecom.h>
    29 #include "pdptiermanagerfactory.h"
    23 #include "pdptiermanagerfactory.h"
    30 #include "pdptiermanager.h"
    24 #include "pdptiermanager.h"
       
    25 
       
    26 #ifdef __CFLOG_ACTIVE
       
    27 #define KPDPTierMgrTag KESockMetaConnectionTag
       
    28 _LIT8(KPDPTierMgrSubTag, "pdptiermgr");
       
    29 #endif
    31 
    30 
    32 // ---------------- Factory Methods ----------------
    31 // ---------------- Factory Methods ----------------
    33 /**
    32 /**
    34 Creates a PDP Tier Manager Factory
    33 Creates a PDP Tier Manager Factory
    35 This function also acts as the single ECom entry point into this object.
    34 This function also acts as the single ECom entry point into this object.
    36 @param aParentContainer The parent factory container which owns this factory
    35 @param aParentContainer The parent factory container which owns this factory
    37 @return
    36 @return
    38 */
    37 */
    39 CPDPTierManagerFactory* CPDPTierManagerFactory::NewL(TAny* aParentContainer)
    38 CPDPTierManagerFactory* CPDPTierManagerFactory::NewL(TAny* aParentContainer)
    40 	{
    39 	{
    41 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPTIERMANAGERFACTORY_NEWL_1, "CPDPTierManagerFactory::\tNewL(%08x)", aParentContainer);
    40 	__CFLOG_VAR((KPDPTierMgrTag, KPDPTierMgrSubTag, _L8("CPDPTierManagerFactory::\tNewL(%08x)"), aParentContainer));
    42  	return new (ELeave) CPDPTierManagerFactory(TUid::Uid(CPDPTierManagerFactory::EUid), TUid::Uid(CPDPTierManagerFactory::EUid),*(reinterpret_cast<ESock::CTierManagerFactoryContainer*>(aParentContainer)));
    41  	return new (ELeave) CPDPTierManagerFactory(TUid::Uid(CPDPTierManagerFactory::EUid), TUid::Uid(CPDPTierManagerFactory::EUid),*(reinterpret_cast<ESock::CTierManagerFactoryContainer*>(aParentContainer)));
    43 	}
    42 	}
    44 /**
    43 /**
    45 Constructor for the PDP Tier Manager Factory
    44 Constructor for the PDP Tier Manager Factory
    46 @param aFactoryId The UID which this factory can be looked up by
    45 @param aFactoryId The UID which this factory can be looked up by