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

disconnectmodule.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 DISCONNECTMODULE_H
00018 #define DISCONNECTMODULE_H
00019 
00020 #include "callmodule.h"
00021 #include "../backend/connection.h"
00022 
00023 
00024 using namespace std;
00025 
00038 class DisconnectModule: public CallModule
00039 {
00040         public:
00048                 DisconnectModule(Connection *conn, int reject_reason=1, bool quick_disconnect=false);
00049 
00055                 void mainLoop() throw (CapiMsgError,CapiExternalError);
00056 
00059                 void callDisconnectedLogical ();
00060 
00061         private:
00062                 int reject_reason; 
00063                 bool quick_disconnect; 
00064 };
00065 
00066 #endif
00067 
00068 /* History
00069 
00070 Old Log (for new changes see ChangeLog):
00071 
00072 Revision 1.2  2003/10/03 14:56:40  gernot
00073 - partly implementation of a bigger semantic change: don't throw
00074   call finished exceptions in normal operation any longer; i.e. we only
00075   test for the connection at the begin of a command. This allows return
00076   values, e.g. for commands like capisuite.fax_receive() which were
00077   interrupted by an exception always in former CapiSuite versions and thus
00078   never returned. This is also a better and more logical use of exceptions
00079   IMO. ATTN: this is *far from stable*
00080 
00081 Revision 1.1.1.1  2003/02/19 08:19:53  gernot
00082 initial checkin of 0.4
00083 
00084 Revision 1.3  2002/12/11 13:40:22  ghillie
00085 - added support for quick disconnect (immediate physical disconnect)
00086 
00087 Revision 1.2  2002/12/06 15:26:30  ghillie
00088 - supports rejecting of call now, too
00089 
00090 Revision 1.1  2002/12/06 12:48:38  ghillie
00091 inital checkin
00092 
00093 */

Generated on Mon Jan 5 12:19:59 2004 for CapiSuite by doxygen1.2.18