build.fix3
[tfs.git] / tools / tfsnd / SmartIrc4net / IrcClient / EventArgs.cs
blobe802fdc8f8810f667662708c818bef996048fc97
1 /*
2 * $Id: EventArgs.cs 203 2005-06-10 01:42:42Z meebey $
3 * $URL: svn://svn.qnetp.net/smartirc/SmartIrc4net/tags/0.4.0/src/IrcClient/EventArgs.cs $
4 * $Rev: 203 $
5 * $Author: meebey $
6 * $Date: 2005-06-10 03:42:42 +0200 (Fri, 10 Jun 2005) $
8 * SmartIrc4net - the IRC library for .NET/C# <http://smartirc4net.sf.net>
10 * Copyright (c) 2003-2005 Mirco Bauer <meebey@meebey.net> <http://www.meebey.net>
12 * Full LGPL License: <http://www.gnu.org/licenses/lgpl.txt>
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Lesser General Public
16 * License as published by the Free Software Foundation; either
17 * version 2.1 of the License, or (at your option) any later version.
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Lesser General Public License for more details.
24 * You should have received a copy of the GNU Lesser General Public
25 * License along with this library; if not, write to the Free Software
26 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
29 using System;
30 using System.Collections.Specialized;
32 namespace Meebey.SmartIrc4net
34 /// <summary>
35 ///
36 /// </summary>
37 public class ActionEventArgs : CtcpEventArgs
39 private string _ActionMessage;
41 public string ActionMessage {
42 get {
43 return _ActionMessage;
47 internal ActionEventArgs(IrcMessageData data, string actionmsg) : base(data, "ACTION", actionmsg)
49 _ActionMessage = actionmsg;
53 /// <summary>
54 ///
55 /// </summary>
56 public class CtcpEventArgs : IrcEventArgs
58 private string _CtcpCommand;
59 private string _CtcpParameter;
61 public string CtcpCommand {
62 get {
63 return _CtcpCommand;
67 public string CtcpParameter {
68 get {
69 return _CtcpParameter;
73 internal CtcpEventArgs(IrcMessageData data, string ctcpcmd, string ctcpparam) : base(data)
75 _CtcpCommand = ctcpcmd;
76 _CtcpParameter = ctcpparam;
80 /// <summary>
81 ///
82 /// </summary>
83 public class ErrorEventArgs : IrcEventArgs
85 private string _ErrorMessage;
87 public string ErrorMessage {
88 get {
89 return _ErrorMessage;
93 internal ErrorEventArgs(IrcMessageData data, string errormsg) : base(data)
95 _ErrorMessage = errormsg;
99 /// <summary>
101 /// </summary>
102 public class MotdEventArgs : IrcEventArgs
104 private string _MotdMessage;
106 public string MotdMessage {
107 get {
108 return _MotdMessage;
112 internal MotdEventArgs(IrcMessageData data, string motdmsg) : base(data)
114 _MotdMessage = motdmsg;
118 /// <summary>
120 /// </summary>
121 public class PingEventArgs : IrcEventArgs
123 private string _PingData;
125 public string PingData {
126 get {
127 return _PingData;
131 internal PingEventArgs(IrcMessageData data, string pingdata) : base(data)
133 _PingData = pingdata;
137 /// <summary>
139 /// </summary>
140 public class PongEventArgs : IrcEventArgs
142 private TimeSpan _Lag;
144 public TimeSpan Lag {
145 get {
146 return _Lag;
150 internal PongEventArgs(IrcMessageData data, TimeSpan lag) : base(data)
152 _Lag = lag;
156 /// <summary>
158 /// </summary>
159 public class KickEventArgs : IrcEventArgs
161 private string _Channel;
162 private string _Who;
163 private string _Whom;
164 private string _KickReason;
166 public string Channel {
167 get {
168 return _Channel;
172 public string Who {
173 get {
174 return _Who;
178 public string Whom {
179 get {
180 return _Whom;
184 public string KickReason {
185 get {
186 return _KickReason;
190 internal KickEventArgs(IrcMessageData data, string channel, string who, string whom, string kickreason) : base(data)
192 _Channel = channel;
193 _Who = who;
194 _Whom = whom;
195 _KickReason = kickreason;
199 /// <summary>
201 /// </summary>
202 public class JoinEventArgs : IrcEventArgs
204 private string _Channel;
205 private string _Who;
207 public string Channel {
208 get {
209 return _Channel;
213 public string Who {
214 get {
215 return _Who;
219 internal JoinEventArgs(IrcMessageData data, string channel, string who) : base(data)
221 _Channel = channel;
222 _Who = who;
226 /// <summary>
228 /// </summary>
229 public class NamesEventArgs : IrcEventArgs
231 private string _Channel;
232 private string[] _UserList;
234 public string Channel {
235 get {
236 return _Channel;
240 public string[] UserList {
241 get {
242 return _UserList;
246 internal NamesEventArgs(IrcMessageData data, string channel, string[] userlist) : base(data)
248 _Channel = channel;
249 _UserList = userlist;
253 /// <summary>
255 /// </summary>
256 public class InviteEventArgs : IrcEventArgs
258 private string _Channel;
259 private string _Who;
261 public string Channel {
262 get {
263 return _Channel;
267 public string Who {
268 get {
269 return _Who;
273 internal InviteEventArgs(IrcMessageData data, string channel, string who) : base(data)
275 _Channel = channel;
276 _Who = who;
280 /// <summary>
282 /// </summary>
283 public class PartEventArgs : IrcEventArgs
285 private string _Channel;
286 private string _Who;
287 private string _PartMessage;
289 public string Channel {
290 get {
291 return _Channel;
295 public string Who {
296 get {
297 return _Who;
301 public string PartMessage {
302 get {
303 return _PartMessage;
307 internal PartEventArgs(IrcMessageData data, string channel, string who, string partmessage) : base(data)
309 _Channel = channel;
310 _Who = who;
311 _PartMessage = partmessage;
314 /// <summary>
316 /// </summary>
317 public class WhoEventArgs : IrcEventArgs
319 private string _Channel;
320 private string _Nick;
321 private string _Ident;
322 private string _Host;
323 private string _Realname;
324 private bool _IsAway;
325 private bool _IsOp;
326 private bool _IsVoice;
327 private bool _IsIrcOp;
328 private string _Server;
329 private int _HopCount;
331 public string Channel {
332 get {
333 return _Channel;
337 public string Nick {
338 get {
339 return _Nick;
343 public string Ident {
344 get {
345 return _Ident;
349 public string Host {
350 get {
351 return _Host;
355 public string Realname {
356 get {
357 return _Realname;
361 public bool IsAway {
362 get {
363 return _IsAway;
367 public bool IsOp {
368 get {
369 return _IsOp;
373 public bool IsVoice {
374 get {
375 return _IsVoice;
379 public bool IsIrcOp {
380 get {
381 return _IsIrcOp;
385 public string Server {
386 get {
387 return _Server;
391 public int HopCount {
392 get {
393 return _HopCount;
397 internal WhoEventArgs(IrcMessageData data, string channel, string nick, string ident, string host, string realname, bool away, bool op, bool voice, bool ircop, string server, int hopcount) : base(data)
399 _Channel = channel;
400 _Nick = nick;
401 _Ident = ident;
402 _Host = host;
403 _Realname = realname;
404 _IsAway = away;
405 _IsOp = op;
406 _IsVoice = voice;
407 _IsIrcOp = ircop;
408 _Server = server;
409 _HopCount = hopcount;
413 /// <summary>
415 /// </summary>
416 public class QuitEventArgs : IrcEventArgs
418 private string _Who;
419 private string _QuitMessage;
421 public string Who {
422 get {
423 return _Who;
427 public string QuitMessage {
428 get {
429 return _QuitMessage;
433 internal QuitEventArgs(IrcMessageData data, string who, string quitmessage) : base(data)
435 _Who = who;
436 _QuitMessage = quitmessage;
441 /// <summary>
443 /// </summary>
444 public class AwayEventArgs : IrcEventArgs
446 private string _Who;
447 private string _AwayMessage;
449 public string Who {
450 get {
451 return _Who;
455 public string AwayMessage{
456 get {
457 return _AwayMessage;
461 internal AwayEventArgs(IrcMessageData data, string who, string awaymessage) : base(data)
463 _Who = who;
464 _AwayMessage = awaymessage;
467 /// <summary>
469 /// </summary>
470 public class NickChangeEventArgs : IrcEventArgs
472 private string _OldNickname;
473 private string _NewNickname;
475 public string OldNickname {
476 get {
477 return _OldNickname;
481 public string NewNickname {
482 get {
483 return _NewNickname;
487 internal NickChangeEventArgs(IrcMessageData data, string oldnick, string newnick) : base(data)
489 _OldNickname = oldnick;
490 _NewNickname = newnick;
494 /// <summary>
496 /// </summary>
497 public class TopicEventArgs : IrcEventArgs
499 private string _Channel;
500 private string _Topic;
502 public string Channel {
503 get {
504 return _Channel;
508 public string Topic {
509 get {
510 return _Topic;
514 internal TopicEventArgs(IrcMessageData data, string channel, string topic) : base(data)
516 _Channel = channel;
517 _Topic = topic;
521 /// <summary>
523 /// </summary>
524 public class TopicChangeEventArgs : IrcEventArgs
526 private string _Channel;
527 private string _Who;
528 private string _NewTopic;
530 public string Channel {
531 get {
532 return _Channel;
536 public string Who {
537 get {
538 return _Who;
542 public string NewTopic {
543 get {
544 return _NewTopic;
548 internal TopicChangeEventArgs(IrcMessageData data, string channel, string who, string newtopic) : base(data)
550 _Channel = channel;
551 _Who = who;
552 _NewTopic = newtopic;
556 /// <summary>
558 /// </summary>
559 public class BanEventArgs : IrcEventArgs
561 private string _Channel;
562 private string _Who;
563 private string _Hostmask;
565 public string Channel {
566 get {
567 return _Channel;
571 public string Who {
572 get {
573 return _Who;
577 public string Hostmask {
578 get {
579 return _Hostmask;
583 internal BanEventArgs(IrcMessageData data, string channel, string who, string hostmask) : base(data)
585 _Channel = channel;
586 _Who = who;
587 _Hostmask = hostmask;
591 /// <summary>
593 /// </summary>
594 public class UnbanEventArgs : IrcEventArgs
596 private string _Channel;
597 private string _Who;
598 private string _Hostmask;
600 public string Channel {
601 get {
602 return _Channel;
606 public string Who {
607 get {
608 return _Who;
612 public string Hostmask {
613 get {
614 return _Hostmask;
618 internal UnbanEventArgs(IrcMessageData data, string channel, string who, string hostmask) : base(data)
620 _Channel = channel;
621 _Who = who;
622 _Hostmask = hostmask;
626 /// <summary>
628 /// </summary>
629 public class OpEventArgs : IrcEventArgs
631 private string _Channel;
632 private string _Who;
633 private string _Whom;
635 public string Channel {
636 get {
637 return _Channel;
641 public string Who {
642 get {
643 return _Who;
647 public string Whom {
648 get {
649 return _Whom;
653 internal OpEventArgs(IrcMessageData data, string channel, string who, string whom) : base(data)
655 _Channel = channel;
656 _Who = who;
657 _Whom = whom;
661 /// <summary>
663 /// </summary>
664 public class DeopEventArgs : IrcEventArgs
666 private string _Channel;
667 private string _Who;
668 private string _Whom;
670 public string Channel {
671 get {
672 return _Channel;
676 public string Who {
677 get {
678 return _Who;
682 public string Whom {
683 get {
684 return _Whom;
688 internal DeopEventArgs(IrcMessageData data, string channel, string who, string whom) : base(data)
690 _Channel = channel;
691 _Who = who;
692 _Whom = whom;
696 /// <summary>
698 /// </summary>
699 public class HalfopEventArgs : IrcEventArgs
701 private string _Channel;
702 private string _Who;
703 private string _Whom;
705 public string Channel {
706 get {
707 return _Channel;
711 public string Who {
712 get {
713 return _Who;
717 public string Whom {
718 get {
719 return _Whom;
723 internal HalfopEventArgs(IrcMessageData data, string channel, string who, string whom) : base(data)
725 _Channel = channel;
726 _Who = who;
727 _Whom = whom;
731 /// <summary>
733 /// </summary>
734 public class DehalfopEventArgs : IrcEventArgs
736 private string _Channel;
737 private string _Who;
738 private string _Whom;
740 public string Channel {
741 get {
742 return _Channel;
746 public string Who {
747 get {
748 return _Who;
752 public string Whom {
753 get {
754 return _Whom;
758 internal DehalfopEventArgs(IrcMessageData data, string channel, string who, string whom) : base(data)
760 _Channel = channel;
761 _Who = who;
762 _Whom = whom;
766 /// <summary>
768 /// </summary>
769 public class VoiceEventArgs : IrcEventArgs
771 private string _Channel;
772 private string _Who;
773 private string _Whom;
775 public string Channel {
776 get {
777 return _Channel;
781 public string Who {
782 get {
783 return _Who;
787 public string Whom {
788 get {
789 return _Whom;
793 internal VoiceEventArgs(IrcMessageData data, string channel, string who, string whom) : base(data)
795 _Channel = channel;
796 _Who = who;
797 _Whom = whom;
801 /// <summary>
803 /// </summary>
804 public class DevoiceEventArgs : IrcEventArgs
806 private string _Channel;
807 private string _Who;
808 private string _Whom;
810 public string Channel {
811 get {
812 return _Channel;
816 public string Who {
817 get {
818 return _Who;
822 public string Whom {
823 get {
824 return _Whom;
828 internal DevoiceEventArgs(IrcMessageData data, string channel, string who, string whom) : base(data)
830 _Channel = channel;
831 _Who = who;
832 _Whom = whom;