agent/scim-bridge-agent-interruption-listener.h

Go to the documentation of this file.
00001 /*
00002  * SCIM Bridge
00003  *
00004  * Copyright (c) 2006 Ryo Dairiki <ryo-dairiki@users.sourceforge.net>
00005  *
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2 of the License, or (at your option) any later version.*
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
00014  * GNU Lesser General Public License for more details.*
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this program; if not, write to the
00017  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
00018  * Boston, MA  02111-1307  USA
00019  */
00020 
00027 #ifndef SCIMBRIDGEAGENTINTERRUPTIONLISTENER_H_
00028 #define SCIMBRIDGEAGENTINTERRUPTIONLISTENER_H_
00029 
00030 #include "scim-bridge.h"
00031 #include "scim-bridge-agent-socket-client.h"
00032 
00033 class ScimBridgeAgentProtected;
00034 
00038 class ScimBridgeAgentInterruptionListener: public ScimBridgeAgentSocketClient
00039 {
00040 
00041     public:
00042 
00048         static ScimBridgeAgentInterruptionListener *alloc ();
00049 
00053         virtual ~ScimBridgeAgentInterruptionListener () {}
00054 
00060         virtual bool is_interrupted () const = 0;
00061 
00065         virtual void interrupt () = 0;
00066 
00070         virtual void clear_interruption () = 0;
00071 
00072     protected:
00073 
00077         ScimBridgeAgentInterruptionListener () {}
00078 
00079 };
00080 #endif                                            /*SCIMBRIDGEAGENTINTERRUPTIONLISTENER_H_*/

Generated on Tue Sep 26 21:53:28 2006 for ScimBridge by  doxygen 1.4.6