Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PModem::CanDial (  ) const

The modem is in a state that allows the dial to start.

Returns:
TRUE if the Dial() function may proceeed.

Definition at line 292 of file modem.cxx.

References AwaitingResponse, Connected, DeinitialiseFailed, Deinitialising, Dialling, HangingUp, InitialiseFailed, Initialising, SendingUserCommand, Uninitialised, and Unopened.

Referenced by Dial().

{
  switch (status) {
    case Unopened :
    case Uninitialised :
    case Initialising :
    case InitialiseFailed :
    case Dialling :
    case AwaitingResponse :
    case Connected :
    case HangingUp :
    case Deinitialising :
    case DeinitialiseFailed :
    case SendingUserCommand :
      return FALSE;

    default :
      return TRUE;
  }
}

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index