91 #endif // P_CONFIG_FILE
134 #endif // P_CONFIG_FILE
461 #endif // PTLIB_MODEM_H
Status
Definition: modem.h:421
Is currently initialising the modem.
Definition: modem.h:424
PString postDialCmd
Definition: modem.h:452
PBoolean HangUp()
Send the hang up meta-command string to the modem.
Status GetStatus() const
Get the modem objects current state.
PString busyReply
Definition: modem.h:452
PString preDialCmd
Definition: modem.h:452
PString GetNoCarrierString() const
Get the modem no carrier response meta-command string.
#define PCLASSINFO(cls, par)
Declare all the standard PTLib class information.
Definition: object.h:1049
PBoolean CanRead() const
The modem is in a state that allows the user application to read from the channel.
PString GetInitString() const
Get the modem initialisation meta-command string.
Has been initialised but is not connected.
Definition: modem.h:425
virtual void SaveSettings(PConfig &cfg)
Save the current port settings into the configuration file.
A class representing a configuration for the application.
Definition: config.h:67
This class defines an I/O channel that communicates via a serial port.
Definition: serchan.h:51
is currently de-initialising the modem
Definition: modem.h:435
PBoolean Deinitialise()
Send the de-initialisation meta-command string to the modem.
PBoolean Initialise()
Send the initialisation meta-command string to the modem.
Initialisation sequence failed.
Definition: modem.h:426
PString deinitCmd
Definition: modem.h:452
void SetPostDialString(const PString &str)
Set the modem post-dial meta-command string.
The de-initialisation failed.
Definition: modem.h:436
void SetInitString(const PString &str)
Set the modem initialisation meta-command string.
Dial failed due to no carrier.
Definition: modem.h:431
Dialling in progress, awaiting connection.
Definition: modem.h:429
FlowControl
Configuration of serial port flow control options.
Definition: serchan.h:78
BOOL PBoolean
Definition: object.h:102
A class representing a modem attached to a serial port.
Definition: modem.h:61
PString GetPostDialString() const
Get the modem post-dial meta-command string.
Has not been opened yet.
Definition: modem.h:422
Status status
Definition: modem.h:456
PBoolean CanSendUser() const
The modem is in a state that allows the user command to start.
void SetPreDialString(const PString &str)
Set the modem pre-dial meta-command string.
virtual PBoolean Close()
Close the channel, shutting down the link to the data source.
PString GetDeinitString() const
Get the modem de-initialisation meta-command string.
Is currently dialling.
Definition: modem.h:427
The hang up failed.
Definition: modem.h:434
The character string class.
Definition: pstring.h:108
Is currently hanging up the modem.
Definition: modem.h:433
PBoolean CanDeinitialise() const
The modem is in a state that allows the de-initialise to start.
virtual PBoolean Open(const PString &port, DWORD speed=0, BYTE data=0, Parity parity=DefaultParity, BYTE stop=0, FlowControl inputFlow=DefaultFlowControl, FlowControl outputFlow=DefaultFlowControl)
Open the modem serial channel on the specified port.
Dial was successful and modem has connected.
Definition: modem.h:432
Parity
Configuration of serial port parity options.
Definition: serchan.h:62
Dial failed due to line busy.
Definition: modem.h:430
PBoolean CanDial() const
The modem is in a state that allows the dial to start.
void SetDeinitString(const PString &str)
Set the modem de-initialisation meta-command string.
Is currently sending a user command.
Definition: modem.h:437
PString initCmd
Definition: modem.h:452
PString hangUpCmd
Definition: modem.h:452
Use the default flow control, ie do not change it.
Definition: serchan.h:80
PString noCarrierReply
Definition: modem.h:452
Is open but has not yet been initialised.
Definition: modem.h:423
void SetNoCarrierString(const PString &str)
Set the modem no carrier response meta-command string.
PBoolean CanInitialise() const
The modem is in a state that allows the initialise to start.
Use the default parity, ie do not change it.
Definition: serchan.h:64
PBoolean CanHangUp() const
The modem is in a state that allows the hang up to start.
PString GetConnectString() const
Get the modem connect response meta-command string.
PString GetBusyString() const
Get the modem busy response meta-command string.
Dial failed.
Definition: modem.h:428
PBoolean SendUser(const PString &str)
Send an arbitrary user meta-command string to the modem.
PString connectReply
Definition: modem.h:452
PString GetPreDialString() const
Get the modem pre-dial meta-command string.
PBoolean Dial(const PString &number)
Send the dial meta-command strings to the modem.
void SetConnectString(const PString &str)
Set the modem connect response meta-command string.
PModem()
Create a modem object on the serial port specified.
void SetBusyString(const PString &str)
Set the modem busy response meta-command string.
void SetHangUpString(const PString &str)
Set the modem hang up meta-command string.
PString GetHangUpString() const
Get the modem hang up meta-command string.