servicediscoveryandcontrol/pnp/test/upnp/Server/ControlPoint/src/upnpctrlcprfactory.cpp
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 // Copyright (c) 2008-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 //
       
    15 
       
    16 #include <comms-infras/ss_msgintercept.h>
       
    17 
       
    18 #include "upnpctrlcprfactory.h"
       
    19 #include "upnpctrlcpr.h"
       
    20 
       
    21 #if defined __CFLOG_ACTIVE || defined SYMBIAN_TRACE_ENABLE
       
    22 #define KUPnPCprFactoryTag KESockConnectionTag
       
    23 #endif
       
    24 
       
    25 CUPnPControlConnectionProviderFactory* CUPnPControlConnectionProviderFactory::NewL(TAny* aParentContainer)
       
    26 	{
       
    27 	return new (ELeave) CUPnPControlConnectionProviderFactory(
       
    28 		TUid::Uid(CUPnPControlConnectionProviderFactory::iUid), 
       
    29 		*reinterpret_cast<CConnectionFactoryContainer*>(aParentContainer));
       
    30 	}
       
    31 	
       
    32 CUPnPControlConnectionProviderFactory::CUPnPControlConnectionProviderFactory(TUid aFactoryId, CConnectionFactoryContainer& aParentContainer)
       
    33 	: CConnectionProviderFactoryBase(aFactoryId, aParentContainer)
       
    34     {
       
    35 //	LOG_NODE_CREATE(KUPnPCprFactoryTag, CUPnPControlConnectionProviderFactory);
       
    36     }
       
    37 
       
    38 ACommsFactoryNodeId* CUPnPControlConnectionProviderFactory::DoCreateObjectL(ESock::TFactoryQueryBase& /*aQuery*/)	
       
    39     {    
       
    40     CConnectionProviderBase* provider = CUPnPControlConnectionProvider::NewL(*this);    
       
    41 	ESOCK_DEBUG_REGISTER_GENERAL_NODE(iUid, provider);
       
    42     return provider;
       
    43     }