vdk 2.4.0
Main Page
Related Pages
Classes
Files
File List
vdk
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
38
class
VDKInputChannel
:
public
VDKObject
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
48
public
:
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
Generated on Wed Mar 12 2014 15:03:43 for vdk 2.4.0 by
1.8.1.2