X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3327957c0f65d032bf127613c714cedb45535509..ca77701441e39245dcbfce903049e76f166979e5:/include/wx/private/fdiohandler.h diff --git a/include/wx/private/fdiohandler.h b/include/wx/private/fdiohandler.h index 3e24c43786..e1c2e30fee 100644 --- a/include/wx/private/fdiohandler.h +++ b/include/wx/private/fdiohandler.h @@ -3,7 +3,7 @@ // Purpose: declares wxFDIOHandler class // Author: Vadim Zeitlin // Created: 2009-08-17 -// RCS-ID: $Id: wxhead.h,v 1.11 2009-06-29 10:23:04 zeitlin Exp $ +// RCS-ID: $Id$ // Copyright: (c) 2009 Vadim Zeitlin // Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// @@ -18,6 +18,8 @@ class wxFDIOHandler { public: + wxFDIOHandler() { m_regmask = 0; } + // called when descriptor is available for non-blocking read virtual void OnReadWaiting() = 0; @@ -31,8 +33,21 @@ public: // wxSocketImplUnix currently virtual bool IsOk() const { return true; } + + // get/set the mask of events for which we're currently registered for: + // it's a combination of wxFDIO_{INPUT,OUTPUT,EXCEPTION} + int GetRegisteredEvents() const { return m_regmask; } + void SetRegisteredEvent(int flag) { m_regmask |= flag; } + void ClearRegisteredEvent(int flag) { m_regmask &= ~flag; } + + // virtual dtor for the base class virtual ~wxFDIOHandler() { } + +private: + int m_regmask; + + wxDECLARE_NO_COPY_CLASS(wxFDIOHandler); }; #endif // _WX_PRIVATE_FDIOHANDLER_H_