MComm Class Reference

class MComm
Public Member Functions
MComm ()
IMPORT_C void CommCancel ()
IMPORT_C void CommClose ()
IMPORT_C void CommConstructL ( TInt , TInt )
IMPORT_C void CommDelete ()
IMPORT_C TBool CommIsReading ()
IMPORT_C TBool CommIsWriting ()
IMPORT_C TInt CommOpen (const TDesC &, TCommAccess )
IMPORT_C TInt CommOpen (const TDesC &, const TDesC &, TCommAccess )
IMPORT_C TInt CommOpen (const TDesC &, const TDesC &, TCommAccess , TCommRole )
IMPORT_C void CommRead ( TDes8 &)
IMPORT_C void CommReadCancel ()
void CommReadComplete ( TInt )
IMPORT_C void CommReadOneOrMore ( TDes8 &)
IMPORT_C void CommReadReady ()
IMPORT_C void CommWrite (const TDesC8 &)
IMPORT_C void CommWriteCancel ()
void CommWriteComplete ( TInt )
IMPORT_C void CommWriteReady ()
Protected Attributes
CCommLinkStatus * iCommLinkStatus
RComm iCommPort
CCommReader * iCommReader
RCommServ iCommServer
CCommWriter * iCommWriter

Constructor & Destructor Documentation

MComm()

IMPORT_C MComm ( )

Constructor

Member Functions Documentation

CommCancel()

IMPORT_C void CommCancel ( )

CommClose()

IMPORT_C void CommClose ( )

CommConstructL(TInt, TInt)

IMPORT_C void CommConstructL ( TInt aReadPriority,
TInt aWritePriority
)

Parameters

TInt aReadPriority
TInt aWritePriority

CommDelete()

IMPORT_C void CommDelete ( )

CommIsReading()

IMPORT_C TBool CommIsReading ( ) const

CommIsWriting()

IMPORT_C TBool CommIsWriting ( ) const

CommOpen(const TDesC &, TCommAccess)

IMPORT_C TInt CommOpen ( const TDesC & aName,
TCommAccess aAccess
)

Parameters

const TDesC & aName
TCommAccess aAccess

CommOpen(const TDesC &, const TDesC &, TCommAccess)

IMPORT_C TInt CommOpen ( const TDesC & aDll,
const TDesC & aName,
TCommAccess aAccess
)

Parameters

const TDesC & aDll
const TDesC & aName
TCommAccess aAccess

CommOpen(const TDesC &, const TDesC &, TCommAccess, TCommRole)

IMPORT_C TInt CommOpen ( const TDesC & aDll,
const TDesC & aName,
TCommAccess aAccess,
TCommRole aRole
)

Parameters

const TDesC & aDll
const TDesC & aName
TCommAccess aAccess
TCommRole aRole

CommRead(TDes8 &)

IMPORT_C void CommRead ( TDes8 & aDes )

Parameters

TDes8 & aDes

CommReadCancel()

IMPORT_C void CommReadCancel ( )

CommReadComplete(TInt)

void CommReadComplete ( TInt aStatus ) [pure virtual]

Parameters

TInt aStatus

CommReadOneOrMore(TDes8 &)

IMPORT_C void CommReadOneOrMore ( TDes8 & aDes )

Parameters

TDes8 & aDes

CommReadReady()

IMPORT_C void CommReadReady ( )

CommWrite(const TDesC8 &)

IMPORT_C void CommWrite ( const TDesC8 & aDes )

Parameters

const TDesC8 & aDes

CommWriteCancel()

IMPORT_C void CommWriteCancel ( )

CommWriteComplete(TInt)

void CommWriteComplete ( TInt aStatus ) [pure virtual]

Parameters

TInt aStatus

CommWriteReady()

IMPORT_C void CommWriteReady ( )

Member Data Documentation

CCommLinkStatus * iCommLinkStatus

CCommLinkStatus * iCommLinkStatus [protected]

RComm iCommPort

RComm iCommPort [protected]

CCommReader * iCommReader

CCommReader * iCommReader [protected]

RCommServ iCommServer

RCommServ iCommServer [protected]

CCommWriter * iCommWriter

CCommWriter * iCommWriter [protected]