X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1d043598b7e6baae2e0a472a4133b8d60f0f45ec..59022c25c19cd7eb56b2405a58010df5d0b73eb6:/include/wx/unix/apptbase.h?ds=inline diff --git a/include/wx/unix/apptbase.h b/include/wx/unix/apptbase.h index db5604279b..153d65c735 100644 --- a/include/wx/unix/apptbase.h +++ b/include/wx/unix/apptbase.h @@ -14,7 +14,6 @@ struct wxEndProcessData; struct wxExecuteData; -class wxPipe; // ---------------------------------------------------------------------------- // wxAppTraits: the Unix version adds extra hooks needed by Unix code @@ -26,20 +25,6 @@ public: // wxExecute() support methods // --------------------------- - // called before starting the child process and creates the pipe used for - // detecting the process termination asynchronously in GUI, does nothing in - // wxBase - // - // if it returns false, we should return from wxExecute() with an error - virtual bool CreateEndProcessPipe(wxExecuteData& execData); - - // test if the given descriptor is the end of the pipe create by the - // function above - virtual bool IsWriteFDOfEndProcessPipe(wxExecuteData& execData, int fd); - - // ensure that the write end of the pipe is not closed by wxPipe dtor - virtual void DetachWriteFDOfEndProcessPipe(wxExecuteData& execData); - // wait for the process termination, return whatever wxExecute() must // return // @@ -69,6 +54,12 @@ public: // here and not in wxConsoleAppTraits) virtual GSocketManager *GetSocketManager(); #endif + +protected: + // a helper for the implementation of WaitForChild() in wxGUIAppTraits: + // checks the streams used for redirected IO in execData and returns true + // if there is any activity in them + bool CheckForRedirectedIO(wxExecuteData& execData); }; #endif // _WX_UNIX_APPTBASE_H_