]> git.saurik.com Git - wxWidgets.git/blame - src/common/process.cpp
GetTempFileName used in wxTempFile now instead of tmpnam
[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
42void wxProcess::OnTerminate(int pid)
43{
44 wxProcessEvent event(m_id, pid);
45
46 ProcessEvent(event);
47}