]>
git.saurik.com Git - wxWidgets.git/blob - src/common/process.cpp
6440993d20363b7011338c325bab4888058e00ec
   1 ///////////////////////////////////////////////////////////////////////////// 
   3 // Purpose:     Process termination classes 
   4 // Author:      Guilhem Lavaux 
   5 // Modified by: Vadim Zeitlin to check error codes, added Detach() method 
   8 // Copyright:   (c) Guilhem Lavaux 
   9 // Licence:     wxWindows license 
  10 ///////////////////////////////////////////////////////////////////////////// 
  13     #pragma implementation "process.h" 
  16 // For compilers that support precompilation, includes "wx.h". 
  17 #include "wx/wxprec.h" 
  27 #include "wx/process.h" 
  29 IMPLEMENT_DYNAMIC_CLASS(wxProcess
, wxEvtHandler
) 
  30 IMPLEMENT_DYNAMIC_CLASS(wxProcessEvent
, wxEvent
) 
  32 wxProcess::wxProcess(wxEvtHandler 
*parent
, int id
) 
  35         SetNextHandler(parent
); 
  40 void wxProcess::OnTerminate(int pid
, int status
) 
  42     wxProcessEvent 
event(m_id
, pid
, status
); 
  44     if ( !ProcessEvent(event
) ) 
  46     //else: the object which processed the event is responsible for deleting 
  50 void wxProcess::Detach()