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

ConnectModule Class Reference

Call Module for connection establishment at incoming connection. More...

#include <connectmodule.h>

Inheritance diagram for ConnectModule:

CallModule CallInterface List of all members.

Public Methods

 ConnectModule (Connection *conn, Connection::service_t service, string faxStationID, string faxHeadline) throw (CapiWrongState,CapiExternalError)
 Constructor. Create object.

void mainLoop () throw (CapiWrongState,CapiExternalError, CapiMsgError)
 Accept connection and wait for complete establishment.

void callConnected ()
 Finish mainLoop() if call is completely established.


Private Attributes

Connection::service_t service
 service with which we should connect

string faxStationID
 fax Station ID to use

string faxHeadline
 fax headlint to use


Detailed Description

Call Module for connection establishment at incoming connection.

This module serves to accept an incoming call and wait for the connection establishment. It is the first module you should call when an incoming call is signalled and you want to accept it.

Author:
Gernot Hillier


Constructor & Destructor Documentation

ConnectModule::ConnectModule Connection   conn,
Connection::service_t    service,
string    faxStationID,
string    faxHeadline
throw (CapiWrongState,CapiExternalError)
 

Constructor. Create object.

Parameters:
conn  reference to Connection object
service  service to connect with as described in Connection::service_t
faxStationID  fax station ID, only necessary when connecting in FAXG3 mode
faxHeadline  fax headline, only necessary when connecting in FAXG3 mode
Exceptions:
CapiExternalError  Thrown if Connection already up
CapiWrongState  Thrown if Connection not in waiting state


Member Function Documentation

void ConnectModule::callConnected   [virtual]
 

Finish mainLoop() if call is completely established.

Reimplemented from CallModule.

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

Accept connection and wait for complete establishment.

Exceptions:
CapiExternalError  Thrown by Connection::connectWaiting()
CapiMsgError  Thrown by Connection::connectWaiting()
CapiWrongState  Thrown by Connection::connectWaiting()

Reimplemented from CallModule.


Member Data Documentation

string ConnectModule::faxHeadline [private]
 

fax headlint to use

string ConnectModule::faxStationID [private]
 

fax Station ID to use

Connection::service_t ConnectModule::service [private]
 

service with which we should connect


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