struct wxEndProcessData;
struct wxExecuteData;
-class wxPipe;
// ----------------------------------------------------------------------------
// wxAppTraits: the Unix version adds extra hooks needed by Unix code
// 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
//
virtual int AddProcessCallback(wxEndProcessData *data, int fd);
- // wxThread helpers
- // ----------------
-
- // TODO
-
-#if wxUSE_SOCKETS
- // returns the select()-based socket manager for console applications which
- // is also used by some ports (wxX11, wxDFB) in the GUI build (hence it is
- // 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