]> git.saurik.com Git - wxWidgets.git/blame - src/common/process.cpp
static wxFile::Access() added
[wxWidgets.git] / src / common / process.cpp
CommitLineData
ca7731b7
GL
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
30IMPLEMENT_DYNAMIC_CLASS(wxProcess, wxEvtHandler)
31IMPLEMENT_DYNAMIC_CLASS(wxProcessEvent, wxEvent)
32#endif
33
34wxProcess::wxProcess(wxEvtHandler *parent, int id)
35{
36 if (parent)
37 SetPreviousHandler(parent);
38
39 m_id = id;
40}
41
81d66cf3
JS
42wxProcess::~wxProcess()
43{
44}
45
ca7731b7
GL
46void wxProcess::OnTerminate(int pid)
47{
48 wxProcessEvent event(m_id, pid);
49
50 ProcessEvent(event);
51}
81d66cf3
JS
52
53wxProcessEvent::wxProcessEvent(int id, int pid):
54 wxEvent(id), m_pid(pid)
55{
56}
57