]> git.saurik.com Git - wxWidgets.git/blob - include/wx/private/fdiohandler.h
No changes, just put the files in alphabetical order.
[wxWidgets.git] / include / wx / private / fdiohandler.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/private/fdiohandler.h
3 // Purpose: declares wxFDIOHandler class
4 // Author: Vadim Zeitlin
5 // Created: 2009-08-17
6 // RCS-ID: $Id: wxhead.h,v 1.11 2009-06-29 10:23:04 zeitlin Exp $
7 // Copyright: (c) 2009 Vadim Zeitlin <vadim@wxwidgets.org>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_PRIVATE_FDIOHANDLER_H_
12 #define _WX_PRIVATE_FDIOHANDLER_H_
13
14 // ----------------------------------------------------------------------------
15 // wxFDIOHandler: interface used to process events on file descriptors
16 // ----------------------------------------------------------------------------
17
18 class wxFDIOHandler
19 {
20 public:
21 // called when descriptor is available for non-blocking read
22 virtual void OnReadWaiting() = 0;
23
24 // called when descriptor is available for non-blocking write
25 virtual void OnWriteWaiting() = 0;
26
27 // called when there is exception on descriptor
28 virtual void OnExceptionWaiting() = 0;
29
30 // called to check if the handler is still valid, only used by
31 // wxSocketImplUnix currently
32 virtual bool IsOk() const { return true; }
33
34 // virtual dtor for the base class
35 virtual ~wxFDIOHandler() { }
36 };
37
38 #endif // _WX_PRIVATE_FDIOHANDLER_H_
39