diff options
author | Dick Porter <dick@acm.org> | 2002-04-04 10:45:59 +0400 |
---|---|---|
committer | Dick Porter <dick@acm.org> | 2002-04-04 10:45:59 +0400 |
commit | 7e3b1b7b4cedf5dd61689a26c2c751e969e18bfe (patch) | |
tree | 139ac629e6d93ac5d1f4f52a535607dfc3fc5749 /mcs | |
parent | 226c94055698fe579205f45c6ce9f61b7e4e5d12 (diff) |
2002-04-04 Dick Porter <dick@ximian.com>
* ISynchronizeInvoke.cs: Needed by Process
2002-04-04 Dick Porter <dick@ximian.com>
* 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
Diffstat (limited to 'mcs')
12 files changed, 496 insertions, 0 deletions
diff --git a/mcs/class/System/System.ComponentModel/ChangeLog b/mcs/class/System/System.ComponentModel/ChangeLog index 55132db9f16..b689e3ac955 100644 --- a/mcs/class/System/System.ComponentModel/ChangeLog +++ b/mcs/class/System/System.ComponentModel/ChangeLog @@ -1,3 +1,7 @@ +2002-04-04 Dick Porter <dick@ximian.com> + + * ISynchronizeInvoke.cs: Needed by Process + 2002-01-23 Dick Porter <dick@ximian.com> * Win32Exception.cs: implement, with support for looking up diff --git a/mcs/class/System/System.ComponentModel/ISynchronizeInvoke.cs b/mcs/class/System/System.ComponentModel/ISynchronizeInvoke.cs new file mode 100755 index 00000000000..e5cad4e0739 --- /dev/null +++ b/mcs/class/System/System.ComponentModel/ISynchronizeInvoke.cs @@ -0,0 +1,26 @@ +// +// System.ComponentModel.ISynchronizeInvoke.cs +// +// Authors: +// Dick Porter (dick@ximian.com) +// +// (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); + } +} diff --git a/mcs/class/System/System.Diagnostics/ChangeLog b/mcs/class/System/System.Diagnostics/ChangeLog index 4bfb8632c72..f9a277420b0 100644 --- a/mcs/class/System/System.Diagnostics/ChangeLog +++ b/mcs/class/System/System.Diagnostics/ChangeLog @@ -1,3 +1,14 @@ +2002-04-04 Dick Porter <dick@ximian.com> + + * 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 <dick@ximian.com> * Process.cs: diff --git a/mcs/class/System/System.Diagnostics/Process.cs b/mcs/class/System/System.Diagnostics/Process.cs index c65fe948c12..23b85ede094 100755 --- a/mcs/class/System/System.Diagnostics/Process.cs +++ b/mcs/class/System/System.Diagnostics/Process.cs @@ -13,6 +13,7 @@ using System.ComponentModel; namespace System.Diagnostics { public class Process : Component { + [MonoTODO] public Process() { } diff --git a/mcs/class/System/System.Diagnostics/ProcessModuleCollection.cs b/mcs/class/System/System.Diagnostics/ProcessModuleCollection.cs new file mode 100755 index 00000000000..4ad840c1a80 --- /dev/null +++ b/mcs/class/System/System.Diagnostics/ProcessModuleCollection.cs @@ -0,0 +1,43 @@ +// +// System.Diagnostics.ProcessModuleCollection.cs +// +// Authors: +// Dick Porter (dick@ximian.com) +// +// (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); + } + } +} diff --git a/mcs/class/System/System.Diagnostics/ProcessStartInfo.cs b/mcs/class/System/System.Diagnostics/ProcessStartInfo.cs new file mode 100755 index 00000000000..28065dbec91 --- /dev/null +++ b/mcs/class/System/System.Diagnostics/ProcessStartInfo.cs @@ -0,0 +1,148 @@ +// +// System.Diagnostics.ProcessStartInfo.cs +// +// Authors: +// Dick Porter (dick@ximian.com) +// +// (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 { + } + } + } +} diff --git a/mcs/class/System/System.Diagnostics/ProcessThread.cs b/mcs/class/System/System.Diagnostics/ProcessThread.cs new file mode 100755 index 00000000000..bbc6d56eb97 --- /dev/null +++ b/mcs/class/System/System.Diagnostics/ProcessThread.cs @@ -0,0 +1,118 @@ +// +// System.Diagnostics.ProcessThread.cs +// +// Authors: +// Dick Porter (dick@ximian.com) +// +// (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() { + } + } +} diff --git a/mcs/class/System/System.Diagnostics/ProcessThreadCollection.cs b/mcs/class/System/System.Diagnostics/ProcessThreadCollection.cs new file mode 100755 index 00000000000..4efbcd21bb0 --- /dev/null +++ b/mcs/class/System/System.Diagnostics/ProcessThreadCollection.cs @@ -0,0 +1,56 @@ +// +// System.Diagnostics.ProcessThreadCollection.cs +// +// Authors: +// Dick Porter (dick@ximian.com) +// +// (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) { + } + } +} diff --git a/mcs/class/System/System.Diagnostics/ProcessWindowStyle.cs b/mcs/class/System/System.Diagnostics/ProcessWindowStyle.cs new file mode 100755 index 00000000000..00afa1ac997 --- /dev/null +++ b/mcs/class/System/System.Diagnostics/ProcessWindowStyle.cs @@ -0,0 +1,18 @@ +// +// System.Diagnostics.ProcessWindowStyle.cs +// +// Authors: +// Dick Porter (dick@ximian.com) +// +// (C) 2002 Ximian, Inc. http://www.ximian.com +// + +namespace System.Diagnostics { + [Serializable] + public enum ProcessWindowStyle { + Hidden=1, + Maximized=3, + Minimized=2, + Normal=0, + } +} diff --git a/mcs/class/System/System.Diagnostics/ThreadPriorityLevel.cs b/mcs/class/System/System.Diagnostics/ThreadPriorityLevel.cs new file mode 100755 index 00000000000..17297c10738 --- /dev/null +++ b/mcs/class/System/System.Diagnostics/ThreadPriorityLevel.cs @@ -0,0 +1,21 @@ +// +// System.Diagnostics.ThreadPriorityLevel.cs +// +// Authors: +// Dick Porter (dick@ximian.com) +// +// (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, + } +} diff --git a/mcs/class/System/System.Diagnostics/ThreadState.cs b/mcs/class/System/System.Diagnostics/ThreadState.cs new file mode 100755 index 00000000000..12e4501c104 --- /dev/null +++ b/mcs/class/System/System.Diagnostics/ThreadState.cs @@ -0,0 +1,22 @@ +// +// System.Diagnostics.ThreadState.cs +// +// Authors: +// Dick Porter (dick@ximian.com) +// +// (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, + } +} diff --git a/mcs/class/System/System.Diagnostics/ThreadWaitReason.cs b/mcs/class/System/System.Diagnostics/ThreadWaitReason.cs new file mode 100755 index 00000000000..97946549f39 --- /dev/null +++ b/mcs/class/System/System.Diagnostics/ThreadWaitReason.cs @@ -0,0 +1,28 @@ +// +// System.Diagnostics.ThreadWaitReason.cs +// +// Authors: +// Dick Porter (dick@ximian.com) +// +// (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, + } +} |