+ // return TRUE if any input is available on the child process stdout/err
+ bool IsInputAvailable() const;
+ bool IsErrorAvailable() const;
+
+ // implementation only (for wxExecute)
+ //
+ // NB: the streams passed here should correspond to the child process
+ // stdout, stdin and stderr and here the normal naming convention is
+ // used unlike elsewhere in this class
+ void SetPipeStreams(wxInputStream *outStream,
+ wxOutputStream *inStream,
+ wxInputStream *errStream);
+#endif // wxUSE_STREAMS
+
+ // for backwards compatibility only, don't use
+#if WXWIN_COMPATIBILITY_2_2
+ wxProcess(wxEvtHandler *parent, bool redirect)
+ { Init(parent, -1, redirect ? wxPROCESS_REDIRECT : wxPROCESS_DEFAULT); }
+#endif // WXWIN_COMPATIBILITY_2_2
+
+protected:
+ void Init(wxEvtHandler *parent, int id, int flags);
+
+ int m_id;
+
+#if wxUSE_STREAMS
+ // these streams are connected to stdout, stderr and stdin of the child
+ // process respectively (yes, m_inputStream corresponds to stdout -- very
+ // confusing but too late to change now)
+ wxInputStream *m_inputStream,
+ *m_errorStream;
+ wxOutputStream *m_outputStream;
+#endif // wxUSE_STREAMS
+
+ bool m_redirect;
+
+ DECLARE_DYNAMIC_CLASS(wxProcess)
+ DECLARE_NO_COPY_CLASS(wxProcess)
+};
+
+// ----------------------------------------------------------------------------
+// wxProcess events
+// ----------------------------------------------------------------------------
+
+BEGIN_DECLARE_EVENT_TYPES()
+ DECLARE_EXPORTED_EVENT_TYPE(WXDLLIMPEXP_BASE, wxEVT_END_PROCESS, 440)
+END_DECLARE_EVENT_TYPES()
+
+class WXDLLIMPEXP_BASE wxProcessEvent : public wxEvent
+{