servicediscoveryandcontrol/pnp/test/upnp/Server/Flow/inc/upnpflowfactory.h
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 // @file
       
    15 // @internalComponent
       
    16 // 
       
    17 //
       
    18 
       
    19 #ifndef __UPNPFLOWFACTORY_H_
       
    20 #define __UPNPFLOWFACTORY_H_
       
    21 
       
    22 
       
    23 #include <comms-infras/ss_subconnflow.h>
       
    24 #include "upnppint.h"
       
    25 
       
    26 using namespace ESock;
       
    27 
       
    28 
       
    29 class CUPnPFlowFactory : public CSubConnectionFlowFactoryBase
       
    30 /**
       
    31 Factory for creating CUPnP(TCP/UDP)Flow objects.
       
    32 */
       
    33 	{
       
    34 public:
       
    35 	// ECOM interface implementation ID
       
    36 	static const TInt iUid = 0x2000D05A;
       
    37 	   	
       
    38    	static CUPnPFlowFactory* NewL(TAny* aConstructionParameters);
       
    39 	~CUPnPFlowFactory();
       
    40 	
       
    41 private:
       
    42 	CUPnPFlowFactory(TUid aFactoryId,CSubConnectionFlowFactoryContainer& aParentContainer);
       
    43 	void ConstructL();
       
    44 	
       
    45 	// from CSubConnectionFlowFactoryBase
       
    46 	CProtocolIntfFactoryBase* CreateProtocolIntfFactoryL(CProtocolIntfFactoryContainer& aParentContainer);
       
    47 	virtual ACommsFactoryNodeId* DoFindOrCreateObjectL(TFactoryQueryBase& aQuery);
       
    48 	virtual CSubConnectionFlowBase* DoCreateFlowL(CProtocolIntfBase* aProtocolIntf, TFactoryQueryBase& aQuery);
       
    49 	
       
    50 	CSubConnectionFlowBase* CreateL ( TFactoryQueryBase& aQuery );
       
    51 	};
       
    52 
       
    53 #endif //UPNPFLOWFACTORY_H
       
    54