datacommsserver/esockserver/inc/ss_sapfactshim.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 26 Jan 2010 13:09:14 +0200
changeset 4 928ed51ddc43
parent 0 dfb7c4ff071f
permissions -rw-r--r--
Revision: 201004 Kit: 201004

// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
// which accompanies this distribution, and is available
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
//
// Initial Contributors:
// Nokia Corporation - initial contribution.
//
// Contributors:
//
// Description:
// SS_SAPFACTSHIMProv.H
// 
//

/**
 @file 
 @internalComponent 
*/

#if !defined(SS_SAPFACTSHIM_H)
#define SS_SAPFACTSHIM_H

#include <e32def.h>
#include <comms-infras/metadata.h>
#include <es_ini.h>
#include <comms-infras/ss_subconnflow.h>
#include <ss_fact.h>

class CServProviderBase;
namespace ESock
{
    
class XProviderFactoryQueryProvider : public Factories::MFactoryQuery
	{
public:
	XProviderFactoryQueryProvider(CServProviderBase& aSSP ) :
		iSSP( aSSP )
		{
		}

protected:
	CServProviderBase& iSSP;

public:
	virtual TMatchResult Match(Factories::TFactoryObjectInfo& aProviderInfo);
	};

class CTransportFlowShimFactory : public CSubConnectionFlowFactoryBase
/**
Factory for creation CTransportFlowShim objects.

@internalComponent
*/
	{
public:
    enum { iUid = 0x101F7482 }; //Same as ESockSrv
	static CTransportFlowShimFactory* NewL(TUid aFactoryId, ESock::CSubConnectionFlowFactoryContainer& aParentContainer);
	~CTransportFlowShimFactory();
protected:
	CTransportFlowShimFactory(TUid aFactoryId, CSubConnectionFlowFactoryContainer& aParentContainer);
	// from CSubConnectionFlowFactoryBase
	CSubConnectionFlowBase* DoCreateFlowL(CProtocolIntfBase* aProtocolIntf, TFactoryQueryBase& aQuery);
	ACommsFactoryNodeId* DoFindOrCreateObjectL(TFactoryQueryBase& aQuery);
	};

// ==============================================================================================

} //namespace ESock
#endif	// SS_SAPFACTSHIM_H