linklayerprotocols/tunnelnif/inc/TunnelFactory.h
changeset 0 af10295192d8
equal deleted inserted replaced
-1:000000000000 0:af10295192d8
       
     1 // Copyright (c) 2006-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 // TunnelFlowFactory.h
       
    15 // Defines the Tunnel Flow and Protocol Interface Factories.
       
    16 // 
       
    17 //
       
    18 
       
    19 /**
       
    20  @file
       
    21 */
       
    22 
       
    23 #ifndef TUNNELFACTORY_H_
       
    24 #define TUNNELFACTORY_H_
       
    25 
       
    26 #include <e32base.h>
       
    27 #include <e32std.h>
       
    28 #include <comms-infras/ss_subconnflow.h>
       
    29 #include <comms-infras/ss_protflow.h>
       
    30 
       
    31 /**
       
    32 Tunnel Flow Implementation UID
       
    33 */
       
    34 const TInt KTunnelFlowImplUid = 0x10281DF7;
       
    35 /**
       
    36 Tunnel Protocol Interface Implementation UID
       
    37 */
       
    38 const TInt KTunnelPintImplUid = 0x10281DFA;
       
    39 
       
    40 
       
    41 class CTunnelFlowFactory : public ESock::CSubConnectionFlowFactoryBase
       
    42 /**
       
    43 Tunnel Flow Factory
       
    44 @internalComponent
       
    45 */
       
    46 	{
       
    47 public:
       
    48 	static CTunnelFlowFactory* NewL(TAny* aConstructionParameters);
       
    49 	virtual ESock::CSubConnectionFlowBase* DoCreateFlowL(ESock::CProtocolIntfBase* aProtocol, ESock::TFactoryQueryBase& aQuery);
       
    50 	~CTunnelFlowFactory();
       
    51 
       
    52 protected:
       
    53 	CTunnelFlowFactory(TUid aFactoryId, ESock::CSubConnectionFlowFactoryContainer& aParentContainer);
       
    54 	};
       
    55 
       
    56 #endif // TUNNELFACTORY_H_