- // 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
+ // priority
+ // Sets the priority to the given value: see wxPRIORITY_XXX constants.
+ //
+ // NB: the priority can only be set before the process is created
+ void SetPriority(unsigned priority);
+
+ // Get the current priority.
+ unsigned GetPriority() const { return m_priority; }
+
+ // implementation only - don't use!
+ // --------------------------------
+
+ // needs to be public since it needs to be used from wxExecute() global func
+ void SetPid(long pid) { m_pid = pid; }