X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/12f5e1e78fe906050ff2fee9529476db332633f0..b31eaa5c34b384f0d210d9e06c9159f9fd59ea16:/interface/wx/process.h diff --git a/interface/wx/process.h b/interface/wx/process.h index 5f99ac6d23..c748d6440e 100644 --- a/interface/wx/process.h +++ b/interface/wx/process.h @@ -100,7 +100,7 @@ public: /** Destroys the wxProcess object. */ - ~wxProcess(); + virtual ~wxProcess(); /** Closes the output stream (the one connected to the stdin of the child @@ -202,7 +202,7 @@ public: @see Exists(), wxKill(), @ref page_samples_exec "Exec sample" */ - static wxKillError Kill(int pid, wxSignal signal = wxSIGNONE, + static wxKillError Kill(int pid, wxSignal sig = wxSIGTERM, int flags = wxKILL_NOCHILDREN); /** @@ -214,7 +214,7 @@ public: @param status The exit code of the process. */ - void OnTerminate(int pid, int status); + virtual void OnTerminate(int pid, int status); /** This static method replaces the standard @c popen() function: it launches @@ -258,19 +258,20 @@ public: /** @class wxProcessEvent - A process event is sent when a process is terminated. + A process event is sent to the wxEvtHandler specified to wxProcess + when a process is terminated. @beginEventTable{wxProcessEvent} @event{EVT_END_PROCESS(id, func)} - Process a @c wxEVT_END_PROCESS event. @a id is the identifier of the process - object (the id passed to the wxProcess constructor) or a window to receive - the event. + Process a @c wxEVT_END_PROCESS event. @a id is the identifier of the process + object (the id passed to the wxProcess constructor) or a window to receive + the event. @endEventTable @library{wxbase} @category{events} - @see wxProcess, @ref overview_eventhandling + @see wxProcess, @ref overview_events */ class wxProcessEvent : public wxEvent { @@ -290,6 +291,6 @@ public: /** Returns the process id. */ - int GetPid() const; + int GetPid(); };