CPortManager Class Reference

class CPortManager : public CBase

Owner object for all the CPort Objects. There is one instance of this, owned by the CCommSession object. It has no explicit destructor because the C32 thread will never finish unless panicked

Inherits from

Constructor & Destructor Documentation

~CPortManager()

~CPortManager()

Member Functions Documentation

ConstructL()

voidConstructL()[private]

construct and init the children

GetPortL(const TDesC &, TUint, CSerial *, TUint, TUint, CCommSession *)

CPort *GetPortL(const TDesC &aName,
TUintaPort,
CSerial *aSerial,
TUintaMode,
TUintaRole,
CCommSession *aSession
)

Return a port matching a given name for a given mode. If the port already exists, increments the count on this CObject.

leave
Leave This function may leave

Parameters

const TDesC & aNamename of the port
TUint aPortport number
CSerial * aSerialpointer to the CSerial object
TUint aModemode; Exclusive, Shared or Preemptable
TUint aRolerole; DTE or DCE
CCommSession * aSessionhandle to the clients session

GetSerialL(const TDesC &)

CSerial *GetSerialL(const TDesC &aName)

Find a previously loaded CSY by name and return its factory

leave
Leave This function may leave

Parameters

const TDesC & aNamename of the port

LoadCommModuleL(const TDesC &)

CSerial *LoadCommModuleL(const TDesC &aFileName)

Load a comms module on user request or increments the ref count for the module. This function loads the CSY specified in aFileName, and if found calls the first ordinal on it. The CSY instantiates itself and returns the pointer to the CSerial object implemented in the CSY. If everything goes OK then this pointer will be returned to the callee which then takes ownedship of it.

leave
Leave This function may leave

Parameters

const TDesC & aFileNamename of the new CSY module to load (i.e. ECUART.CSY)

NewL()

CPortManager *NewL()[static]

Locate and initialise all loadable port modules

leave
Leave This function may leave

PortInfo(const TPortName &, TSerialInfo &)

TInt PortInfo(const TPortName &aName,
TSerialInfo &aSerial
)

get info on a specified port.

Parameters

const TPortName & aNamename of the port
TSerialInfo & aSerialserial info will be written here

Member Data Documentation

CObjectConIx * iContainer

CObjectConIx *iContainer[private]

CObjectCon * iPorts

CObjectCon *iPorts[private]

CObjectCon * iProviders

CObjectCon *iProviders[private]