1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxProcess class
4 // Author: Guilhem Lavaux
8 // Copyright: (c) 1998 Guilhem Lavaux
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_PROCESSH__
13 #define _WX_PROCESSH__
16 #pragma interface "process.h"
20 #include "wx/object.h"
23 class WXDLLEXPORT wxProcess
: public wxEvtHandler
25 DECLARE_DYNAMIC_CLASS(wxProcess
)
28 wxProcess(wxEvtHandler
*parent
= NULL
, int id
= -1);
31 virtual void OnTerminate(int pid
);
37 // Process Event handling
39 class WXDLLEXPORT wxProcessEvent
: public wxEvent
41 DECLARE_DYNAMIC_CLASS(wxProcessEvent
)
44 wxProcessEvent(int id
= 0, int pid
= -1);
46 inline int GetPid() { return m_pid
; }
47 inline void SetPid(int pid
) { m_pid
= pid
; }
53 typedef void (wxObject::*wxProcessEventFunction
)(wxProcessEvent
&);
55 #define EVT_END_PROCESS(id, func) { wxEVT_END_TERMINATE, id, -1, (wxObjectEvent) (wxEventFunction) (wxProcessEventFunction) & fn, NULL},