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
Constructor & Destructor Documentation
Member Functions Documentation
ConstructL()
void
|
ConstructL
|
(
|
)
|
[private]
|
construct and init the children
GetPortL(const TDesC &, TUint, CSerial *, TUint, TUint, CCommSession *)
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 &)
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 &)
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()
Locate and initialise all loadable port modules
-
leave
-
Leave This function may leave
PortInfo(const TPortName &, TSerialInfo &)
get info on a specified port.
Member Data Documentation
CObjectConIx * iContainer
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.