CFaxModem Class Reference
class CFaxModem : public CBase
|
Constructor & Destructor Documentation
CFaxModem(RFax::TProgress &)
Member Functions Documentation
CommitTransmitBufferL(void)
void
|
CommitTransmitBufferL
|
(
|
void
|
|
)
|
|
Transmits iTransmitBuffer by calling SendL. After sending sets buffer's length to zero.
Note:
This function can leave.
SendL()
function
ConstructL(TFaxServerSessionSettings *)
Dropdtr(void)
void
|
Dropdtr
|
(
|
void
|
|
)
|
[private]
|
ExportL(const TDesC8 &)
Sends a textual string to the modem with delay.
SendL
function
Note:
This function can leave
Parameters
const
TDesC8
&
|
- const. ref. to the string descriptor to be sent to modem.
|
GetMatchL(const TDesC8 &, TInt)
Searches for a given substring in modem's answer. also calls ProgressUpdate().
ImportL
function
-
leave
-
This function can leave
Parameters
const
TDesC8
&
|
- sample string.
|
TInt
|
- timeout in seconds.
|
HangupProcedureL()
void
|
HangupProcedureL
|
(
|
)
|
[private]
|
Hang up. Senda 'ATH' command to the modem and sets Echo off, fax class = 0
Note:
This function can leave
ImportL(TDes8 &, TInt)
Parameters
TDes8
&
|
- ref. to the string descriptor that will accept data from modem if any. will contain string in upper case without terminating 0x0d, 0x0a.
|
TInt
|
- Timeout in seconds.
|
LowerDTR(void)
void
|
LowerDTR
|
(
|
void
|
|
)
|
[private]
|
NewL(TFaxServerSessionSettings *, RFax::TProgress &)
NewLC(TFaxServerSessionSettings *, RFax::TProgress &)
RaiseDTR(void)
void
|
RaiseDTR
|
(
|
void
|
|
)
|
[private]
|
RxcharWaitL(TInt &)
Reads 1 byte from serial port (or iReceiveBuffer) and puts it to iReadone buffer.
Parameters
TInt
&
|
- timeout in microseconds.
|
SendL(const TDesC8 &)
void
|
SendL
|
(
|
const
TDesC8
&
|
|
)
|
[private]
|
SendTransmitBufferL(void)
void
|
SendTransmitBufferL
|
(
|
void
|
|
)
|
[inline]
|
SetModemCommandModeL(void)
void
|
SetModemCommandModeL
|
(
|
void
|
|
)
|
[private]
|
Switch modem into command mode and clear its buffer. LYN-585JMR defect fix. By Dmitry Lyokhin. 11.03.02
Note:
This function can leave
Silence(TInt)
void
|
Silence
|
(
|
TInt
|
|
)
|
const
|
Wait given number of microseconds
Speed(TBps)
void
|
Speed
|
(
|
TBps
|
|
)
|
[private]
|
SubImportL(TDes8 &, TInt)
Gets textual answer from the modem.
RxcharWait function,
iReadone
Note:
This function can leave
Parameters
TDes8
&
|
- ref. to the string descriptor that will accept data from modem if any. will contain string in upper case without terminating 0x0d, 0x0a
|
TInt
|
- Timeout in seconds.
|
TxcharL(TUint8)
Sends 1 byte to modem.
Note:
This function can leave.
SendL()
function
Txstat(void)
Does nothing. Just returns 0.
Xonon(void)
Turns on obeying XON, XOFF characters and CTS signal
Member Data Documentation
RComm
iCommSession
RComm
|
iCommSession
|
[protected]
|
TBool
iFileOpen
TBool
|
iFileOpen
|
[protected]
|
RFs
iFileSession
RFs
|
iFileSession
|
[protected]
|
TBool
iFileSessionOpen
TBool
|
iFileSessionOpen
|
[protected]
|
TBool
iModemSet
TBool
|
iModemSet
|
[protected]
|
TBuf8< 256 > iOurMessage
TBuf8
< 256 >
|
iOurMessage
|
TBool
iPortOpen
TBool
|
iPortOpen
|
[protected]
|
RFax::TProgress & iProgress
TCommConfig
iRS232Settings
TBuf8< KBufSize > iReceiveBuffer
TBuf8< 1 > iSendone
TBuf8
< 1 >
|
iSendone
|
[protected]
|
TTime
iStartTime
TTime
|
iStartTime
|
[protected]
|
TBool
iTimingLoopDelay
TBool
|
iTimingLoopDelay
|
[protected]
|
TBuf8< KBufSize+16 > iTransmitBuffer
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.