2002-09-17 Nick Drochak <ndrochak@gol.com>
[mono.git] / mcs / class / System / System.Diagnostics / EventLog.cs
1 //
2 // System.Diagnostics.EventLog.cs
3 //
4 // Authors:
5 //   Jonathan Pryor (jonpryor@vt.edu)
6 //
7 // (C) 2002
8 //
9
10 using System;
11 using System.Diagnostics;
12 using System.ComponentModel;
13
14 namespace System.Diagnostics {
15
16         [MonoTODO("This class is just stubbed out")]
17         public class EventLog : Component, ISupportInitialize {
18
19                 private string source;
20                 private string logName;
21                 private string machineName;
22
23                 public EventLog() : this ("")
24                 {
25                 }
26
27                 public EventLog(string logName) : this (logName, "")
28                 {
29                 }
30
31                 public EventLog(string logName, string machineName) 
32                         : this (logName, machineName, "")
33                 {
34                 }
35
36                 public EventLog(string logName, string machineName, 
37                         string source)
38                 {
39                         this.source = source;
40                         this.machineName = machineName;
41                         this.logName = logName;
42                 }
43
44 //              [MonoTODO]
45 //              public bool EnableRaisingEvents {
46 //                      get {return false;}
47 //                      set {/* ignore */}
48 //              }
49 //
50 //              [MonoTODO]
51 //              public EventLogEntryCollection Entries {
52 //                      get {return null;}
53 //              }
54 //
55 //              [MonoTODO]
56 //              public string Log {
57 //                      get {return log;}
58 //                      set {log = value;}
59 //              }
60 //
61 //              [MonoTODO]
62 //              public string LogDisplayName {
63 //                      get {return "";}
64 //              }
65 //
66 //              [MonoTODO]
67 //              public string MachineName {
68 //                      get {return machineName;}
69 //                      set {/* ignore */}
70 //              }
71 //
72 //              [MonoTODO]
73 //              public string Source {
74 //                      get {return source;}
75 //                      set {/* ignore */}
76 //              }
77 //
78 //              [MonoTODO]
79 //              public ISynchronizeInvoke SynchronizingObject {
80 //                      get {return null;}
81 //                      set {/* ignore */}
82 //              }
83 //
84                 [MonoTODO]
85                 public void BeginInit()
86                 {
87                         throw new NotImplementedException ();
88                 }
89
90 //              [MonoTODO]
91 //              public void Clear()
92 //              {
93 //                      throw new NotImplementedException ();
94 //              }
95 //
96 //              [MonoTODO]
97 //              public void Close()
98 //              {
99 //                      throw new NotImplementedException ();
100 //              }
101 //
102 //              [MonoTODO]
103 //              public static void CreateEventSource(string source, 
104 //                      string logName)
105 //              {
106 //                      throw new NotImplementedException ();
107 //              }
108 //
109 //              [MonoTODO]
110 //              public static void CreateEventSource(string source, 
111 //                      string logName, 
112 //                      string machineName)
113 //              {
114 //                      throw new NotImplementedException ();
115 //              }
116 //
117 //              [MonoTODO]
118 //              public static void Delete(string logName)
119 //              {
120 //                      throw new NotImplementedException ();
121 //              }
122 //
123 //              [MonoTODO]
124 //              public static void Delete(string logName, string machineName)
125 //              {
126 //                      throw new NotImplementedException ();
127 //              }
128 //
129 //              [MonoTODO]
130 //              public static void DeleteEventSource(string source)
131 //              {
132 //                      throw new NotImplementedException ();
133 //              }
134 //
135 //              [MonoTODO]
136 //              public static void DeleteEventSource(string source, 
137 //                      string machineName)
138 //              {
139 //                      throw new NotImplementedException ();
140 //              }
141 //
142 //              [MonoTODO]
143 //              protected override void Dispose(bool disposing)
144 //              {
145 //                      throw new NotImplementedException ();
146 //              }
147 //
148                 [MonoTODO]
149                 public void EndInit()
150                 {
151                         throw new NotImplementedException ();
152                 }
153
154 //              [MonoTODO]
155 //              public static bool Exists(string logName)
156 //              {
157 //                      throw new NotImplementedException ();
158 //              }
159 //
160 //              [MonoTODO]
161 //              public static bool Exists(string logName, string machineName)
162 //              {
163 //                      throw new NotImplementedException ();
164 //              }
165 //
166 //              [MonoTODO]
167 //              public static EventLog[] GetEventLogs()
168 //              {
169 //                      throw new NotImplementedException ();
170 //              }
171 //
172 //              [MonoTODO]
173 //              public static EventLog[] GetEventLogs(string machineName)
174 //              {
175 //                      throw new NotImplementedException ();
176 //              }
177 //
178 //              [MonoTODO]
179 //              public static string LogNameFromSourceName(string source, 
180 //                      string machineName)
181 //              {
182 //                      throw new NotImplementedException ();
183 //              }
184 //
185 //              [MonoTODO]
186 //              public static bool SourceExists(string source)
187 //              {
188 //                      throw new NotImplementedException ();
189 //              }
190 //
191 //              [MonoTODO]
192 //              public static bool SourceExists(string source, 
193 //                      string machineName)
194 //              {
195 //                      throw new NotImplementedException ();
196 //              }
197 //
198 //              [MonoTODO]
199 //              public void WriteEntry(string message)
200 //              {
201 //                      throw new NotImplementedException ();
202 //              }
203 //
204 //              [MonoTODO]
205 //              public void WriteEntry(string message, EventLogEntryType type)
206 //              {
207 //                      throw new NotImplementedException ();
208 //              }
209 //
210 //              [MonoTODO]
211 //              public static void WriteEntry(string source, string message)
212 //              {
213 //                      throw new NotImplementedException ();
214 //              }
215 //
216 //              [MonoTODO]
217 //              public void WriteEntry(string message, EventLogEntryType type, 
218 //                      int eventID)
219 //              {
220 //                      throw new NotImplementedException ();
221 //              }
222 //
223 //              [MonoTODO]
224 //              public static void WriteEntry(string source, string message, 
225 //                      EventLogEntryType type)
226 //              {
227 //                      throw new NotImplementedException ();
228 //              }
229 //
230 //              [MonoTODO]
231 //              public void WriteEntry(string message, EventLogEntryType type, 
232 //                      int eventID,
233 //                      short category)
234 //              {
235 //                      throw new NotImplementedException ();
236 //              }
237 //
238 //              [MonoTODO]
239 //              public static void WriteEntry(string source, string message, 
240 //                      EventLogEntryType type, int eventID)
241 //              {
242 //                      throw new NotImplementedException ();
243 //              }
244 //
245 //              [MonoTODO]
246 //              public void WriteEntry(string message, EventLogEntryType type, 
247 //                      int eventID,
248 //                      short category, byte[] rawData)
249 //              {
250 //                      throw new NotImplementedException ();
251 //              }
252 //
253 //              [MonoTODO]
254 //              public static void WriteEntry(string source, string message, 
255 //                      EventLogEntryType type, int eventID, short category)
256 //              {
257 //                      throw new NotImplementedException ();
258 //              }
259 //
260 //              [MonoTODO]
261 //              public static void WriteEntry(string source, string message, 
262 //                      EventLogEntryType type, int eventID, short category, 
263 //                      byte[] rawData)
264 //              {
265 //                      throw new NotImplementedException ();
266 //              }
267
268                 public event EntryWrittenEventHandler EntryWritten;
269         }
270 }
271