2002-09-27 Dick Porter <dick@ximian.com>
[mono.git] / mcs / class / System / System.Diagnostics / ProcessStartInfo.cs
1 //
2 // System.Diagnostics.ProcessStartInfo.cs
3 //
4 // Authors:
5 //      Dick Porter (dick@ximian.com)
6 //
7 // (C) 2002 Ximian, Inc.  http://www.ximian.com
8 //
9
10 using System.Collections.Specialized;
11
12 namespace System.Diagnostics {
13         public sealed class ProcessStartInfo {
14                 public ProcessStartInfo() {
15                 }
16
17                 public ProcessStartInfo(string filename) {
18                         this.filename=filename;
19                 }
20
21                 public ProcessStartInfo(string filename, string arguments) {
22                         this.filename=filename;
23                         this.arguments=arguments;
24                 }
25
26                 private string arguments="";
27                 
28                 public string Arguments {
29                         get {
30                                 return(arguments);
31                         }
32                         set {
33                                 arguments=value;
34                         }
35                 }
36
37                 private bool create_no_window=false;
38                 
39                 public bool CreateNoWindow {
40                         get {
41                                 return(create_no_window);
42                         }
43                         set {
44                                 create_no_window=value;
45                         }
46                 }
47
48                 [MonoTODO("Need to read the env block somehow")]
49                 public StringDictionary EnvironmentVariables {
50                         get {
51                                 throw new NotImplementedException();
52                         }
53                 }
54                 private bool error_dialog=false;
55                 
56                 public bool ErrorDialog {
57                         get {
58                                 return(error_dialog);
59                         }
60                         set {
61                                 error_dialog=value;
62                         }
63                 }
64
65                 private IntPtr error_dialog_parent_handle=(IntPtr)0;
66                 
67                 public IntPtr ErrorDialogParentHandle {
68                         get {
69                                 return(error_dialog_parent_handle);
70                         }
71                         set {
72                                 error_dialog_parent_handle=value;
73                         }
74                 }
75
76                 private string filename="";
77                 
78                 public string FileName {
79                         get {
80                                 return(filename);
81                         }
82                         set {
83                                 filename=value;
84                         }
85                 }
86
87                 private bool redirect_standard_error=false;
88                 
89                 public bool RedirectStandardError {
90                         get {
91                                 return(redirect_standard_error);
92                         }
93                         set {
94                                 redirect_standard_error=value;
95                         }
96                 }
97
98                 private bool redirect_standard_input=false;
99                 
100                 public bool RedirectStandardInput {
101                         get {
102                                 return(redirect_standard_input);
103                         }
104                         set {
105                                 redirect_standard_input=value;
106                         }
107                 }
108
109                 private bool redirect_standard_output=false;
110                 
111                 public bool RedirectStandardOutput {
112                         get {
113                                 return(redirect_standard_output);
114                         }
115                         set {
116                                 redirect_standard_output=value;
117                         }
118                 }
119
120                 private bool use_shell_execute=true;
121                 
122                 public bool UseShellExecute {
123                         get {
124                                 return(use_shell_execute);
125                         }
126                         set {
127                                 use_shell_execute=value;
128                         }
129                 }
130
131                 private string verb="";
132                 
133                 public string Verb {
134                         get {
135                                 return(verb);
136                         }
137                         set {
138                                 verb=value;
139                         }
140                 }
141
142                 [MonoTODO]
143                 public string[] Verbs {
144                         get {
145                                 return(null);
146                         }
147                 }
148
149                 private ProcessWindowStyle window_style=ProcessWindowStyle.Normal;
150                 
151                 public ProcessWindowStyle WindowStyle {
152                         get {
153                                 return(window_style);
154                         }
155                         set {
156                                 window_style=value;
157                         }
158                 }
159
160                 private string working_directory="";
161                 
162                 public string WorkingDirectory {
163                         get {
164                                 return(working_directory);
165                         }
166                         set {
167                                 working_directory=value;
168                         }
169                 }
170         }
171 }