datacommsserver/esockserver/inc/ss_sapfactshim.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 // Copyright (c) 2005-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 // SS_SAPFACTSHIMProv.H
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file 
       
    20  @internalComponent 
       
    21 */
       
    22 
       
    23 #if !defined(SS_SAPFACTSHIM_H)
       
    24 #define SS_SAPFACTSHIM_H
       
    25 
       
    26 #include <e32def.h>
       
    27 #include <comms-infras/metadata.h>
       
    28 #include <es_ini.h>
       
    29 #include <comms-infras/ss_subconnflow.h>
       
    30 #include <ss_fact.h>
       
    31 
       
    32 class CServProviderBase;
       
    33 namespace ESock
       
    34 {
       
    35     
       
    36 class XProviderFactoryQueryProvider : public Factories::MFactoryQuery
       
    37 	{
       
    38 public:
       
    39 	XProviderFactoryQueryProvider(CServProviderBase& aSSP ) :
       
    40 		iSSP( aSSP )
       
    41 		{
       
    42 		}
       
    43 
       
    44 protected:
       
    45 	CServProviderBase& iSSP;
       
    46 
       
    47 public:
       
    48 	virtual TMatchResult Match(Factories::TFactoryObjectInfo& aProviderInfo);
       
    49 	};
       
    50 
       
    51 class CTransportFlowShimFactory : public CSubConnectionFlowFactoryBase
       
    52 /**
       
    53 Factory for creation CTransportFlowShim objects.
       
    54 
       
    55 @internalComponent
       
    56 */
       
    57 	{
       
    58 public:
       
    59     enum { iUid = 0x101F7482 }; //Same as ESockSrv
       
    60 	static CTransportFlowShimFactory* NewL(TUid aFactoryId, ESock::CSubConnectionFlowFactoryContainer& aParentContainer);
       
    61 	~CTransportFlowShimFactory();
       
    62 protected:
       
    63 	CTransportFlowShimFactory(TUid aFactoryId, CSubConnectionFlowFactoryContainer& aParentContainer);
       
    64 	// from CSubConnectionFlowFactoryBase
       
    65 	CSubConnectionFlowBase* DoCreateFlowL(CProtocolIntfBase* aProtocolIntf, TFactoryQueryBase& aQuery);
       
    66 	ACommsFactoryNodeId* DoFindOrCreateObjectL(TFactoryQueryBase& aQuery);
       
    67 	};
       
    68 
       
    69 // ==============================================================================================
       
    70 
       
    71 } //namespace ESock
       
    72 #endif	// SS_SAPFACTSHIM_H
       
    73