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 AUDIOSEND_H 00018 #define AUDIOSEND_H 00019 00020 #include <string> 00021 #include "callmodule.h" 00022 00023 class Connection; 00024 00025 using namespace std; 00026 00040 class AudioSend: public CallModule 00041 { 00042 public: 00050 AudioSend(Connection *conn, string file, bool DTMF_exit) throw (CapiExternalError); 00051 00059 void mainLoop() throw (CapiError,CapiWrongState,CapiExternalError,CapiMsgError); 00060 00064 void transmissionComplete(); 00065 00070 long duration(); 00071 00072 private: 00073 string file; 00074 long start_time; 00075 }; 00076 00077 #endif 00078 00079 /* History 00080 00081 $Log: audiosend.h,v $ 00082 Revision 1.1 2003/02/19 08:19:53 gernot 00083 Initial revision 00084 00085 Revision 1.13 2002/12/04 11:38:50 ghillie 00086 - added time measurement: save time in start_time at the begin of mainLoop() and return difference to getTime() in duration() 00087 00088 Revision 1.12 2002/12/02 12:32:21 ghillie 00089 renamed Connection::SPEECH to Connection::VOICE 00090 00091 Revision 1.11 2002/11/29 10:27:44 ghillie 00092 - updated comments, use doxygen format now 00093 00094 Revision 1.10 2002/11/25 21:00:53 ghillie 00095 - improved documentation, now doxygen-readabl 00096 00097 Revision 1.9 2002/11/25 11:54:35 ghillie 00098 - tests for speech mode before receiving now 00099 - small performance improvement (use string::empty() instead of comparison to "") 00100 00101 Revision 1.8 2002/11/22 15:16:20 ghillie 00102 added support for finishing when DTMF is received 00103 00104 Revision 1.7 2002/11/21 15:32:40 ghillie 00105 - moved code from constructor/destructor to overwritten mainLoop() method 00106 00107 Revision 1.6 2002/11/19 15:57:19 ghillie 00108 - Added missing throw() declarations 00109 - phew. Added error handling. All exceptions are caught now. 00110 00111 Revision 1.5 2002/11/14 17:05:19 ghillie 00112 major structural changes - much is easier, nicer and better prepared for the future now: 00113 - added DisconnectLogical handler to CallInterface 00114 - DTMF handling moved from CallControl to Connection 00115 - new call module ConnectModule for establishing connection 00116 - python sllspaCalledPartyNumber.
Capi* CallOutgoing::capi [private]
reference to object of Capi to use
bool CallOutgoing::clir [private]
enable CLIR? (don't show own number to called party)
_cdword CallOutgoing::controller [private]
controller to use
string CallOutgoing::faxHeadline [private]
fax headlint to use
string CallOutgoing::faxStationID [private]
fax Station ID to use