Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Switch2FaxG3 Class Reference

Call Module for switching to FAXG3 service from another one. More...

#include <switch2faxG3.h>

Inheritance diagram for Switch2FaxG3:

CallModule CallInterface List of all members.

Public Methods

 Switch2FaxG3 (Connection *conn, string faxStationID, string faxHeadline) throw (CapiWrongState)
 Constructor. Create object.

void mainLoop () throw (CapiWrongState, CapiExternalError, CapiMsgError)
 Do all needed steps (disconnect logical, wait, switch to fax, wait).

void callDisconnectedLogical ()
 Finish first wait if the logical disconnection succeeded.

void callConnected ()
 Finish second wait if logical connection has been re-established.


Private Attributes

string faxStationID
 fax station ID to use

string faxHeadline
 fax headline to use


Detailed Description

Call Module for switching to FAXG3 service from another one.

This module does all the necessary steps to switch from another service (mostly VOICE) to FaxG3 service (see Connection::service_t). The steps are:

We throw CapiWrongState whenever disconnection occurs.


Constructor & Destructor Documentation

Switch2FaxG3::Switch2FaxG3 Connection   conn,
string    faxStationID,
string    faxHeadline
throw (CapiWrongState)
 

Constructor. Create object.

Parameters:
conn  reference to Connection object
faxStationID  fax station ID to use
faxHeadline  fax headline to use
Exceptions:
CapiWrongState  Thrown if connection not up (thrown by base class)


Member Function Documentation

void Switch2FaxG3::callConnected   [virtual]
 

Finish second wait if logical connection has been re-established.

Reimplemented from CallModule.

void Switch2FaxG3::callDisconnectedLogical   [virtual]
 

Finish first wait if the logical disconnection succeeded.

Reimplemented from CallModule.

void Switch2FaxG3::mainLoop   throw (CapiWrongState, CapiExternalError, CapiMsgError) [virtual]
 

Do all needed steps (disconnect logical, wait, switch to fax, wait).

Exceptions:
CapiWrongState  Thrown by Connection::changeProtocol
CapiExternalError  Thrown by Connection::changeProtocol
CapiMsgError  Thrown by Connection::changeProtocol, Connection::disconnectCall

Reimplemented from CallModule.


Member Data Documentation

string Switch2FaxG3::faxHeadline [private]
 

fax headline to use

string Switch2FaxG3::faxStationID [private]
 

fax station ID to use


The documentation for this class was generated from the following files:
Generated on Mon Jan 5 12:20:00 2004 for CapiSuite by doxygen1.2.18