* EntryWrittenEventArgs.cs: Implemented
authorJonathan Pryor <jpryor@novell.com>
Sun, 9 Jun 2002 18:06:07 +0000 (18:06 -0000)
committerJonathan Pryor <jpryor@novell.com>
Sun, 9 Jun 2002 18:06:07 +0000 (18:06 -0000)
  * EntryWrittenEventHandler.cs: Implemented
  * EventLog.cs: Stubbed out
  * EventLogEntry.cs: Stubbed out
  * EventLogEntryCOllection.cs: Implemented.
  * EventLogEntryType.cs: Implemented
  * EventLogInstaller.cs: Stubbed out
  * EventLogPermission.cs: Stubbed out
  * EventLogPermissionAccess.cs: Implemented
  * EventLogPermissionAttribute.cs: Stubbed out
  * EventLogPermissionEntry.cs: Stubbed out
  * EventLogPermissionEntryCollection.cs: Stubbed out
  * EventLogTraceListener.cs: Stubbed out

svn path=/trunk/mcs/; revision=5191

14 files changed:
mcs/class/System/System.Diagnostics/ChangeLog
mcs/class/System/System.Diagnostics/EntryWrittenEventArgs.cs [new file with mode: 0644]
mcs/class/System/System.Diagnostics/EntryWrittenEventHandler.cs [new file with mode: 0644]
mcs/class/System/System.Diagnostics/EventLog.cs [new file with mode: 0644]
mcs/class/System/System.Diagnostics/EventLogEntry.cs [new file with mode: 0644]
mcs/class/System/System.Diagnostics/EventLogEntryCollection.cs [new file with mode: 0644]
mcs/class/System/System.Diagnostics/EventLogEntryType.cs [new file with mode: 0644]
mcs/class/System/System.Diagnostics/EventLogInstaller.cs [new file with mode: 0644]
mcs/class/System/System.Diagnostics/EventLogPermission.cs [new file with mode: 0644]
mcs/class/System/System.Diagnostics/EventLogPermissionAccess.cs [new file with mode: 0644]
mcs/class/System/System.Diagnostics/EventLogPermissionAttribute.cs [new file with mode: 0644]
mcs/class/System/System.Diagnostics/EventLogPermissionEntry.cs [new file with mode: 0644]
mcs/class/System/System.Diagnostics/EventLogPermissionEntryCollection.cs [new file with mode: 0644]
mcs/class/System/System.Diagnostics/EventLogTraceListener.cs [new file with mode: 0644]

index 482fe485c3c68d57f92ed0e16dc31f44c21c715b..f6a3f1103be1d4e634224bf759abf0b37008a82d 100644 (file)
@@ -1,3 +1,18 @@
+2002-06-09  Jonathan Pryor <jonpryor@vt.edu>
+       * EntryWrittenEventArgs.cs: Implemented
+       * EntryWrittenEventHandler.cs: Implemented
+       * EventLog.cs: Stubbed out
+       * EventLogEntry.cs: Stubbed out
+       * EventLogEntryCOllection.cs: Implemented.
+       * EventLogEntryType.cs: Implemented
+       * EventLogInstaller.cs: Stubbed out
+       * EventLogPermission.cs: Stubbed out
+       * EventLogPermissionAccess.cs: Implemented
+       * EventLogPermissionAttribute.cs: Stubbed out
+       * EventLogPermissionEntry.cs: Stubbed out
+       * EventLogPermissionEntryCollection.cs: Stubbed out
+       * EventLogTraceListener.cs: Stubbed out
+
 2002-05-29  Jonathan Pryor <jonpryor@vt.edu>
   * DefaultTraceListener.cs: Implemented MONO_TRACE support
 
diff --git a/mcs/class/System/System.Diagnostics/EntryWrittenEventArgs.cs b/mcs/class/System/System.Diagnostics/EntryWrittenEventArgs.cs
new file mode 100644 (file)
index 0000000..21e007d
--- /dev/null
@@ -0,0 +1,34 @@
+//
+// System.Diagnostics.EntryWrittenEventArgs.cs
+//
+// Authors:
+//   Jonathan Pryor (jonpryor@vt.edu)
+//
+// (C) 2002
+//
+
+using System;
+using System.Diagnostics;
+using System.Runtime.InteropServices;
+
+namespace System.Diagnostics {
+
+       public class EntryWrittenEventArgs : EventArgs {
+
+               private EventLogEntry entry;
+
+               public EntryWrittenEventArgs () : this (null)
+               {
+               }
+
+               public EntryWrittenEventArgs (EventLogEntry entry)
+               {
+                       this.entry = entry;
+               }
+
+               public EventLogEntry Entry {
+                       get {return entry;}
+               }
+       }
+}
+
diff --git a/mcs/class/System/System.Diagnostics/EntryWrittenEventHandler.cs b/mcs/class/System/System.Diagnostics/EntryWrittenEventHandler.cs
new file mode 100644 (file)
index 0000000..beecc3a
--- /dev/null
@@ -0,0 +1,21 @@
+//
+// System.Diagnostics.EntryWrittenEventHandler.cs
+//
+// Authors:
+//   Jonathan Pryor (jonpryor@vt.edu)
+//
+// (C) 2002
+//
+
+using System;
+using System.Diagnostics;
+using System.Runtime.InteropServices;
+
+namespace System.Diagnostics {
+
+       public delegate void EntryWrittenEventHandler(
+               object sender, 
+               EntryWrittenEventArgs e);
+
+}
+
diff --git a/mcs/class/System/System.Diagnostics/EventLog.cs b/mcs/class/System/System.Diagnostics/EventLog.cs
new file mode 100644 (file)
index 0000000..477191c
--- /dev/null
@@ -0,0 +1,271 @@
+//
+// System.Diagnostics.EventLog.cs
+//
+// Authors:
+//   Jonathan Pryor (jonpryor@vt.edu)
+//
+// (C) 2002
+//
+
+using System;
+using System.Diagnostics;
+using System.ComponentModel;
+
+namespace System.Diagnostics {
+
+       [MonoTODO("This class is just stubbed out")]
+       public class EventLog : Component, ISupportInitialize {
+
+               private string source;
+               private string logName;
+               private string machineName;
+
+               public EventLog() : this ("")
+               {
+               }
+
+               public EventLog(string logName) : this (logName, "")
+               {
+               }
+
+               public EventLog(string logName, string machineName) 
+                       : this (logName, machineName, "")
+               {
+               }
+
+               public EventLog(string logName, string machineName, 
+                       string source)
+               {
+                       this.source = source;
+                       this.machineName = machineName;
+                       this.logName = logName;
+               }
+
+//             [MonoTODO]
+//             public bool EnableRaisingEvents {
+//                     get {return false;}
+//                     set {/* ignore */}
+//             }
+//
+//             [MonoTODO]
+//             public EventLogEntryCollection Entries {
+//                     get {return null;}
+//             }
+//
+//             [MonoTODO]
+//             public string Log {
+//                     get {return log;}
+//                     set {log = value;}
+//             }
+//
+//             [MonoTODO]
+//             public string LogDisplayName {
+//                     get {return "";}
+//             }
+//
+//             [MonoTODO]
+//             public string MachineName {
+//                     get {return machineName;}
+//                     set {/* ignore */}
+//             }
+//
+//             [MonoTODO]
+//             public string Source {
+//                     get {return source;}
+//                     set {/* ignore */}
+//             }
+//
+//             [MonoTODO]
+//             public ISynchronizeInvoke SynchronizingObject {
+//                     get {return null;}
+//                     set {/* ignore */}
+//             }
+//
+               [MonoTODO]
+               public void BeginInit()
+               {
+                       throw new NotImplementedException ();
+               }
+
+//             [MonoTODO]
+//             public void Clear()
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public void Close()
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static void CreateEventSource(string source, 
+//                     string logName)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static void CreateEventSource(string source, 
+//                     string logName, 
+//                     string machineName)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static void Delete(string logName)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static void Delete(string logName, string machineName)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static void DeleteEventSource(string source)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static void DeleteEventSource(string source, 
+//                     string machineName)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             protected override void Dispose(bool disposing)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+               [MonoTODO]
+               public void EndInit()
+               {
+                       throw new NotImplementedException ();
+               }
+
+//             [MonoTODO]
+//             public static bool Exists(string logName)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static bool Exists(string logName, string machineName)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static EventLog[] GetEventLogs()
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static EventLog[] GetEventLogs(string machineName)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static string LogNameFromSourceName(string source, 
+//                     string machineName)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static bool SourceExists(string source)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static bool SourceExists(string source, 
+//                     string machineName)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public void WriteEntry(string message)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public void WriteEntry(string message, EventLogEntryType type)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static void WriteEntry(string source, string message)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public void WriteEntry(string message, EventLogEntryType type, 
+//                     int eventID)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static void WriteEntry(string source, string message, 
+//                     EventLogEntryType type)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public void WriteEntry(string message, EventLogEntryType type, 
+//                     int eventID,
+//                     short category)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static void WriteEntry(string source, string message, 
+//                     EventLogEntryType type, int eventID)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public void WriteEntry(string message, EventLogEntryType type, 
+//                     int eventID,
+//                     short category, byte[] rawData)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static void WriteEntry(string source, string message, 
+//                     EventLogEntryType type, int eventID, short category)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+//             [MonoTODO]
+//             public static void WriteEntry(string source, string message, 
+//                     EventLogEntryType type, int eventID, short category, 
+//                     byte[] rawData)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+
+               public event EntryWrittenEventHandler EntryWritten;
+       }
+}
+
diff --git a/mcs/class/System/System.Diagnostics/EventLogEntry.cs b/mcs/class/System/System.Diagnostics/EventLogEntry.cs
new file mode 100644 (file)
index 0000000..32fb453
--- /dev/null
@@ -0,0 +1,105 @@
+//
+// System.Diagnostics.EventLogEntry.cs
+//
+// Authors:
+//   Jonathan Pryor (jonpryor@vt.edu)
+//
+// (C) 2002
+//
+
+using System;
+using System.ComponentModel;
+using System.Diagnostics;
+using System.Runtime.Serialization;
+
+namespace System.Diagnostics {
+
+       [Serializable]
+       [MonoTODO("Just stubbed out")]
+       public sealed class EventLogEntry : Component, ISerializable {
+
+               [MonoTODO]
+               internal EventLogEntry ()
+               {
+               }
+
+//             [MonoTODO]
+//             public string Categery {
+//                     get {throw new NotImplementedException ();}
+//             }
+//
+//             [MonoTODO]
+//             public short CategoryNumber {
+//                     get {throw new NotImplementedException ();}
+//             }
+//
+//             [MonoTODO]
+//             public byte[] Data {
+//                     get {throw new NotImplementedException ();}
+//             }
+//
+//             [MonoTODO]
+//             public EventLogEntryType EntryType {
+//                     get {throw new NotImplementedException ();}
+//             }
+//
+//             [MonoTODO]
+//             public int EventID {
+//                     get {throw new NotImplementedException ();}
+//             }
+//
+//             [MonoTODO]
+//             public int Index {
+//                     get {throw new NotImplementedException ();}
+//             }
+//
+//             [MonoTODO]
+//             public string Machineame {
+//                     get {throw new NotImplementedException ();}
+//             }
+//
+//             [MonoTODO]
+//             public string Message {
+//                     get {throw new NotImplementedException ();}
+//             }
+//
+//             [MonoTODO]
+//             public string[] ReplacementStrings {
+//                     get {throw new NotImplementedException ();}
+//             }
+//
+//             [MonoTODO]
+//             public string Source {
+//                     get {throw new NotImplementedException ();}
+//             }
+//
+//             [MonoTODO]
+//             public DateTime TimeGenerated {
+//                     get {throw new NotImplementedException ();}
+//             }
+//
+//             [MonoTODO]
+//             public DateTime TimeWritten {
+//                     get {throw new NotImplementedException ();}
+//             }
+//
+//             [MonoTODO]
+//             public string UserName {
+//                     get {throw new NotImplementedException ();}
+//             }
+//
+//             [MonoTODO]
+//             public bool Equals(EventLogEntry otherEntry)
+//             {
+//                     throw new NotImplementedException ();
+//             }
+//
+               [MonoTODO]
+               void ISerializable.GetObjectData(SerializationInfo info, 
+                       StreamingContext context)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
+
diff --git a/mcs/class/System/System.Diagnostics/EventLogEntryCollection.cs b/mcs/class/System/System.Diagnostics/EventLogEntryCollection.cs
new file mode 100644 (file)
index 0000000..746eec2
--- /dev/null
@@ -0,0 +1,57 @@
+//
+// System.Diagnostics.EventLogEntryCollection.cs
+//
+// Authors:
+//   Jonathan Pryor (jonpryor@vt.edu)
+//
+// (C) 2002 Jonathan Pryor
+//
+
+
+using System;
+using System.Collections;
+using System.Diagnostics;
+
+namespace System.Diagnostics {
+
+       public class EventLogEntryCollection : ICollection, IEnumerable {
+
+               private ArrayList eventLogs = new ArrayList ();
+
+               internal EventLogEntryCollection()
+               {
+               }
+
+               public int Count {
+                       get {return eventLogs.Count;}
+               }
+
+               public virtual EventLogEntry this [int index] {
+                       get {return (EventLogEntry) eventLogs[index];}
+               }
+
+               bool ICollection.IsSynchronized {
+                       get {return eventLogs.IsSynchronized;}
+               }
+
+               object ICollection.SyncRoot {
+                       get {return eventLogs.SyncRoot;}
+               }
+
+               public void CopyTo (EventLogEntry[] eventLogs, int index)
+               {
+                       eventLogs.CopyTo (eventLogs, index);
+               }
+
+               public IEnumerator GetEnumerator ()
+               {
+                       return eventLogs.GetEnumerator ();
+               }
+
+               void ICollection.CopyTo (Array array, int index)
+               {
+                       eventLogs.CopyTo (array, index);
+               }
+       }
+}
+
diff --git a/mcs/class/System/System.Diagnostics/EventLogEntryType.cs b/mcs/class/System/System.Diagnostics/EventLogEntryType.cs
new file mode 100644 (file)
index 0000000..0d52a79
--- /dev/null
@@ -0,0 +1,24 @@
+//
+// System.Diagnostics.EventLogEntryType.cs
+//
+// Authors:
+//   Jonathan Pryor (jonpryor@vt.edu)
+//
+// (C) 2002
+//
+
+using System;
+using System.Diagnostics;
+
+namespace System.Diagnostics {
+
+       [Serializable]
+       public enum EventLogEntryType {
+               Error = 0x01,
+               Warning = 0x02,
+               Information = 0x04,
+               SuccessAudit = 0x08,
+               FailureAudit = 0x10
+       }
+}
+
diff --git a/mcs/class/System/System.Diagnostics/EventLogInstaller.cs b/mcs/class/System/System.Diagnostics/EventLogInstaller.cs
new file mode 100644 (file)
index 0000000..c49935c
--- /dev/null
@@ -0,0 +1,75 @@
+//
+// System.Diagnostics.EventLogInstaller.cs
+//
+// Authors:
+//   Jonathan Pryor (jonpryor@vt.edu)
+//
+// (C) 2002
+//
+
+using System;
+using System.Diagnostics;
+
+// using System.Configuration.Install;
+
+namespace System.Diagnostics {
+
+       [MonoTODO]
+       public class EventLogInstaller 
+//             : ComponentInstaller
+       {
+//             [MonoTODO]
+//             public EventLogInstaller()
+//             {
+//             }
+//
+//             [MonoTODO]
+//             public string Log {
+//                     get {throw new NotImplementedException();}
+//                     set {throw new NotImplementedException();}
+//             }
+//
+//             [MonoTODO]
+//             public string Source {
+//                     get {throw new NotImplementedException();}
+//                     set {throw new NotImplementedException();}
+//             }
+//
+//             [MonoTODO]
+//             public UninstallAction UninstallAction {
+//                     get {throw new NotImplementedException();}
+//                     set {throw new NotImplementedException();}
+//             }
+//
+//             // may throw ArgumentException if
+//             //      - component isn't an EventlOg
+//             //      - The Log or Source properties are null or ""
+//             [MonoTODO]
+//             public override void CopyFromComponenet(IComponent component)
+//             {
+//             }
+//
+//             // may throw PlatformNotSupportedException if not >= NT4
+//             [MonoTODO]
+//             public override void Install(IDictionary stateSaver)
+//             {
+//             }
+//
+//             [MonoTODO]
+//             public override bool IsEquivalentInstaller(
+//                     ComponentInstaller otherInstaller)
+//             {
+//             }
+//
+//             [MonoTODO]
+//             public override void Rollback(IDictionary savedState)
+//             {
+//             }
+//
+//             [MonoTODO]
+//             public override void Uninstall(IDictionary savedState)
+//             {
+//             }
+       }
+}
+
diff --git a/mcs/class/System/System.Diagnostics/EventLogPermission.cs b/mcs/class/System/System.Diagnostics/EventLogPermission.cs
new file mode 100644 (file)
index 0000000..1858ab6
--- /dev/null
@@ -0,0 +1,50 @@
+//
+// System.Diagnostics.EventLogPermission.cs
+//
+// Authors:
+//   Jonathan Pryor (jonpryor@vt.edu)
+//
+// (C) 2002 Jonathan Pryor
+//
+
+using System;
+using System.Diagnostics;
+using System.Security.Permissions;
+
+namespace System.Diagnostics {
+
+       [Serializable]
+       [MonoTODO("Just Stubbed Out")]
+       public class EventLogPermission 
+//             : ResourcePermissionBase
+       {
+//             [MonoTODO]
+//             public EventLogPermission()
+//             {
+//             }
+//
+//             [MonoTODO]
+//             public EventLogPermission(
+//                     EventLogPermissionEntry[] permissionAccessEntries)
+//             {
+//             }
+//
+//             [MonoTODO]
+//             public EventLogPermission(PermissionState state)
+//             {
+//             }
+//
+//             [MonoTODO]
+//             public EventLogPermission(
+//                     EventLogPermissionAccess permissionAccess,
+//                     string machineName)
+//             {
+//             }
+//
+//             [MonoTODO]
+//             public EventLogPermissionEntryCollection PermissionEntries {
+//                     get {throw new NotImplementedException();}
+//             }
+       }
+}
+
diff --git a/mcs/class/System/System.Diagnostics/EventLogPermissionAccess.cs b/mcs/class/System/System.Diagnostics/EventLogPermissionAccess.cs
new file mode 100644 (file)
index 0000000..8ae00f8
--- /dev/null
@@ -0,0 +1,23 @@
+//
+// System.Diagnostics.EventLogPermissionAccess.cs
+//
+// Authors:
+//   Jonathan Pryor (jonpryor@vt.edu)
+//
+// (C) 2002 Jonathan Pryor
+//
+
+using System;
+using System.Diagnostics;
+
+namespace System.Diagnostics {
+
+       [Flags, Serializable]
+       public enum EventLogPermissionAccess {
+               None=0,
+               Browse=0x2,
+               Instrument=0x6,
+               Audit=0xA,
+       }
+}
+
diff --git a/mcs/class/System/System.Diagnostics/EventLogPermissionAttribute.cs b/mcs/class/System/System.Diagnostics/EventLogPermissionAttribute.cs
new file mode 100644 (file)
index 0000000..17eb6ca
--- /dev/null
@@ -0,0 +1,48 @@
+//
+// System.Diagnostics.EventLogPermissionAttribute.cs
+//
+// Authors:
+//   Jonathan Pryor (jonpryor@vt.edu)
+//
+// (C) 2002
+//
+
+using System;
+using System.Diagnostics;
+using System.Security;
+using System.Security.Permissions;
+
+namespace System.Diagnostics {
+
+       [AttributeUsage(
+               AttributeTargets.Assembly | AttributeTargets.Class |
+               AttributeTargets.Struct | AttributeTargets.Constructor |
+               AttributeTargets.Method | AttributeTargets.Event)]
+       [Serializable]
+       [MonoTODO("Just Stubbed Out")]
+       public class EventLogPermissionAttribute : CodeAccessSecurityAttribute {
+
+               public EventLogPermissionAttribute(SecurityAction action)
+                       : base(action)
+               {
+               }
+
+//             // May throw ArgumentException if computer name is invalid
+//             public string MachineName {
+//                     get {throw new NotImplementedException();}
+//                     set {throw new NotImplementedException();}
+//             }
+//
+//             public EventLogPermissionAccess PermissionAccess {
+//                     get {throw new NotImplementedException();}
+//                     set {throw new NotImplementedException();}
+//             }
+//
+               [MonoTODO]
+               public override IPermission CreatePermission()
+               {
+                       throw new NotImplementedException();
+               }
+       }
+}
+
diff --git a/mcs/class/System/System.Diagnostics/EventLogPermissionEntry.cs b/mcs/class/System/System.Diagnostics/EventLogPermissionEntry.cs
new file mode 100644 (file)
index 0000000..efcbbc2
--- /dev/null
@@ -0,0 +1,37 @@
+//
+// System.Diagnostics.EventLogPermissionEntry.cs
+//
+// Authors:
+//   Jonathan Pryor (jonpryor@vt.edu)
+//
+// (C) 2002
+//
+
+using System;
+using System.Diagnostics;
+
+namespace System.Diagnostics {
+
+       [Serializable]
+       [MonoTODO("Just Stubbed Out")]
+       public class EventLogPermissionEntry {
+
+//             [MonoTODO]
+//             public EventLogPermissionEntry(
+//                     EventLogPermissionAccess permissionAccess,
+//                     string machineName)
+//             {
+//             }
+//
+//             [MonoTODO]
+//             public string MachineName {
+//                     get {throw new NotImplementedException();}
+//             }
+//
+//             [MonoTODO]
+//             public EventLogPermissionAccess PermissionAccess {
+//                     get {throw new NotImplementedException();}
+//             }
+       }
+}
+
diff --git a/mcs/class/System/System.Diagnostics/EventLogPermissionEntryCollection.cs b/mcs/class/System/System.Diagnostics/EventLogPermissionEntryCollection.cs
new file mode 100644 (file)
index 0000000..e078af0
--- /dev/null
@@ -0,0 +1,104 @@
+//
+// System.Diagnostics.EventLogEntryCollection.cs
+//
+// Authors:
+//   Jonathan Pryor (jonpryor@vt.edu)
+//
+// (C) 2002 Jonathan Pryor
+//
+
+
+using System;
+using System.Collections;
+using System.Diagnostics;
+
+namespace System.Diagnostics {
+
+       [MonoTODO]
+       public class EventLogPermissionEntryCollection : CollectionBase {
+
+               [MonoTODO]
+               internal EventLogPermissionEntryCollection()
+               {
+               }
+
+//             [MonoTODO]
+//             public virtual EventLogEntry this [int index] {
+//                     get {throw new NotImplementedException();}
+//             }
+//
+//             [MonoTODO]
+//             public int Add(EventLogPermissionEntry value)
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             public void AddRange(EventLogPermissionEntry[] value)
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             public void AddRange(EventLogPermissionEntryCollection value)
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             public bool Contains(EventLogPermissionEntry value)
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             public void CopyTo(EventLogPermissionEntry[] array, int index)
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             public int IndexOf(EventLogPermissionEntry value)
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             public void Insert(int index, EventLogPermissionEntry value)
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             protected override void OnClear()
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             protected override void OnInsert(int index, object value)
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             protected override void OnRemove(int index, object value)
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             protected override void OnSet(int index, object oldValue, 
+//                     object newValue)
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             public void Remove(EventLogPermissionEntry value)
+//             {
+//                     throw new NotImplementedException();
+//             }
+       }
+}
+
diff --git a/mcs/class/System/System.Diagnostics/EventLogTraceListener.cs b/mcs/class/System/System.Diagnostics/EventLogTraceListener.cs
new file mode 100644 (file)
index 0000000..56115b4
--- /dev/null
@@ -0,0 +1,75 @@
+//
+// System.Diagnostics.EventLogTraceListener.cs
+//
+// Authors:
+//   Jonathan Pryor (jonpryor@vt.edu)
+//
+// (C) 2002 Jonathan Pryor
+//
+
+
+using System;
+using System.Collections;
+using System.Diagnostics;
+
+namespace System.Diagnostics {
+
+       [MonoTODO]
+       public class EventLogTraceListener : TraceListener {
+
+//             [MonoTODO]
+//             public EventLogTraceListener()
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             public EventLogTraceListener(EventLog eventLog)
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             public EventLogTraceListener(string source)
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             public EventLog EventLog {
+//                     get {throw new NotImplementedException();}
+//                     set {throw new NotImplementedException();}
+//             }
+//
+//             [MonoTODO]
+//             public override string Name {
+//                     get {throw new NotImplementedException();}
+//                     set {throw new NotImplementedException();}
+//             }
+//
+//             [MonoTODO]
+//             public override void Close()
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+//             [MonoTODO]
+//             protected override void Dispose(bool disposing)
+//             {
+//                     throw new NotImplementedException();
+//             }
+//
+               [MonoTODO]
+               public override void Write(string message)
+               {
+                       throw new NotImplementedException();
+               }
+
+               [MonoTODO]
+               public override void WriteLine(string message)
+               {
+                       throw new NotImplementedException();
+               }
+       }
+}
+