ESock::CProtocolFamilyFactoryBase Class Reference

class ESock::CProtocolFamilyFactoryBase

Base class for all protocol families' provider factories. Specifies the interface that all protocol families' providers factories must implement. It also providers the ECOM framework (via CCommsFactoryBase) to load sub-connection provider factories from other Dynamic Linked Libraries.

Since 9.1

Public Member Functions
IMPORT_C CProtocolBase * FindProtocol ( TUint )
IMPORT_C CProtocolFamilyFactoryBase * NewL (const TDesC8 &, CProtocolFamilyFactoryContainer &)
Protected Member Functions
CProtocolFamilyFactoryBase ( TUid , CProtocolFamilyFactoryContainer &)
Private Member Functions
IMPORT_C ACommsFactoryNodeId * DoCreateObjectL ( TFactoryQueryBase &)

Constructor & Destructor Documentation

CProtocolFamilyFactoryBase(TUid, CProtocolFamilyFactoryContainer &)

IMPORT_C CProtocolFamilyFactoryBase ( TUid aFactoryId,
CProtocolFamilyFactoryContainer & aParentContainer
) [protected]

Sub-connection provider factory constructor

Parameters

TUid aFactoryId Unique Integer Identifier of the factory
CProtocolFamilyFactoryContainer & aParentContainer Container to add the factory to

Member Functions Documentation

DoCreateObjectL(TFactoryQueryBase &)

IMPORT_C ACommsFactoryNodeId * DoCreateObjectL ( TFactoryQueryBase & aQuery ) [private]

Parameters

TFactoryQueryBase & aQuery

FindProtocol(TUint)

IMPORT_C CProtocolBase * FindProtocol ( TUint aProtocolId )

Parameters

TUint aProtocolId

NewL(const TDesC8 &, CProtocolFamilyFactoryContainer &)

IMPORT_C CProtocolFamilyFactoryBase * NewL ( const TDesC8 & aName,
CProtocolFamilyFactoryContainer & aParentContainer
) [static]
Create a new instance of a protocol family Factory (Uses the base class that uses ECOM to load the DLL that implements the specialised protocol family factory
Exceptions
KErrNoMemory

in out of memory conditions or KErrNotFound if the DLL cannot be found

Parameters

const TDesC8 & aName Unique String Identifier of the desired factory implementation
CProtocolFamilyFactoryContainer & aParentContainer Container to add the factory to