]> git.saurik.com Git - wxWidgets.git/blame - include/wx/private/fdiomanager.h
synchronize GTK2 minimum version in docs
[wxWidgets.git] / include / wx / private / fdiomanager.h
CommitLineData
6bcc1145
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: wx/private/fdiomanager.h
3// Purpose: declaration of wxFDIOManager
4// Author: Vadim Zeitlin
5// Created: 2009-08-17
b1153ed6 6// RCS-ID: $Id$
6bcc1145
VZ
7// Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
8// Licence: wxWindows licence
9///////////////////////////////////////////////////////////////////////////////
10
11#ifndef _WX_PRIVATE_FDIOMANAGER_H_
12#define _WX_PRIVATE_FDIOMANAGER_H_
13
14#include "wx/private/fdiohandler.h"
15
16// ----------------------------------------------------------------------------
17// wxFDIOManager: register or unregister wxFDIOHandlers
18// ----------------------------------------------------------------------------
19
20// currently only used in wxGTK and wxMotif, see wx/unix/apptrait.h
21
22class wxFDIOManager
23{
24public:
25 // identifies either input or output direction
26 //
27 // NB: the values of this enum shouldn't change
28 enum Direction
29 {
30 INPUT,
31 OUTPUT
32 };
33
34 // start or stop monitoring the events on the given file descriptor
35 virtual int AddInput(wxFDIOHandler *handler, int fd, Direction d) = 0;
36 virtual void RemoveInput(wxFDIOHandler *handler, int fd, Direction d) = 0;
37
38 // empty but virtual dtor for the base class
39 virtual ~wxFDIOManager() { }
40};
41
42#endif // _WX_PRIVATE_FDIOMANAGER_H_
43