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

callmodule.h

Go to the documentation of this file.
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 CALLMODULE_H 00018 #define CALLMODULE_H 00019 00020 #include "../backend/callinterface.h" 00021 #include "../backend/capiexception.h" 00022 00023 class Connection; 00024 00043 class CallModule: public CallInterface 00044 { 00045 public: 00052 CallModule(Connection* connection, int timeout=-1, bool DTMF_exit=false); 00053 00056 ~CallModule(); 00057 00068 virtual void mainLoop() throw (CapiWrongState,CapiMsgError,CapiExternalError,CapiError); 00069 00074 virtual void transmissionComplete(void); 00075 00080 virtual void alerting (void); 00081 00086 virtual void callConnected (void); 00087 00092 virtual void callDisconnectedLogical (void); 00093 00098 virtual void callDisconnectedPhysical (void); 00099 00104 virtual void gotDTMF (void); 00105 00110 virtual void dataIn (unsigned char* data, unsigned length); 00111 00112 protected: 00115 virtual long getTime(); 00116 00119 void resetTimer(int new_timeout); 00120 00121 bool DTMF_exit; 00122 bool finish; 00123 bool abort; 00124 Connection* conn; 00125 long exit_time; 00126 int timeout; 00127 }; 00128 00129 #endif 00130 00131 /* History 00132 00133 $Log: callmodule.h,v $ 00134 Revision 1.3 2003/04/17 10:40:32 gernot 00135 - support new ALERTING notification feature of backend 00136 00137 Revision 1.2 2003/03/06 09:35:10 gernot 00138 - fixed typo 00139 00140 Revision 1.1.1.1 2003/02/19 08:19:53 gernot 00141 initial checkin of 0.4 00142 00143 Revision 1.12 2002/12/06 13:08:30 ghillie 00144 minor doc change 00145 00146 Revision 1.11 2002/11/29 10:27:44 ghillie 00147 - updated comments, use doxygen format now 00148 00149 Revision 1.10 2002/11/25 21:00:53 ghillie 00150 - improved documentation, now doxygen-readabl 00151 00152 Revision 1.9 2002/11/25 11:56:21 ghillie 00153 - changed semantics of timeout parameter: -1 = infinite now, 0 = 0 seconds (i.e. abort immediately) 00154 00155 Revision 1.8 2002/11/22 15:18:06 ghillie 00156 - added support for DTMF_exit 00157 - de-register Connection object uncondionally in destructor (checking for abort removed) 00158 00159 Revision 1.7 2002/11/21 15:34:50 ghillie 00160 - mainLoop() doesn't return any value any more, but throws CapiWrongState when connection is lost 00161 00162 Revision 1.6 2002/11/15 13:51:49 ghillie 00163 fix: call module wasn't finished when call was only connected/disconnected physically 00164 00165 Revision 1.5 2002/11/14 17:05:19 ghillie 00166 major structural changes - much is easier, nicer and better prepared for the future now: 00167 - added DisconnectLogical handler to CallInterface 00168 - DTMF handling moved from CallControl to Connection 00169 - new call module ConnectModule for establishing connection 00170 - python script reduced from 2 functions to one (callWaiting, callConnected 00171 merged to callIncoming) 00172 - call modules implement the CallInterface now, not CallControl any more 00173 => this freed CallControl from nearly all communication stuff 00174 00175 Revision 1.4 2002/11/13 15:25:08 ghillie 00176 fixed small typo 00177 00178 Revision 1.3 2002/11/13 08:34:54 ghillie 00179 moved history to the bottom 00180 00181 Revision 1.2 2002/11/12 15:52:08 ghillie 00182 added data in handler 00183 00184 Revision 1.1 2002/10/25 13:29:39 ghillie 00185 grouped files into subdirectories 00186 00187 Revision 1.3 2002/10/23 14:25:29 ghillie 00188 - a callmodule has to register itself at CallControl so it can be aborted if call is gone 00189 - added distinction between "exited normally" and "aborted because call is gone" -> different results of mainLoop() 00190 00191 Revision 1.2 2002/10/10 12:45:40 gernot 00192 added AudioReceive module, some small details changed 00193 00194 Revision 1.1 2002/10/09 14:34:22 gernot 00195 added CallModule class as base class for all call handling modules 00196 00197 */

Generated on Sun Nov 28 14:37:44 2004 for CapiSuite by doxygen 1.3.8