linklayerprotocols/pppnif/SPPP/pppscprfactory.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 // PPP SCpr Factory
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #include "pppscprfactory.h"
       
    24 #include "pppscpr.h"
       
    25 #include <comms-infras/ss_log.h>
       
    26 
       
    27 #include <comms-infras/ss_msgintercept.h>
       
    28 
       
    29 #ifdef __CFLOG_ACTIVE
       
    30 #define KPPPSCprFactoryTag KESockSubConnectionTag
       
    31 _LIT8(KPPPSCprFactorySubTag, "pppscprfactory");
       
    32 #endif
       
    33 
       
    34 
       
    35 using namespace ESock;
       
    36 
       
    37 
       
    38 //-=========================================================
       
    39 //
       
    40 // CPppSubConnectionProviderFactory methods
       
    41 //
       
    42 //-=========================================================	
       
    43 CPppSubConnectionProviderFactory* CPppSubConnectionProviderFactory::NewL(TAny* aParentContainer)
       
    44 	{
       
    45 	__CFLOG_VAR((KPPPSCprFactoryTag, KPPPSCprFactorySubTag,
       
    46 	    _L8("CPppSubConnectionProviderFactory ::\tNewL(%08x)"), aParentContainer));
       
    47 	    
       
    48  	return new (ELeave) CPppSubConnectionProviderFactory(
       
    49  	    TUid::Uid(CPppSubConnectionProviderFactory::iUid),
       
    50  	    *(reinterpret_cast<CSubConnectionFactoryContainer*>(aParentContainer)));
       
    51 	}
       
    52 
       
    53 
       
    54 CPppSubConnectionProviderFactory::CPppSubConnectionProviderFactory(TUid aFactoryId, CSubConnectionFactoryContainer& aParentContainer)
       
    55 	: CSubConnectionProviderFactoryBase(aFactoryId, aParentContainer)
       
    56 	{
       
    57 	__CFLOG_VAR((KPPPSCprFactoryTag, KPPPSCprFactorySubTag, _L8("CPppSubConnectionProviderFactory %08x:\tCPppSubConnectionProviderFactory Constructor"), this));
       
    58 	}
       
    59 
       
    60 
       
    61 ACommsFactoryNodeId* CPppSubConnectionProviderFactory::DoCreateObjectL(ESock::TFactoryQueryBase& /* aQuery */)
       
    62 	{
       
    63 	CSubConnectionProviderBase* provider = CPppSubConnectionProvider::NewL(*this);	
       
    64 
       
    65 	ESOCK_DEBUG_REGISTER_GENERAL_NODE(iUid, provider);
       
    66 
       
    67 	return provider;	    
       
    68 	}
       
    69