wlan_bearer/wlannwif/src/WlanCfproto.cpp
changeset 0 c40eb8fe8501
equal deleted inserted replaced
-1:000000000000 0:c40eb8fe8501
       
     1 /*
       
     2 * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Implements WLAN CFP flow factory
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 4 %
       
    20 */
       
    21 
       
    22 #include "WlanCfproto.h"
       
    23 #include "WlanProto.h"
       
    24 
       
    25 using namespace ESock;
       
    26 
       
    27 // Wlan Flow Factory
       
    28 
       
    29 // -----------------------------------------------------------------------------
       
    30 // CWlanSubConnectionFlowFactory::NewL
       
    31 // -----------------------------------------------------------------------------
       
    32 //
       
    33 CWlanSubConnectionFlowFactory* CWlanSubConnectionFlowFactory::NewL(TAny* aConstructionParameters)
       
    34 /**
       
    35 Constructs a Default SubConnection Flow Factory
       
    36 
       
    37 @param aConstructionParameters construction data passed by ECOM
       
    38 
       
    39 @returns pointer to a constructed factory
       
    40 */
       
    41 	{
       
    42 	CWlanSubConnectionFlowFactory* ptr = new (ELeave) CWlanSubConnectionFlowFactory(TUid::Uid(KWlanFlowImplementationUid), *(reinterpret_cast<CSubConnectionFlowFactoryContainer*>(aConstructionParameters)));
       
    43 	return ptr;
       
    44 	}
       
    45 
       
    46 // -----------------------------------------------------------------------------
       
    47 // CWlanSubConnectionFlowFactory::CWlanSubConnectionFlowFactory
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 CWlanSubConnectionFlowFactory::CWlanSubConnectionFlowFactory(TUid aFactoryId, CSubConnectionFlowFactoryContainer& aParentContainer)
       
    51 	: CSubConnectionFlowFactoryBase(aFactoryId, aParentContainer)
       
    52 /**
       
    53 Default SubConnection Flow Factory Constructor
       
    54 
       
    55 @param aFactoryId ECOM Implementation Id
       
    56 @param aParentContainer Object Owner
       
    57 */
       
    58 	{
       
    59 	}
       
    60 
       
    61 // -----------------------------------------------------------------------------
       
    62 // CWlanSubConnectionFlowFactory::DoCreateL
       
    63 // -----------------------------------------------------------------------------
       
    64 //
       
    65 CSubConnectionFlowBase* CWlanSubConnectionFlowFactory::DoCreateFlowL(ESock::CProtocolIntfBase* aProtocolIntf, TFactoryQueryBase& aQuery)
       
    66 	{
       
    67 	const TDefaultFlowFactoryQuery& query = static_cast<const TDefaultFlowFactoryQuery&>(aQuery);
       
    68 	return CLANLinkCommon::NewL(*this, query.iSCprId, aProtocolIntf);
       
    69 	}
       
    70 
       
    71