00001 //----------------------------------------------------------------------------------------
00011 // RCS-ID: $Id: piped_process.h,v 1.2 2002/09/10 18:07:56 robertoconnor Exp $
00012 //----------------------------------------------------------------------------------------
00013
00014 //----------------------------------------------------------------------------------------
00015 // Begin single inclusion of this .h file condition
00016 //----------------------------------------------------------------------------------------
00017
00018 #ifndef _PIPED_PROCESS_H_
00019 #define _PIPED_PROCESS_H_
00020
00021 //----------------------------------------------------------------------------------------
00022 // GCC interface
00023 //----------------------------------------------------------------------------------------
00024
00025 #if defined(__GNUG__) && ! defined(__APPLE__)
00026 #pragma interface "piped_process.h"
00027 #endif
00028
00029 //----------------------------------------------------------------------------------------
00030 // Shared defines
00031 //----------------------------------------------------------------------------------------
00032
00033 #include "plucker_defines.h"
00034
00035 //----------------------------------------------------------------------------------------
00036 // Begin feature removal condition
00037 //----------------------------------------------------------------------------------------
00038
00039 #if ( setupUSE_ENHANCED_PROGRESS_DIALOG )
00040
00041 //----------------------------------------------------------------------------------------
00042 // Headers
00043 //----------------------------------------------------------------------------------------
00044
00045 // Forward declaration.
00046 class process_progress_dialog;
00047 #include "process_progress_dialog.h"
00048
00049 //----------------------------------------------------------------------------------------
00050 // Class definition: piped_process
00051 //----------------------------------------------------------------------------------------
00052
00054 class piped_process : public wxProcess
00055 {
00056
00057 DECLARE_DYNAMIC_CLASS( piped_process )
00058
00059 public:
00060
00062
00070 piped_process( process_progress_dialog* parent = NULL,
00071 int id = -1
00072 );
00073
00075
00081 bool suck_process_output( bool after_process_terminated );
00082
00084 int get_process_pid();
00085
00087 void set_process_pid( int process_pid );
00088
00089 protected:
00090
00092 process_progress_dialog* m_parent;
00093 int m_process_pid;
00094
00095 };
00096
00097 //----------------------------------------------------------------------------------------
00098 // End feature removal condition
00099 //----------------------------------------------------------------------------------------
00100
00101 #endif // setupUSE_ENHANCED_PROGRESS_DIALOG
00102
00103 //----------------------------------------------------------------------------------------
00104 // End single inclusion of this .h file condition
00105 //----------------------------------------------------------------------------------------
00106
00107 #endif // _PIPED_PROCESS_H_