00001 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef CONNECTMODULE_H 00018 #define CONNECTMODULE_H 00019 00020 #include "callmodule.h" 00021 #include "../backend/connection.h" 00022 00023 00024 using namespace std; 00025 00034 class ConnectModule: public CallModule 00035 { 00036 public: 00044 ConnectModule(Connection *conn, Connection::service_t service, string faxStationID, string faxHeadline); 00045 00052 void mainLoop() throw (CapiWrongState, CapiExternalError, CapiMsgError); 00053 00056 void callConnected(); 00057 00058 private: 00059 Connection::service_t service; 00060 string faxStationID, 00061 faxHeadline; 00062 }; 00063 00064 #endif 00065 00066 /* History 00067 00068 $Log: connectmodule.h,v $ 00069 Revision 1.1 2003/02/19 08:19:53 gernot 00070 Initial revision 00071 00072 Revision 1.7 2002/11/29 10:27:44 ghillie 00073 - updated comments, use doxygen format now 00074 00075 Revision 1.6 2002/11/25 11:57:19 ghillie 00076 - use service_type instead of CIP value in application layer 00077 00078 Revision 1.5 2002/11/22 15:18:56 ghillie 00079 added faxStationID, faxHeadline parameters 00080 00081 Revision 1.4 2002/11/21 15:33:44 ghillie 00082 - moved code from constructor/destructor to overwritten mainLoop() method 00083 00084 Revision 1.3 2002/11/20 17:25:29 ghillie 00085 added missing throw() declaration 00086 00087 Revision 1.2 2002/11/19 15:57:19 ghillie 00088 - Added missing throw() declarations 00089 - phew. Added error handling. All exceptions are caught now. 00090 00091 Revision 1.1 2002/11/14 17:05:58 ghillie 00092 initial checkin 00093 00094 */