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