瀏覽代碼

2002-04-04 Dick Porter <[email protected]>

	* ISynchronizeInvoke.cs: Needed by Process

2002-04-04  Dick Porter  <[email protected]>

	* ThreadWaitReason.cs:
	* ThreadState.cs:
	* ThreadPriorityLevel.cs:
	* ProcessWindowStyle.cs:
	* ProcessThreadCollection.cs
	* ProcessThread.cs:
	* ProcessStartInfo.cs:
	* ProcessModuleCollection.cs: Stub out more classes needed for Process

svn path=/trunk/mcs/; revision=3605
Dick Porter 24 年之前
父節點
當前提交
7e3b1b7b4c

+ 4 - 0
mcs/class/System/System.ComponentModel/ChangeLog

@@ -1,3 +1,7 @@
+2002-04-04  Dick Porter  <[email protected]>
+
+	* ISynchronizeInvoke.cs: Needed by Process
+
 2002-01-23  Dick Porter  <[email protected]>
 
 	* Win32Exception.cs: implement, with support for looking up

+ 26 - 0
mcs/class/System/System.ComponentModel/ISynchronizeInvoke.cs

@@ -0,0 +1,26 @@
+//
+// System.ComponentModel.ISynchronizeInvoke.cs
+//
+// Authors:
+//	Dick Porter ([email protected])
+//
+// (C) 2002 Ximian, Inc.  http://www.ximian.com
+//
+
+using System;
+
+namespace System.ComponentModel 
+{
+	public interface ISynchronizeInvoke 
+	{
+		bool InvokeRequired {
+			get;
+		}
+
+		IAsyncResult BeginInvoke(Delegate method, object[] args);
+
+		object EndInvoke(IAsyncResult result);
+
+		object Invoke(Delegate method, object[] args);
+	}
+}

+ 11 - 0
mcs/class/System/System.Diagnostics/ChangeLog

@@ -1,3 +1,14 @@
+2002-04-04  Dick Porter  <[email protected]>
+
+	* ThreadWaitReason.cs:
+	* ThreadState.cs:
+	* ThreadPriorityLevel.cs:
+	* ProcessWindowStyle.cs:
+	* ProcessThreadCollection.cs
+	* ProcessThread.cs:
+	* ProcessStartInfo.cs:
+	* ProcessModuleCollection.cs: Stub out more classes needed for Process
+
 2002-03-31  Dick Porter  <[email protected]>
 
 	* Process.cs: 

+ 1 - 0
mcs/class/System/System.Diagnostics/Process.cs

@@ -13,6 +13,7 @@ using System.ComponentModel;
 
 namespace System.Diagnostics {
 	public class Process : Component {
+		[MonoTODO]
 		public Process() {
 		}
 

+ 43 - 0
mcs/class/System/System.Diagnostics/ProcessModuleCollection.cs

@@ -0,0 +1,43 @@
+//
+// System.Diagnostics.ProcessModuleCollection.cs
+//
+// Authors:
+//	Dick Porter ([email protected])
+//
+// (C) 2002 Ximian, Inc.  http://www.ximian.com
+//
+
+using System.Collections;
+
+namespace System.Diagnostics {
+	public class ProcessModuleCollection : ReadOnlyCollectionBase {
+		[MonoTODO]
+		protected ProcessModuleCollection() {
+		}
+
+		[MonoTODO]
+		public ProcessModuleCollection(ProcessModule[] processModules) {
+		}
+		
+		[MonoTODO]
+		public ProcessModule this[int index] {
+			get {
+				return(null);
+			}
+		}
+
+		[MonoTODO]
+		public bool Contains(ProcessModule module) {
+			return(false);
+		}
+
+		[MonoTODO]
+		public void CopyTo(ProcessModule[] array, int index) {
+		}
+
+		[MonoTODO]
+		public int IndexOf(ProcessModule module) {
+			return(0);
+		}
+	}
+}

+ 148 - 0
mcs/class/System/System.Diagnostics/ProcessStartInfo.cs

@@ -0,0 +1,148 @@
+//
+// System.Diagnostics.ProcessStartInfo.cs
+//
+// Authors:
+//	Dick Porter ([email protected])
+//
+// (C) 2002 Ximian, Inc.  http://www.ximian.com
+//
+
+using System.Collections.Specialized;
+
+namespace System.Diagnostics {
+	public class ProcessStartInfo {
+		[MonoTODO]
+		public ProcessStartInfo() {
+		}
+
+		[MonoTODO]
+		public ProcessStartInfo(string filename) {
+		}
+
+		[MonoTODO]
+		public ProcessStartInfo(string filename, string arguments) {
+		}
+
+		[MonoTODO]
+		public string Arguments {
+			get {
+				return("");
+			}
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public bool CreateNoWindow {
+			get {
+				return(false);
+			}
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public StringDictionary EnvironmentVariables {
+			get {
+				return(null);
+			}
+		}
+
+		[MonoTODO]
+		public bool ErrorDialog {
+			get {
+				return(false);
+			}
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public IntPtr ErrorDialogParentHandle {
+			get {
+				return((IntPtr)0);
+			}
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public string FileName {
+			get {
+				return("file name");
+			}
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public bool RedirectStandardError {
+			get {
+				return(false);
+			}
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public bool RedirectStandardInput {
+			get {
+				return(false);
+			}
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public bool RedirectStandardOutput {
+			get {
+				return(false);
+			}
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public bool UseShellExecute {
+			get {
+				return(false);
+			}
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public string Verb {
+			get {
+				return("verb");
+			}
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public string[] Verbs {
+			get {
+				return(null);
+			}
+		}
+
+		[MonoTODO]
+		public ProcessWindowStyle WindowStyle {
+			get {
+				return(ProcessWindowStyle.Normal);
+			}
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public string WorkingDirectory {
+			get {
+				return(".");
+			}
+			set {
+			}
+		}
+	}
+}

+ 118 - 0
mcs/class/System/System.Diagnostics/ProcessThread.cs

@@ -0,0 +1,118 @@
+//
+// System.Diagnostics.ProcessThread.cs
+//
+// Authors:
+//	Dick Porter ([email protected])
+//
+// (C) 2002 Ximian, Inc.  http://www.ximian.com
+//
+
+using System.ComponentModel;
+
+namespace System.Diagnostics {
+	public class ProcessThread : Component {
+		[MonoTODO]
+		public int BasePriority {
+			get {
+				return(0);
+			}
+		}
+
+		[MonoTODO]
+		public int CurrentPriority {
+			get {
+				return(0);
+			}
+		}
+
+		[MonoTODO]
+		public int Id {
+			get {
+				return(0);
+			}
+		}
+
+		[MonoTODO]
+		int IdealProcessor {
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public bool PriorityBoostEnabled {
+			get {
+				return(false);
+			}
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public ThreadPriorityLevel PriorityLevel {
+			get {
+				return(ThreadPriorityLevel.Idle);
+			}
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public TimeSpan PrivilegedProcessorTime {
+			get {
+				return(new TimeSpan(0));
+			}
+		}
+
+		[MonoTODO]
+		IntPtr ProcessorAffinity {
+			set {
+			}
+		}
+
+		[MonoTODO]
+		public IntPtr StartAddress {
+			get {
+				return((IntPtr)0);
+			}
+		}
+
+		[MonoTODO]
+		public DateTime StartTime {
+			get {
+				return(new DateTime(0));
+			}
+		}
+
+		[MonoTODO]
+		public ThreadState ThreadState {
+			get {
+				return(ThreadState.Initialized);
+			}
+		}
+
+		[MonoTODO]
+		public TimeSpan TotalProcessorTime {
+			get {
+				return(new TimeSpan(0));
+			}
+		}
+
+		[MonoTODO]
+		public TimeSpan UserProcessorTime {
+			get {
+				return(new TimeSpan(0));
+			}
+		}
+
+		[MonoTODO]
+		public ThreadWaitReason WaitReason {
+			get {
+				return(ThreadWaitReason.Executive);
+			}
+		}
+
+		[MonoTODO]
+		public void ResetIdealProcessor() {
+		}
+	}
+}

+ 56 - 0
mcs/class/System/System.Diagnostics/ProcessThreadCollection.cs

@@ -0,0 +1,56 @@
+//
+// System.Diagnostics.ProcessThreadCollection.cs
+//
+// Authors:
+//	Dick Porter ([email protected])
+//
+// (C) 2002 Ximian, Inc.  http://www.ximian.com
+//
+
+using System.Collections;
+
+namespace System.Diagnostics {
+	public class ProcessThreadCollection : ReadOnlyCollectionBase {
+		[MonoTODO]
+		protected ProcessThreadCollection() {
+		}
+
+		[MonoTODO]
+		public ProcessThreadCollection(ProcessThread[] processThreads) {
+		}
+		
+		[MonoTODO]
+		public ProcessThread this[int index] {
+			get {
+				return(null);
+			}
+		}
+
+		[MonoTODO]
+		public int Add(ProcessThread thread) {
+			return(0);
+		}
+
+		[MonoTODO]
+		public bool Contains(ProcessThread thread) {
+			return(false);
+		}
+
+		[MonoTODO]
+		public void CopyTo(ProcessThread[] array, int index) {
+		}
+
+		[MonoTODO]
+		public int IndexOf(ProcessThread thread) {
+			return(0);
+		}
+
+		[MonoTODO]
+		public void Insert(int index, ProcessThread thread) {
+		}
+
+		[MonoTODO]
+		public void Remove(ProcessThread thread) {
+		}
+	}
+}

+ 18 - 0
mcs/class/System/System.Diagnostics/ProcessWindowStyle.cs

@@ -0,0 +1,18 @@
+//
+// System.Diagnostics.ProcessWindowStyle.cs
+//
+// Authors:
+//	Dick Porter ([email protected])
+//
+// (C) 2002 Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System.Diagnostics {
+	[Serializable]
+	public enum ProcessWindowStyle {
+		Hidden=1,
+		Maximized=3,
+		Minimized=2,
+		Normal=0,
+	}
+}

+ 21 - 0
mcs/class/System/System.Diagnostics/ThreadPriorityLevel.cs

@@ -0,0 +1,21 @@
+//
+// System.Diagnostics.ThreadPriorityLevel.cs
+//
+// Authors:
+//	Dick Porter ([email protected])
+//
+// (C) 2002 Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System.Diagnostics {
+	[Serializable]
+	public enum ThreadPriorityLevel {
+		AboveNormal=1,
+		BelowNormal=-1,
+		Highest=2,
+		Idle=-15,
+		Lowest=-2,
+		Normal=0,
+		TimeCritical=15,
+	}
+}

+ 22 - 0
mcs/class/System/System.Diagnostics/ThreadState.cs

@@ -0,0 +1,22 @@
+//
+// System.Diagnostics.ThreadState.cs
+//
+// Authors:
+//	Dick Porter ([email protected])
+//
+// (C) 2002 Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System.Diagnostics {
+	[Serializable]
+	public enum ThreadState {
+		Initialized=0,
+		Ready=1,
+		Running=2,
+		Standby=3,
+		Terminated=4,
+		Transition=6,
+		Unknown=7,
+		Wait=5,
+	}
+}

+ 28 - 0
mcs/class/System/System.Diagnostics/ThreadWaitReason.cs

@@ -0,0 +1,28 @@
+//
+// System.Diagnostics.ThreadWaitReason.cs
+//
+// Authors:
+//	Dick Porter ([email protected])
+//
+// (C) 2002 Ximian, Inc.  http://www.ximian.com
+//
+
+namespace System.Diagnostics {
+	[Serializable]
+	public enum ThreadWaitReason {
+		EventPairHigh=7,
+		EventPairLow=8,
+		ExecutionDelay=4,
+		Executive=0,
+		FreePage=1,
+		LpcReceive=9,
+		LpcReply=10,
+		PageIn=2,
+		PageOut=12,
+		Suspended=5,
+		SystemAllocation=3,
+		Unknown=13,
+		UserRequest=6,
+		VirtualMemory=11,
+	}
+}