#include <modem.h>
Inheritance diagram for PModem:
A modem object is always in a particular state. This state determines what operations are allowed which then move the object to other states. The operations are the exchange of strings in "chat" script.
The following defaults are used for command strings: initialise ATZ
deinitialise +++
pre-dial ATDT
post-dial busy reply
BUSY
no carrier reply NO CARRIER
connect reply CONNECT
hang up +++
|
|
Create a modem object on the serial port specified. If no port was specified do not open it. It does not initially have a valid port name. See the PSerialChannel class for more information on the parameters. |
|
|
|
Open the modem serial channel obtaining the parameters from standard variables in the configuration file. Note that it assumed that the correct configuration file section is already set.
|
|
|
|
The modem is in a state that allows the de-initialise to start.
|
|
The modem is in a state that allows the dial to start.
|
|
The modem is in a state that allows the hang up to start.
|
|
The modem is in a state that allows the initialise to start.
|
|
The modem is in a state that allows the user application to read from the channel. Reading while this is TRUE can interfere with the operation of the meta-string processing. This function is only usefull when multi-threading is used.
|
|
The modem is in a state that allows the user command to start.
|
|
Close the channel, shutting down the link to the data source.
Reimplemented from PSerialChannel. |
|
Send the de-initialisation meta-command string to the modem. The return value indicates that the conditions for the operation to start were met, ie the serial port was open etc and the command was successfully sent with all replies met.
|
|
Send the dial meta-command strings to the modem. The return value indicates that the conditions for the operation to start were met, ie the serial port was open etc and the command was successfully sent with all replies met.
The string sent to the modem is the concatenation of the pre-dial string, a
|
|
Get the modem busy response meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
|
|
Get the modem connect response meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
|
|
Get the modem de-initialisation meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
|
|
Get the modem hang up meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
|
|
Get the modem initialisation meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
|
|
Get the modem no carrier response meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
|
|
Get the modem post-dial meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
|
|
Get the modem pre-dial meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
|
|
Get the modem objects current state.
|
|
Send the hang up meta-command string to the modem. The return value indicates that the conditions for the operation to start were met, ie the serial port was open etc and the command was successfully sent with all replies met.
|
|
Send the initialisation meta-command string to the modem. The return value indicates that the conditions for the operation to start were met, ie the serial port was open etc and the command was successfully sent with all replies met.
|
|
Open the modem serial port obtaining the parameters from standard variables in the configuration file. Note that it assumed that the correct configuration file section is already set.
Reimplemented from PSerialChannel. |
|
Open the modem serial channel on the specified port. See the PSerialChannel class for more information on the parameters.
Reimplemented from PSerialChannel. |
|
Save the current port settings into the configuration file. Note that it assumed that the correct configuration file section is already set.
Reimplemented from PSerialChannel. |
|
Send an arbitrary user meta-command string to the modem. The return value indicates that the conditions for the operation to start were met, ie the serial port was open etc and the command was successfully sent with all replies met.
|
|
Set the modem busy response meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
Note there is an implied
|
|
Set the modem connect response meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
Note there is an implied
|
|
Set the modem de-initialisation meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
Note there is an implied
|
|
Set the modem hang up meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
Note there is an implied
|
|
Set the modem initialisation meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
Note there is an implied
|
|
Set the modem no carrier response meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
Note there is an implied
|
|
Set the modem post-dial meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
Note there is not an implied
|
|
Set the modem pre-dial meta-command string. See the PChannel::SendCommandString() function for more information on the format of the command string.
Note there is an implied
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|