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()

void ConstructL ( ) [private]

construct and init the children

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

CPort * GetPortL ( const TDesC & aName,
TUint aPort,
CSerial * aSerial,
TUint aMode,
TUint aRole,
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 & aName name of the port
TUint aPort port number
CSerial * aSerial pointer to the CSerial object
TUint aMode mode; Exclusive, Shared or Preemptable
TUint aRole role; DTE or DCE
CCommSession * aSession handle 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 & aName name 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 & aFileName name 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 & aName name of the port
TSerialInfo & aSerial serial info will be written here

Member Data Documentation

CObjectConIx * iContainer

CObjectConIx * iContainer [private]

CObjectCon * iPorts

CObjectCon * iPorts [private]

CObjectCon * iProviders

CObjectCon * iProviders [private]