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: 00046 ConnectModule(Connection *conn, Connection::service_t service, string faxStationID, string faxHeadline) throw (CapiWrongState,CapiExternalError); 00047 00054 void mainLoop() throw (CapiWrongState,CapiExternalError, CapiMsgError); 00055 00058 void callConnected(); 00059 00060 private: 00061 Connection::service_t service; 00062 string faxStationID, 00063 faxHeadline; 00064 }; 00065 00066 #endif 00067 00068 /* History 00069 00070 $Log: connectmodule.h,v $ 00071 Revision 1.4 2003/12/31 16:28:55 gernot 00072 * src/modules/connectmodule.{h,cpp} (ConnectModule): throw 00073 CapiExternalError only when connection's already up, otherwise 00074 use CapiWrongState 00075 00076 Revision 1.3 2003/12/28 21:01:04 gernot 00077 - reworked TODO, disabled automatic log message adding to source files 00078 00079 Old Log (for new changes see ChangeLog): 00080 00081 Revision 1.1.1.1 2003/02/19 08:19:53 gernot 00082 initial checkin of 0.4 00083 00084 Revision 1.7 2002/11/29 10:27:44 ghillie 00085 - updated comments, use doxygen format now 00086 00087 Revision 1.6 2002/11/25 11:57:19 ghillie 00088 - use service_type instead of CIP value in application layer 00089 00090 Revision 1.5 2002/11/22 15:18:56 ghillie 00091 added faxStationID, faxHeadline parameters 00092 00093 Revision 1.4 2002/11/21 15:33:44 ghillie 00094 - moved code from constructor/destructor to overwritten mainLoop() method 00095 00096 Revision 1.3 2002/11/20 17:25:29 ghillie 00097 added missing throw() declaration 00098 00099 Revision 1.2 2002/11/19 15:57:19 ghillie 00100 - Added missing throw() declarations 00101 - phew. Added error handling. All exceptions are caught now. 00102 00103 Revision 1.1 2002/11/14 17:05:58 ghillie 00104 initial checkin 00105 00106 */