vdk 2.4.0
vdkinchannel.h
1/*
2 * Copyright (C) 1999-2001 Jonathan R. Hudson
3 * Developed by Jonathan R. Hudson <jonathan@daria.co.uk>
4 * Modified by Mario Motta <mmotta@guest.net>
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18 * 02111-1307, USA.
19 */
20
21#ifndef _vdk_in_channel_h_
22#define _vdk_in_channel_h_
23#include <vdk/vdkobj.h>
24#include <vdk/siglisthandle.h>
25
26#define INPUT_SIGNAL (user_signal-1024)
27
39{
40 private:
41 void SetSignal(VDKObject*, GdkInputCondition);
42 protected:
43 static void HandleIO(gpointer obj, gint source, GdkInputCondition condition);
44 gint tag;
45 int fd;
46 GdkInputCondition condition;
47
48public:
55 VDKInputChannel (VDKForm* owner, int fd, GdkInputCondition condition = GDK_INPUT_READ);
59 virtual ~VDKInputChannel();
63 int getfd() {return fd;}
67 int getcondition() {return condition;}
68
69};
70#endif
VDKForm widgets, generally the outermost widget container.
Definition: forms.h:69
This class allows you to monitor inputs from one or more file descriptors and define member function(...
Definition: vdkinchannel.h:39
VDKInputChannel(VDKForm *owner, int fd, GdkInputCondition condition=GDK_INPUT_READ)
Definition: vdkinchannel.cc:24
virtual ~VDKInputChannel()
Definition: vdkinchannel.cc:33
int getfd()
Definition: vdkinchannel.h:63
int getcondition()
Definition: vdkinchannel.h:67
Definition: vdkobj.h:141