telephonyprotocols/pdplayer/umts/test/mbufgobblerlayer/src/mbufgobblerflowfactory.cpp
branchRCL_3
changeset 82 042fd2753b8f
equal deleted inserted replaced
74:9200f38b1324 82:042fd2753b8f
       
     1 // Copyright (c) 2010 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 // The factory class which is used to instantiate the MbufGobbler flow.
       
    15 //  (data plane)
       
    16 //
       
    17 
       
    18 /**
       
    19  @file
       
    20  @internalComponent
       
    21 */
       
    22 
       
    23 #include "mbufgobblerflowfactory.h"
       
    24 #include "mbufgobblerflow.h"
       
    25 #include "mbufgobblerlog.h"
       
    26 
       
    27 // =====================================================================================
       
    28 //
       
    29 // MbufGobbler Flow Factory
       
    30 //
       
    31 
       
    32 CMbufGobblerFlowFactory* CMbufGobblerFlowFactory::NewL(TAny* aConstructionParameters)
       
    33 /**
       
    34 Constructs a Default SubConnection Flow Factory
       
    35 
       
    36 @param aConstructionParameters construction data passed by ECOM
       
    37 
       
    38 @returns pointer to a constructed factory
       
    39 */
       
    40 	{
       
    41 	CMbufGobblerFlowFactory* ptr = new (ELeave) CMbufGobblerFlowFactory(TUid::Uid(CMbufGobblerFlowFactory::EUid), *(reinterpret_cast<ESock::CSubConnectionFlowFactoryContainer*>(aConstructionParameters)));
       
    42 	
       
    43 	return ptr;
       
    44 	}
       
    45 
       
    46 
       
    47 CMbufGobblerFlowFactory::CMbufGobblerFlowFactory(TUid aFactoryId, ESock::CSubConnectionFlowFactoryContainer& aParentContainer)
       
    48 	: CSubConnectionFlowFactoryBase(aFactoryId, aParentContainer)
       
    49 /**
       
    50 Default SubConnection Flow Factory Constructor
       
    51 
       
    52 @param aFactoryId ECOM Implementation Id
       
    53 @param aParentContainer Object Owner
       
    54 */
       
    55 	{
       
    56 	}
       
    57 
       
    58 
       
    59 ESock::CSubConnectionFlowBase* CMbufGobblerFlowFactory::DoCreateFlowL(ESock::CProtocolIntfBase* aProtocol, ESock::TFactoryQueryBase& aQuery)
       
    60 	{
       
    61 	const ESock::TDefaultFlowFactoryQuery& query = static_cast<const ESock::TDefaultFlowFactoryQuery&>(aQuery);
       
    62 	ESock::CSubConnectionFlowBase *temp = CMbufGobblerFlow::NewL(*this, query.iSCprId, aProtocol);
       
    63 	return temp;
       
    64 	}
       
    65