X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f8cdda4851796e5f5f5bcd82d9e867a30581a6f..c2a738e372126950e5c70f72a3e8876f1ac89bf5:/include/wx/unix/evtloop.h diff --git a/include/wx/unix/evtloop.h b/include/wx/unix/evtloop.h index ab5a5f9a40..40d3007787 100644 --- a/include/wx/unix/evtloop.h +++ b/include/wx/unix/evtloop.h @@ -18,11 +18,12 @@ // ---------------------------------------------------------------------------- class wxFDIODispatcher; +class wxUnixEventLoopSource; namespace wxPrivate { class PipeIOHandler; -}; +} class WXDLLIMPEXP_BASE wxConsoleEventLoop : public wxEventLoopManual { @@ -37,6 +38,12 @@ public: virtual int DispatchTimeout(unsigned long timeout); virtual void WakeUp(); 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(); @@ -49,7 +56,7 @@ private: // either wxSelectDispatcher or wxEpollDispatcher wxFDIODispatcher *m_dispatcher; - DECLARE_NO_COPY_CLASS(wxConsoleEventLoop) + wxDECLARE_NO_COPY_CLASS(wxConsoleEventLoop); }; #endif // wxUSE_CONSOLE_EVENTLOOP