]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/private/fdiohandler.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/private/fdiohandler.h
3 // Purpose: declares wxFDIOHandler class
4 // Author: Vadim Zeitlin
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 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_PRIVATE_FDIOHANDLER_H_
12 #define _WX_PRIVATE_FDIOHANDLER_H_
14 // ----------------------------------------------------------------------------
15 // wxFDIOHandler: interface used to process events on file descriptors
16 // ----------------------------------------------------------------------------
21 // called when descriptor is available for non-blocking read
22 virtual void OnReadWaiting() = 0;
24 // called when descriptor is available for non-blocking write
25 virtual void OnWriteWaiting() = 0;
27 // called when there is exception on descriptor
28 virtual void OnExceptionWaiting() = 0;
30 // called to check if the handler is still valid, only used by
31 // wxSocketImplUnix currently
32 virtual bool IsOk() const { return true; }
34 // virtual dtor for the base class
35 virtual ~wxFDIOHandler() { }
38 #endif // _WX_PRIVATE_FDIOHANDLER_H_