X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dde19c2180ef8d6415af7bb2492bfcb0a2d5c7e4..835165d576b66441987b78519e6ef1fe74ea795a:/include/wx/unix/evtloop.h?ds=sidebyside diff --git a/include/wx/unix/evtloop.h b/include/wx/unix/evtloop.h index 19bfe8bb51..f2b0a102c8 100644 --- a/include/wx/unix/evtloop.h +++ b/include/wx/unix/evtloop.h @@ -18,13 +18,19 @@ // ---------------------------------------------------------------------------- class wxFDIODispatcher; +class wxUnixEventLoopSource; namespace wxPrivate { class PipeIOHandler; -}; +} -class WXDLLIMPEXP_BASE wxConsoleEventLoop : public wxEventLoopManual +class WXDLLIMPEXP_BASE wxConsoleEventLoop +#ifdef __WXOSX__ +: public wxCFEventLoop +#else +: public wxEventLoopManual +#endif { public: // initialize the event loop, use IsOk() to check if we were successful @@ -39,6 +45,11 @@ public: virtual bool IsOk() const { return m_dispatcher != NULL; } virtual bool YieldFor(long WXUNUSED(eventsToProcess)) { return true; } +#if wxUSE_EVENTLOOP_SOURCE + virtual wxEventLoopSource * + AddSourceForFD(int fd, wxEventLoopSourceHandler *handler, int flags); +#endif // wxUSE_EVENTLOOP_SOURCE + protected: virtual void OnNextIteration();