Factories::CFactoryContainer Class Reference

class Factories::CFactoryContainer : public CBase

Factory Factory Container class is used to store factory objects of a specific type. It provides basic functionality to find, add and remove factories.

Inherits from

  • Factories::CFactoryContainer

Constructor & Destructor Documentation

CFactoryContainer()

IMPORT_CCFactoryContainer()[protected, explicit]

~CFactoryContainer()

IMPORT_C~CFactoryContainer()

Destructor - cleanup Factories (delete them all)

Member Functions Documentation

AddL(CFactoryBase &)

IMPORT_C voidAddL(CFactoryBase &aFactory)[protected]

Add a factory to this container

Parameters

CFactoryBase & aFactoryFactory to be added to the container

Factory(TInt)

IMPORT_C CFactoryBase *Factory(TIntaIndex)const [protected]

Parameters

TInt aIndex

FetchNodeInterfaceControlL(TInt)

IMPORT_C NetInterfaces::TInterfaceControl *FetchNodeInterfaceControlL(TIntaInterfaceId)[virtual]

Iterates through all the held factories and asks them whether they implment the requested interface. As factory containers are not meant to be derived from, this implementation is an accepted deviation from the original semantics of FetchNodeInterfaceControlL.

Exceptions
Leaves

with KErrNotSupported if none of the factories implement the interface

NetInterfaces::TInterfaceControl

Parameters

TInt aInterfaceIdThe id of the requested interface extension.

FindFactory(TUid)

IMPORT_C CFactoryBase *FindFactory(TUidaFactoryUid)const

Search this factory container for a factory with a matching id

Parameters

TUid aFactoryUidId of the factory the caller wishes to find

FindObject(MFactoryQuery &)

IMPORT_C AFactoryObject *FindObject(MFactoryQuery &aQuery)const [protected]

Parameters

MFactoryQuery & aQuery

RegisterNotifierL(TUid, const IFactoryNotify &)

IMPORT_C voidRegisterNotifierL(TUidaFactoryUid,
const IFactoryNotify &aFactoryNotify
)

Registers a callback for factory container notification

Exceptions
Leaves

with KErrArgument if the factory specified by aFactoryId is not found

IConnectionFactoryNotify

Parameters

TUid aFactoryUidThe Id of the factory that will be registered
const IFactoryNotify & aFactoryNotifyThe IConnectionFactoryNotify object that implements the callback

Member Data Documentation

RPointerArray< CFactoryBase > iFactories

RPointerArray< CFactoryBase >iFactories[private]