X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/86c5b12b21333e9817bd2d0c21458308390e1524..a4301b8f14d21b7d28fc4f6a247b740d945ca6dc:/include/wx/unix/apptbase.h?ds=sidebyside diff --git a/include/wx/unix/apptbase.h b/include/wx/unix/apptbase.h index 4ec132c140..8bf6b4cb97 100644 --- a/include/wx/unix/apptbase.h +++ b/include/wx/unix/apptbase.h @@ -14,6 +14,7 @@ struct wxEndProcessData; struct wxExecuteData; +class wxFDIOManager; // ---------------------------------------------------------------------------- // wxAppTraits: the Unix version adds extra hooks needed by Unix code @@ -42,6 +43,18 @@ public: // loop virtual int AddProcessCallback(wxEndProcessData *data, int fd); +#if wxUSE_SOCKETS + // return a pointer to the object which should be used to integrate + // monitoring of the file descriptors to the event loop (currently this is + // used for the sockets only but should be used for arbitrary event loop + // sources in the future) + // + // this object may be different for the console and GUI applications + // + // the pointer is not deleted by the caller as normally it points to a + // static variable + virtual wxFDIOManager *GetFDIOManager(); +#endif // wxUSE_SOCKETS protected: // a helper for the implementation of WaitForChild() in wxGUIAppTraits: