sdkcreationmw/sdkruntimes/new_wsock_3pc/src/winsockmcprfactory.cpp
changeset 2 82fb8aa91b2c
equal deleted inserted replaced
1:ac50fd48361b 2:82fb8aa91b2c
       
     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 the License "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 // RawIP MCPR Factory
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #include "winsockmcprfactory.h"
       
    24 #include "winsockmcpr.h"
       
    25 #include <comms-infras/ss_log.h>
       
    26 #include <ss_glob.h>
       
    27 
       
    28 #include <comms-infras/ss_msgintercept.h>
       
    29 #include <comms-infras/ss_metaconnprov.h>
       
    30 
       
    31 #ifdef __CFLOG_ACTIVE
       
    32 #define KRawIPMCprFactoryTag KESockMetaConnectionTag
       
    33 // _LIT8(KRawIPMCprFactorySubTag, "rawipmcprfactory");
       
    34 #endif // __CFLOG_ACTIVE
       
    35 
       
    36 using namespace ESock;
       
    37 
       
    38 //-=========================================================
       
    39 //
       
    40 // CWinsockMetaConnectionProviderFactory methods
       
    41 //
       
    42 //-=========================================================	
       
    43 CWinsockMetaConnectionProviderFactory* CWinsockMetaConnectionProviderFactory::NewL(TAny* aParentContainer)
       
    44 	{
       
    45 	//__CFLOG_VAR((KRawIPMCprFactoryTag, KRawIPMCprFactorySubTag, _L8("CWinsockMetaConnectionProviderFactory ::\tNewL(%08x)"), aParentContainer));
       
    46  	return new (ELeave) CWinsockMetaConnectionProviderFactory(TUid::Uid(CWinsockMetaConnectionProviderFactory::iUid), *(reinterpret_cast<CMetaConnectionFactoryContainer*>(aParentContainer)));
       
    47 	}
       
    48 
       
    49 CWinsockMetaConnectionProviderFactory::CWinsockMetaConnectionProviderFactory(TUid aFactoryId, CMetaConnectionFactoryContainer& aParentContainer)
       
    50 	: CMetaConnectionProviderFactoryBase(aFactoryId,aParentContainer)
       
    51 	{
       
    52 	__CFLOG_VAR((KRawIPMCprFactoryTag, KRawIPMCprFactorySubTag, _L8("CWinsockMetaConnectionProviderFactory %08x:\tCWinsockMetaConnectionProviderFactory Constructor"), this));
       
    53 	}
       
    54 
       
    55 ACommsFactoryNodeId* CWinsockMetaConnectionProviderFactory::DoCreateObjectL(ESock::TFactoryQueryBase& aQuery)
       
    56 	{
       
    57 	const TMetaConnectionFactoryQuery& query = static_cast<const TMetaConnectionFactoryQuery&>(aQuery);
       
    58 	CWinsockMetaConnectionProvider* provider = CWinsockMetaConnectionProvider::NewL(*this, query.iProviderInfo);	
       
    59 	
       
    60 	//ESOCK_DEBUG_REGISTER_GENERAL_NODE(iUid, provider);
       
    61 
       
    62 	return provider;
       
    63 	}
       
    64