sipproviderplugins/sipprovider/sipconnectionplugins/src/sipcprfactory.cpp
changeset 0 307788aac0a8
equal deleted inserted replaced
-1:000000000000 0:307788aac0a8
       
     1 // Copyright (c) 2007-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 // SIP Connection Provider factory class definition.
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #include <in_sock.h>
       
    24 #include <comms-infras/ss_msgintercept.h>
       
    25 #include "sipcprfactory.h"
       
    26 #include "sipcpr.h"
       
    27 
       
    28 using namespace ESock;
       
    29 
       
    30 
       
    31 //-=========================================================
       
    32 //
       
    33 // CSipConnectionProviderFactory methods
       
    34 //
       
    35 //-=========================================================	
       
    36 CSipConnectionProviderFactory* CSipConnectionProviderFactory::NewL(TAny* aParentContainer)
       
    37     {
       
    38     return new (ELeave) CSipConnectionProviderFactory(TUid::Uid(CSipConnectionProviderFactory::iUid), *reinterpret_cast<ESock::CConnectionFactoryContainer*>(aParentContainer));
       
    39     }
       
    40     
       
    41 /**
       
    42 Constructor of the class
       
    43 */
       
    44 CSipConnectionProviderFactory::CSipConnectionProviderFactory(TUid aFactoryId, ESock::CConnectionFactoryContainer& aParentContainer)
       
    45 	: ESock::CConnectionProviderFactoryBase(aFactoryId, aParentContainer)
       
    46     {
       
    47     }
       
    48     
       
    49 /**
       
    50 Destructor of the class
       
    51 */
       
    52 CSipConnectionProviderFactory::~CSipConnectionProviderFactory()
       
    53 {	
       
    54 }
       
    55 
       
    56 /**
       
    57 This function creats the SIP Sub-Conneciton provider
       
    58 */
       
    59 ACommsFactoryNodeId* CSipConnectionProviderFactory::DoCreateObjectL(TFactoryQueryBase& /* aQuery */)
       
    60     {    
       
    61     CConnectionProviderBase* provider = CSipConnectionProvider::NewL(*this);
       
    62     ESOCK_DEBUG_REGISTER_GENERAL_NODE(iUid, provider);
       
    63 	return provider;
       
    64     }
       
    65