]> git.saurik.com Git - wxWidgets.git/blame - include/wx/process.h
Added Motif files.
[wxWidgets.git] / include / wx / process.h
CommitLineData
cf447356
GL
1/////////////////////////////////////////////////////////////////////////////
2// Name: process.h
3// Purpose: wxProcess class
4// Author: Guilhem Lavaux
5// Modified by:
6// Created: 24/06/98
7// RCS-ID: $Id$
8// Copyright: (c) 1998 Guilhem Lavaux
9// Licence: wxWindows license
10/////////////////////////////////////////////////////////////////////////////
11
34138703
JS
12#ifndef _WX_PROCESSH__
13#define _WX_PROCESSH__
cf447356
GL
14
15#ifdef __GNUG__
0d3820b3 16#pragma interface "process.h"
cf447356
GL
17#endif
18
19#include "wx/defs.h"
20#include "wx/object.h"
21#include "wx/event.h"
22
23class WXDLLEXPORT wxProcess: public wxEvtHandler
24{
25 DECLARE_DYNAMIC_CLASS(wxProcess)
26 public:
27
c67daf87 28 wxProcess(wxEvtHandler *parent = (wxEvtHandler *) NULL, int id = -1);
cf447356
GL
29 virtual ~wxProcess();
30
31 virtual void OnTerminate(int pid);
32
33 protected:
34 int m_id;
35};
36
37// Process Event handling
38
39class WXDLLEXPORT wxProcessEvent: public wxEvent
40{
41 DECLARE_DYNAMIC_CLASS(wxProcessEvent)
42 public:
43
44 wxProcessEvent(int id = 0, int pid = -1);
45
46 inline int GetPid() { return m_pid; }
47 inline void SetPid(int pid) { m_pid = pid; }
48
49 public:
50 int m_pid;
51};
52
53typedef void (wxObject::*wxProcessEventFunction)(wxProcessEvent&);
54
72212c28 55#define EVT_END_PROCESS(id, func) { wxEVT_END_PROCESS, id, -1, (wxObjectEvent) (wxEventFunction) (wxProcessEventFunction) & fn, NULL},
cf447356
GL
56
57#endif
34138703 58 // _WX_PROCESSH__