]> git.saurik.com Git - wxWidgets.git/blob - src/common/process.cpp
Added OLE automation sample, changed BC++ makefiles
[wxWidgets.git] / src / common / process.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: process.cpp
3 // Purpose: Process termination classes
4 // Author: Guilhem Lavaux
5 // Modified by:
6 // Created: 24/06/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Guilhem Lavaux
9 // Licence: wxWindows license
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifdef __GNUG__
13 #pragma implementation "process.h"
14 #endif
15
16 // For compilers that support precompilation, includes "wx.h".
17 #include "wx/wxprec.h"
18
19 #ifdef __BORLANDC__
20 #pragma hdrstop
21 #endif
22
23 #ifndef WX_PRECOMP
24 #include "wx/defs.h"
25 #endif
26
27 #include "wx/process.h"
28
29 #if !USE_SHARED_LIBRARY
30 IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler)
31 IMPLEMENT_DYNAMIC_CLASS(wxProcessEvent, wxEvent)
32 #endif
33
34 wxProcess::wxProcess(wxEvtHandler *parent, int id)
35 {
36 if (parent)
37 SetPreviousHandler(parent);
38
39 m_id = id;
40 }
41
42 wxProcess::~wxProcess()
43 {
44 }
45
46 void wxProcess::OnTerminate(int pid)
47 {
48 wxProcessEvent event(m_id, pid);
49
50 ProcessEvent(event);
51 }
52
53 wxProcessEvent::wxProcessEvent(int id, int pid):
54 wxEvent(id), m_pid(pid)
55 {
56 }
57