vdkinchannel.h

00001 /*
00002  * Copyright (C) 1999-2001 Jonathan R. Hudson
00003  * Developed by Jonathan R. Hudson <jonathan@daria.co.uk>
00004  * Modified by Mario Motta <mmotta@guest.net>
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00018  * 02111-1307, USA.
00019  */
00020 
00021 #ifndef  _vdk_in_channel_h_
00022 #define  _vdk_in_channel_h_
00023 #include <vdk/vdkobj.h>
00024 #include <vdk/siglisthandle.h>
00025 
00026 #define INPUT_SIGNAL (user_signal-1024)
00027 
00038 class VDKInputChannel: public VDKObject
00039 {
00040   private:
00041     void SetSignal(VDKObject*, GdkInputCondition);
00042   protected:
00043     static void HandleIO(gpointer obj, gint source, GdkInputCondition condition);
00044     gint tag;
00045     int fd;
00046     GdkInputCondition condition;
00047     
00048 public:
00055     VDKInputChannel (VDKForm* owner, int fd,  GdkInputCondition condition = GDK_INPUT_READ);
00059     virtual ~VDKInputChannel();
00063     int getfd() {return fd;}
00067     int getcondition() {return condition;}
00068 
00069 };
00070 #endif

Generated on Fri Nov 10 15:11:23 2006 for vdk 2.4.0 by  doxygen 1.5.1