// ----------------------------------------------------------------------------
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
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();