CCMObjectPool Class Reference

class CCMObjectPool : public CBase

Object pool to hold destination implementations and connetion method implementations

The get and remove functions must be used in pairs

Inherits from

Constructor & Destructor Documentation

CCMObjectPool(CCmManagerImpl &)

CCMObjectPool(CCmManagerImpl &aCmManagerImpl)

Parameters

CCmManagerImpl & aCmManagerImpl

~CCMObjectPool()

~CCMObjectPool()[virtual]

Member Functions Documentation

ConnMethodUpdatedL(CCmPluginBaseEng *)

voidConnMethodUpdatedL(CCmPluginBaseEng *aCM)

This is called after the new cm have been updated This function updates the Id field

Parameters

CCmPluginBaseEng * aCM- the CM to change

CreateConnectionMethodL(TUint32, TCmPluginInitParam &)

CCmPluginBase *CreateConnectionMethodL(TUint32aImplementationUid,
TCmPluginInitParam &aParams
)

Creates cm and places it into the pool.

Parameters

TUint32 aImplementationUid- Bearer Type
TCmPluginInitParam & aParamsInit params for the plugin

CreateConnectionMethodL(TUint32, TCmPluginInitParam &, TUint32)

CCmPluginBase *CreateConnectionMethodL(TUint32aImplementationUid,
TCmPluginInitParam &aParams,
TUint32aConnMethodId
)

Creates cm and places it into the pool.

Parameters

TUint32 aImplementationUid- Bearer Type
TCmPluginInitParam & aParamsInit params for the plugin
TUint32 aConnMethodIdPredefined id for the connection method.

CreateConnectionMethodL(CCmPluginBaseEng *)

CCmPluginBase *CreateConnectionMethodL(CCmPluginBaseEng *pluginBaseEng)

Creates cm and places it into the pool.

Parameters

CCmPluginBaseEng * pluginBaseEng- Object to put in the pool

CreateDestinationL(const TDesC &, TUint32)

CCmDestinationImpl *CreateDestinationL(const TDesC &aName,
TUint32aDestId
)

Creates a destination if it does not exist.

Parameters

const TDesC & aName- name of the destination requested
TUint32 aDestId- predefined id for the destination

DestinationUpdated(CCmDestinationImpl *)

voidDestinationUpdated(CCmDestinationImpl *aDestination)

This is called after the new destination have been updated This function updates the iDestinationId field in the TObjectPoolDestinationItem

Parameters

CCmDestinationImpl * aDestination- the destination to change

GetConnectionMethodL(TUint32, CCmDestinationImpl *)

CCmPluginBase *GetConnectionMethodL(TUint32aCmId,
CCmDestinationImpl *aParentDest
)

Returns a pointer to an allready existing connecton method

Parameters

TUint32 aCmId- ID of the CM requested
CCmDestinationImpl * aParentDest- parent destination

GetDestinationL(TUint32)

CCmDestinationImpl *GetDestinationL(TUint32aDestinationId)

If the destinaton impl is in the pool returns a pointer to it. If the destinaton impl is not in the pool creates it.

Parameters

TUint32 aDestinationId- ID of the destination requested

GetDestinationL(const TDesC &)

CCmDestinationImpl *GetDestinationL(const TDesC &aName)

If the destinaton impl is in the pool returns a pointer to it. If the destinaton impl is not in the pool creates it.

Parameters

const TDesC & aName- name of the destination requested

InsertConnectionMethodL(CCmPluginBaseEng *)

voidInsertConnectionMethodL(CCmPluginBaseEng *pluginBaseEng)

Insert cm and places it into the pool. API doesn't use CCmPluginBase. So, nothing returns

Parameters

CCmPluginBaseEng * pluginBaseEng- Object to put in the pool

RemoveConnectionMethodL(CCmPluginBase *)

voidRemoveConnectionMethodL(CCmPluginBase *aCM)

Removes a connection method impl from the object pool.

Parameters

CCmPluginBase * aCM

RemoveConnectionMethodL(CCmPluginBaseEng *)

voidRemoveConnectionMethodL(CCmPluginBaseEng *aCM)

Removes a connection method impl from the object pool.

Parameters

CCmPluginBaseEng * aCM

RemoveDestination(CCmDestinationImpl *)

voidRemoveDestination(CCmDestinationImpl *aDestination)

Removes a destination impl from the object pool.

Parameters

CCmDestinationImpl * aDestination- the destination to remove

RemoveDestination(CCmDestinationData *)

voidRemoveDestination(CCmDestinationData *aDestination)

Removes a destination data from the object pool.

Parameters

CCmDestinationData * aDestination- the destination to remove

Member Data Documentation

CCmManagerImpl & iCmManagerImpl

CCmManagerImpl &iCmManagerImpl[private]

RArray< TObjectPoolCMItem > iConnectionMethodArray

RArray< TObjectPoolCMItem >iConnectionMethodArray[private]

RArray< TObjectPoolDestinationItem > iDestinationArray

RArray< TObjectPoolDestinationItem >iDestinationArray[private]