Sfoglia il codice sorgente

Parser support for arbitrary timestampyness

Change-Id: Ia9c4b46b63cd731db004f490bf460d98c99791a6
Reviewed-on: http://gerrit.dmdirc.com/1209
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
Automatic-Compile: Shane Mc Cormack <shane@dmdirc.com>
tags/0.6.4
Chris Smith 14 anni fa
parent
commit
bb8c9e20a1
65 ha cambiato i file con 1016 aggiunte e 711 eliminazioni
  1. 16
    2
      src/com/dmdirc/parser/common/CallbackObject.java
  2. 6
    10
      src/com/dmdirc/parser/common/CallbackObjectSpecific.java
  3. 11
    7
      src/com/dmdirc/parser/interfaces/callbacks/AuthNoticeListener.java
  4. 13
    9
      src/com/dmdirc/parser/interfaces/callbacks/AwayStateListener.java
  5. 20
    17
      src/com/dmdirc/parser/interfaces/callbacks/ChannelActionListener.java
  6. 23
    18
      src/com/dmdirc/parser/interfaces/callbacks/ChannelCtcpListener.java
  7. 23
    18
      src/com/dmdirc/parser/interfaces/callbacks/ChannelCtcpReplyListener.java
  8. 15
    10
      src/com/dmdirc/parser/interfaces/callbacks/ChannelJoinListener.java
  9. 23
    18
      src/com/dmdirc/parser/interfaces/callbacks/ChannelKickListener.java
  10. 14
    9
      src/com/dmdirc/parser/interfaces/callbacks/ChannelListModeListener.java
  11. 21
    17
      src/com/dmdirc/parser/interfaces/callbacks/ChannelMessageListener.java
  12. 21
    17
      src/com/dmdirc/parser/interfaces/callbacks/ChannelModeChangeListener.java
  13. 22
    18
      src/com/dmdirc/parser/interfaces/callbacks/ChannelModeMessageListener.java
  14. 22
    18
      src/com/dmdirc/parser/interfaces/callbacks/ChannelModeNoticeListener.java
  15. 12
    8
      src/com/dmdirc/parser/interfaces/callbacks/ChannelNamesListener.java
  16. 17
    11
      src/com/dmdirc/parser/interfaces/callbacks/ChannelNickChangeListener.java
  17. 20
    16
      src/com/dmdirc/parser/interfaces/callbacks/ChannelNonUserModeChangeListener.java
  18. 21
    17
      src/com/dmdirc/parser/interfaces/callbacks/ChannelNoticeListener.java
  19. 16
    11
      src/com/dmdirc/parser/interfaces/callbacks/ChannelOtherAwayStateListener.java
  20. 16
    11
      src/com/dmdirc/parser/interfaces/callbacks/ChannelPartListener.java
  21. 17
    11
      src/com/dmdirc/parser/interfaces/callbacks/ChannelQuitListener.java
  22. 14
    9
      src/com/dmdirc/parser/interfaces/callbacks/ChannelSelfJoinListener.java
  23. 20
    16
      src/com/dmdirc/parser/interfaces/callbacks/ChannelSingleModeChangeListener.java
  24. 14
    10
      src/com/dmdirc/parser/interfaces/callbacks/ChannelTopicListener.java
  25. 23
    19
      src/com/dmdirc/parser/interfaces/callbacks/ChannelUserModeChangeListener.java
  26. 13
    8
      src/com/dmdirc/parser/interfaces/callbacks/ConnectErrorListener.java
  27. 13
    8
      src/com/dmdirc/parser/interfaces/callbacks/DataInListener.java
  28. 14
    9
      src/com/dmdirc/parser/interfaces/callbacks/DataOutListener.java
  29. 14
    9
      src/com/dmdirc/parser/interfaces/callbacks/DebugInfoListener.java
  30. 13
    8
      src/com/dmdirc/parser/interfaces/callbacks/ErrorInfoListener.java
  31. 14
    9
      src/com/dmdirc/parser/interfaces/callbacks/InviteListener.java
  32. 14
    9
      src/com/dmdirc/parser/interfaces/callbacks/MotdEndListener.java
  33. 13
    8
      src/com/dmdirc/parser/interfaces/callbacks/MotdLineListener.java
  34. 13
    8
      src/com/dmdirc/parser/interfaces/callbacks/MotdStartListener.java
  35. 17
    11
      src/com/dmdirc/parser/interfaces/callbacks/NetworkDetectedListener.java
  36. 15
    10
      src/com/dmdirc/parser/interfaces/callbacks/NickChangeListener.java
  37. 13
    8
      src/com/dmdirc/parser/interfaces/callbacks/NickInUseListener.java
  38. 14
    9
      src/com/dmdirc/parser/interfaces/callbacks/NumericListener.java
  39. 16
    10
      src/com/dmdirc/parser/interfaces/callbacks/OtherAwayStateListener.java
  40. 12
    7
      src/com/dmdirc/parser/interfaces/callbacks/PasswordRequiredListener.java
  41. 12
    7
      src/com/dmdirc/parser/interfaces/callbacks/PingFailureListener.java
  42. 11
    7
      src/com/dmdirc/parser/interfaces/callbacks/PingSentListener.java
  43. 11
    7
      src/com/dmdirc/parser/interfaces/callbacks/PingSuccessListener.java
  44. 11
    7
      src/com/dmdirc/parser/interfaces/callbacks/Post005Listener.java
  45. 15
    11
      src/com/dmdirc/parser/interfaces/callbacks/PrivateActionListener.java
  46. 17
    12
      src/com/dmdirc/parser/interfaces/callbacks/PrivateCtcpListener.java
  47. 16
    12
      src/com/dmdirc/parser/interfaces/callbacks/PrivateCtcpReplyListener.java
  48. 16
    11
      src/com/dmdirc/parser/interfaces/callbacks/PrivateMessageListener.java
  49. 17
    12
      src/com/dmdirc/parser/interfaces/callbacks/PrivateNoticeListener.java
  50. 15
    10
      src/com/dmdirc/parser/interfaces/callbacks/QuitListener.java
  51. 13
    8
      src/com/dmdirc/parser/interfaces/callbacks/ServerErrorListener.java
  52. 15
    10
      src/com/dmdirc/parser/interfaces/callbacks/ServerNoticeListener.java
  53. 12
    7
      src/com/dmdirc/parser/interfaces/callbacks/ServerReadyListener.java
  54. 8
    5
      src/com/dmdirc/parser/interfaces/callbacks/SocketCloseListener.java
  55. 19
    13
      src/com/dmdirc/parser/interfaces/callbacks/UnknownActionListener.java
  56. 19
    13
      src/com/dmdirc/parser/interfaces/callbacks/UnknownCtcpListener.java
  57. 18
    13
      src/com/dmdirc/parser/interfaces/callbacks/UnknownCtcpReplyListener.java
  58. 16
    12
      src/com/dmdirc/parser/interfaces/callbacks/UnknownMessageListener.java
  59. 17
    12
      src/com/dmdirc/parser/interfaces/callbacks/UnknownNoticeListener.java
  60. 17
    12
      src/com/dmdirc/parser/interfaces/callbacks/UnknownServerNoticeListener.java
  61. 17
    12
      src/com/dmdirc/parser/interfaces/callbacks/UserModeChangeListener.java
  62. 14
    10
      src/com/dmdirc/parser/interfaces/callbacks/UserModeDiscoveryListener.java
  63. 14
    10
      src/com/dmdirc/parser/interfaces/callbacks/WallDesyncListener.java
  64. 14
    10
      src/com/dmdirc/parser/interfaces/callbacks/WallopListener.java
  65. 14
    10
      src/com/dmdirc/parser/interfaces/callbacks/WalluserListener.java

+ 16
- 2
src/com/dmdirc/parser/common/CallbackObject.java Vedi File

@@ -33,6 +33,7 @@ import java.lang.reflect.Constructor;
33 33
 import java.lang.reflect.InvocationTargetException;
34 34
 import java.lang.reflect.Method;
35 35
 import java.util.ArrayList;
36
+import java.util.Date;
36 37
 import java.util.HashMap;
37 38
 import java.util.List;
38 39
 import java.util.Map;
@@ -138,11 +139,24 @@ public abstract class CallbackObject {
138 139
      * @return True if a method was called, false otherwise
139 140
      */
140 141
     public boolean call(final Object... args) {
142
+        return call(new Date(), args);
143
+    }
144
+
145
+    /**
146
+     * Actually calls this callback. The specified arguments must match those
147
+     * specified in the callback's interface, or an error will be raised.
148
+     *
149
+     * @param date The date/time at which the event occured
150
+     * @param args The arguments to pass to the callback implementation
151
+     * @return True if a method was called, false otherwise
152
+     */
153
+    public boolean call(final Date date, final Object... args) {
141 154
         boolean bResult = false;
142 155
 
143
-        final Object[] newArgs = new Object[args.length + 1];
144
-        System.arraycopy(args, 0, newArgs, 1, args.length);
156
+        final Object[] newArgs = new Object[args.length + 2];
157
+        System.arraycopy(args, 0, newArgs, 2, args.length);
145 158
         newArgs[0] = myParser;
159
+        newArgs[1] = date;
146 160
 
147 161
         createFakeArgs(newArgs);
148 162
 

+ 6
- 10
src/com/dmdirc/parser/common/CallbackObjectSpecific.java Vedi File

@@ -28,6 +28,7 @@ import com.dmdirc.parser.interfaces.Parser;
28 28
 import com.dmdirc.parser.interfaces.callbacks.CallbackInterface;
29 29
 
30 30
 import java.util.ArrayList;
31
+import java.util.Date;
31 32
 import java.util.Hashtable;
32 33
 
33 34
 /**
@@ -140,20 +141,15 @@ public abstract class CallbackObjectSpecific extends CallbackObject {
140 141
         }
141 142
     }
142 143
 
143
-    /**
144
-     * Actually calls this callback. The specified arguments must match those
145
-     * specified in the callback's interface, or an error will be raised.
146
-     *
147
-     * @param args The arguments to pass to the callback implementation
148
-     * @return True if a method was called, false otherwise
149
-     */
144
+    /** {@inheritDoc} */
150 145
     @Override
151
-    public boolean call(final Object... args) {
146
+    public boolean call(final Date date, final Object... args) {
152 147
         boolean bResult = false;
153 148
 
154
-        final Object[] newArgs = new Object[args.length + 1];
155
-        System.arraycopy(args, 0, newArgs, 1, args.length);
149
+        final Object[] newArgs = new Object[args.length + 2];
150
+        System.arraycopy(args, 0, newArgs, 2, args.length);
156 151
         newArgs[0] = myParser;
152
+        newArgs[1] = date;
157 153
 
158 154
         createFakeArgs(newArgs);
159 155
 

+ 11
- 7
src/com/dmdirc/parser/interfaces/callbacks/AuthNoticeListener.java Vedi File

@@ -24,17 +24,21 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Interface Used on every incomming line before 001.
29 31
  */
30 32
 public interface AuthNoticeListener extends CallbackInterface {
31 33
 
32 34
     /**
33
-	 * Called on every incomming line before 001.
34
-	 * 
35
-	 * @param tParser Reference to the parser object that made the callback.
36
-	 * @param sData Incomming Line.
37
-	 * @see com.dmdirc.parser.irc.ProcessNoticeAuth#callNoticeAuth
38
-	 */
39
-	void onNoticeAuth(Parser tParser, String sData);
35
+     * Called on every incomming line before 001.
36
+     *
37
+     * @param parser Reference to the parser object that made the callback.
38
+     * @param date The date/time at which the event occured
39
+     * @param data Incomming Line.
40
+     * @see com.dmdirc.parser.irc.ProcessNoticeAuth#callNoticeAuth
41
+     */
42
+    void onNoticeAuth(Parser parser, Date date, String data);
43
+
40 44
 }

+ 13
- 9
src/com/dmdirc/parser/interfaces/callbacks/AwayStateListener.java Vedi File

@@ -25,19 +25,23 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.common.AwayState;
26 26
 import com.dmdirc.parser.interfaces.Parser;
27 27
 
28
+import java.util.Date;
29
+
28 30
 /**
29 31
  * Called when we go away, or come back.
30 32
  */
31 33
 public interface AwayStateListener extends CallbackInterface {
32 34
 
33 35
     /**
34
-	 * Called when we go away, or come back.
35
-	 *
36
-	 * @param tParser Reference to the parser object that made the callback.
37
-         * @param oldState Old Away State
38
-	 * @param currentState Current Away State
39
-	 * @param reason Best guess at away reason
40
-	 * @see com.dmdirc.parser.irc.ProcessAway#callAwayState
41
-	 */
42
-	void onAwayState(Parser tParser, AwayState oldState, AwayState currentState, String reason);
36
+     * Called when we go away, or come back.
37
+     *
38
+     * @param parser Reference to the parser object that made the callback.
39
+     * @param date The date/time at which the event occured
40
+     * @param oldState Old Away State
41
+     * @param currentState Current Away State
42
+     * @param reason Best guess at away reason
43
+     * @see com.dmdirc.parser.irc.ProcessAway#callAwayState
44
+     */
45
+    void onAwayState(Parser parser, Date date, AwayState oldState,
46
+            AwayState currentState, String reason);
43 47
 }

+ 20
- 17
src/com/dmdirc/parser/interfaces/callbacks/ChannelActionListener.java Vedi File

@@ -28,6 +28,7 @@ import com.dmdirc.parser.interfaces.Parser;
28 28
 import com.dmdirc.parser.interfaces.FakableArgument;
29 29
 import com.dmdirc.parser.interfaces.FakableSource;
30 30
 import com.dmdirc.parser.interfaces.SpecificCallback;
31
+import java.util.Date;
31 32
 
32 33
 /**
33 34
  * Called when a person does an action in a channel.
@@ -38,21 +39,23 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
38 39
 public interface ChannelActionListener extends CallbackInterface {
39 40
 
40 41
     /**
41
-	 * Called when a person does an action in a channel.
42
-	 * sHost is the hostname of the person sending the action. (Can be a server or a person)<br>
43
-	 * cChannelClient is null if user is a server, or not on the channel.
44
-	 * 
45
-	 * @param tParser Reference to the parser object that made the callback.
46
-	 * @param cChannel Channel where the action was sent to
47
-	 * @param cChannelClient ChannelClient who sent the action (may be null if server)
48
-	 * @param sMessage action contents
49
-	 * @param sHost Hostname of sender (or servername)
50
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callChannelAction
51
-	 */
52
-	void onChannelAction(
53
-            @FakableSource Parser tParser,
54
-            @FakableSource ChannelInfo cChannel,
55
-            @FakableArgument ChannelClientInfo cChannelClient,
56
-            String sMessage,
57
-            @FakableSource String sHost);
42
+     * Called when a person does an action in a channel.
43
+     * sHost is the hostname of the person sending the action. (Can be a server or a person)<br>
44
+     * cChannelClient is null if user is a server, or not on the channel.
45
+     *
46
+     * @param parser Reference to the parser object that made the callback.
47
+     * @param date The date/time at which the event occured
48
+     * @param channel Channel where the action was sent to
49
+     * @param client ChannelClient who sent the action (may be null if server)
50
+     * @param message action contents
51
+     * @param host Hostname of sender (or servername)
52
+     * @see com.dmdirc.parser.irc.ProcessMessage#callChannelAction
53
+     */
54
+    void onChannelAction(
55
+        @FakableSource Parser parser,
56
+        Date date,
57
+        @FakableSource ChannelInfo channel,
58
+        @FakableArgument ChannelClientInfo client,
59
+        String message,
60
+        @FakableSource String host);
58 61
 }

+ 23
- 18
src/com/dmdirc/parser/interfaces/callbacks/ChannelCtcpListener.java Vedi File

@@ -29,6 +29,8 @@ import com.dmdirc.parser.interfaces.FakableArgument;
29 29
 import com.dmdirc.parser.interfaces.FakableSource;
30 30
 import com.dmdirc.parser.interfaces.SpecificCallback;
31 31
 
32
+import java.util.Date;
33
+
32 34
 /**
33 35
  * Called when a person sends a CTCP to a channel.
34 36
  * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
@@ -36,22 +38,25 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
36 38
  */
37 39
 @SpecificCallback
38 40
 public interface ChannelCtcpListener extends CallbackInterface {
39
-	/**
40
-	 * Called when a person sends a CTCP to a channel.
41
-	 * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
42
-	 * cChannelClient is null if user is a server.
43
-	 * 
44
-	 * @param tParser Reference to the parser object that made the callback.
45
-	 * @param cChannel Channel where CTCP was sent
46
-	 * @param cChannelClient ChannelClient who sent the message (may be null if server)
47
-	 * @param sType Type of CTCP (VERSION, TIME etc)
48
-	 * @param sMessage Additional contents
49
-	 * @param sHost Hostname of sender (or servername)
50
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callChannelCTCP
51
-	 */
52
-	void onChannelCTCP(@FakableSource Parser tParser,
53
-            @FakableSource ChannelInfo cChannel,
54
-            @FakableArgument ChannelClientInfo cChannelClient,
55
-            String sType, String sMessage,
56
-            @FakableSource String sHost);
41
+    
42
+    /**
43
+     * Called when a person sends a CTCP to a channel.
44
+     * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
45
+     * cChannelClient is null if user is a server.
46
+     *
47
+     * @param parser Reference to the parser object that made the callback.
48
+     * @param date The date/time at which the event occured
49
+     * @param channel Channel where CTCP was sent
50
+     * @param client ChannelClient who sent the message (may be null if server)
51
+     * @param type Type of CTCP (VERSION, TIME etc)
52
+     * @param message Additional contents
53
+     * @param host Hostname of sender (or servername)
54
+     * @see com.dmdirc.parser.irc.ProcessMessage#callChannelCTCP
55
+     */
56
+    void onChannelCTCP(@FakableSource Parser parser,
57
+            Date date,
58
+            @FakableSource ChannelInfo channel,
59
+            @FakableArgument ChannelClientInfo client,
60
+            String type, String message,
61
+            @FakableSource String host);
57 62
 }

+ 23
- 18
src/com/dmdirc/parser/interfaces/callbacks/ChannelCtcpReplyListener.java Vedi File

@@ -29,6 +29,8 @@ import com.dmdirc.parser.interfaces.FakableArgument;
29 29
 import com.dmdirc.parser.interfaces.FakableSource;
30 30
 import com.dmdirc.parser.interfaces.SpecificCallback;
31 31
 
32
+import java.util.Date;
33
+
32 34
 /**
33 35
  * Called when a person sends a CTCPRReply to a channel.
34 36
  * sHost is the hostname of the person sending the CTCPReply. (Can be a server or a person)<br>
@@ -36,22 +38,25 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
36 38
  */
37 39
 @SpecificCallback
38 40
 public interface ChannelCtcpReplyListener extends CallbackInterface {
39
-	/**
40
-	 * Called when a person sends a CTCPRReply to a channel.
41
-	 * sHost is the hostname of the person sending the CTCPReply. (Can be a server or a person)<br>
42
-	 * cChannelClient is null if user is a server.
43
-	 * 
44
-	 * @param tParser Reference to the parser object that made the callback.
45
-	 * @param cChannel Channel where CTCPReply was sent
46
-	 * @param cChannelClient ChannelClient who sent the message (may be null if server)
47
-	 * @param sType Type of CTCPRReply (VERSION, TIME etc)
48
-	 * @param sMessage Reply Contents
49
-	 * @param sHost Hostname of sender (or servername)
50
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callChannelCTCPReply
51
-	 */
52
-	void onChannelCTCPReply(@FakableSource Parser tParser,
53
-            @FakableSource ChannelInfo cChannel,
54
-            @FakableArgument ChannelClientInfo cChannelClient,
55
-            String sType, String sMessage,
56
-            @FakableSource String sHost);
41
+
42
+    /**
43
+     * Called when a person sends a CTCPRReply to a channel.
44
+     * sHost is the hostname of the person sending the CTCPReply. (Can be a server or a person)<br>
45
+     * cChannelClient is null if user is a server.
46
+     *
47
+     * @param parser Reference to the parser object that made the callback.
48
+     * @param date The date/time at which the event occured
49
+     * @param channel Channel where CTCPReply was sent
50
+     * @param client ChannelClient who sent the message (may be null if server)
51
+     * @param type Type of CTCPRReply (VERSION, TIME etc)
52
+     * @param message Reply Contents
53
+     * @param host Hostname of sender (or servername)
54
+     * @see com.dmdirc.parser.irc.ProcessMessage#callChannelCTCPReply
55
+     */
56
+    void onChannelCTCPReply(@FakableSource Parser parser,
57
+            Date date,
58
+            @FakableSource ChannelInfo channel,
59
+            @FakableArgument ChannelClientInfo client,
60
+            String type, String message,
61
+            @FakableSource String host);
57 62
 }

+ 15
- 10
src/com/dmdirc/parser/interfaces/callbacks/ChannelJoinListener.java Vedi File

@@ -27,20 +27,25 @@ import com.dmdirc.parser.interfaces.ChannelInfo;
27 27
 import com.dmdirc.parser.interfaces.Parser;
28 28
 import com.dmdirc.parser.interfaces.SpecificCallback;
29 29
 
30
+import java.util.Date;
31
+
30 32
 /** 
31 33
  * Called When we, or another client joins a channel.
32 34
  * This is called AFTER client has been added to channel as a ChannelClientInfo
33 35
  */
34 36
 @SpecificCallback
35 37
 public interface ChannelJoinListener extends CallbackInterface {
36
-	/**
37
-	 * Called When another client joins a channel.
38
-	 * This is called AFTER client has been added to channel as a ChannelClientInfo
39
-	 * 
40
-	 * @param tParser Reference to the parser object that made the callback.
41
-	 * @param cChannel Channel Object
42
-	 * @param cChannelClient ChannelClient object for new person
43
-	 * @see com.dmdirc.parser.irc.ProcessJoin#callChannelJoin
44
-	 */
45
-	void onChannelJoin(Parser tParser, ChannelInfo cChannel, ChannelClientInfo cChannelClient);
38
+
39
+    /**
40
+     * Called When another client joins a channel.
41
+     * This is called AFTER client has been added to channel as a ChannelClientInfo
42
+     *
43
+     * @param parser Reference to the parser object that made the callback.
44
+     * @param date The date/time at which the event occured
45
+     * @param channel Channel Object
46
+     * @param client ChannelClient object for new person
47
+     * @see com.dmdirc.parser.irc.ProcessJoin#callChannelJoin
48
+     */
49
+    void onChannelJoin(Parser parser, Date date, ChannelInfo channel, ChannelClientInfo client);
50
+
46 51
 }

+ 23
- 18
src/com/dmdirc/parser/interfaces/callbacks/ChannelKickListener.java Vedi File

@@ -29,28 +29,33 @@ import com.dmdirc.parser.interfaces.FakableArgument;
29 29
 import com.dmdirc.parser.interfaces.FakableSource;
30 30
 import com.dmdirc.parser.interfaces.SpecificCallback;
31 31
 
32
+import java.util.Date;
33
+
32 34
 /**
33 35
  * Called when a person is kicked.
34 36
  * cKickedByClient can be null if kicked by a server. sKickedByHost is the hostname of the person/server doing the kicking.
35 37
  */
36 38
 @SpecificCallback
37 39
 public interface ChannelKickListener extends CallbackInterface {
38
-	/**
39
-	 * Called when a person is kicked.
40
-	 * cKickedByClient can be null if kicked by a server. sKickedByHost is the hostname of the person/server doing the kicking.
41
-	 *
42
-	 * @param tParser Reference to the parser object that made the callback.
43
-	 * @param cChannel Channel where the kick took place
44
-	 * @param cKickedClient ChannelClient that got kicked
45
-	 * @param cKickedByClient ChannelClient that did the kicking (may be null if server)
46
-	 * @param sReason Reason for kick (may be "")
47
-	 * @param sKickedByHost Hostname of Kicker (or servername)
48
-	 * @see com.dmdirc.parser.irc.ProcessKick#callChannelKick
49
-	 */
50
-	void onChannelKick(@FakableSource Parser tParser,
51
-            @FakableSource ChannelInfo cChannel,
52
-            ChannelClientInfo cKickedClient,
53
-            @FakableArgument ChannelClientInfo cKickedByClient,
54
-            String sReason,
55
-            @FakableSource String sKickedByHost);
40
+
41
+    /**
42
+     * Called when a person is kicked.
43
+     * cKickedByClient can be null if kicked by a server. sKickedByHost is the hostname of the person/server doing the kicking.
44
+     *
45
+     * @param parser Reference to the parser object that made the callback.
46
+     * @param date The date/time at which the event occured
47
+     * @param channel Channel where the kick took place
48
+     * @param kickedClient ChannelClient that got kicked
49
+     * @param client ChannelClient that did the kicking (may be null if server)
50
+     * @param reason Reason for kick (may be "")
51
+     * @param host Hostname of Kicker (or servername)
52
+     * @see com.dmdirc.parser.irc.ProcessKick#callChannelKick
53
+     */
54
+    void onChannelKick(@FakableSource Parser parser,
55
+            Date date,
56
+            @FakableSource ChannelInfo channel,
57
+            ChannelClientInfo kickedClient,
58
+            @FakableArgument ChannelClientInfo client,
59
+            String reason,
60
+            @FakableSource String host);
56 61
 }

+ 14
- 9
src/com/dmdirc/parser/interfaces/callbacks/ChannelListModeListener.java Vedi File

@@ -26,6 +26,8 @@ import com.dmdirc.parser.interfaces.ChannelInfo;
26 26
 import com.dmdirc.parser.interfaces.Parser;
27 27
 import com.dmdirc.parser.interfaces.SpecificCallback;
28 28
 
29
+import java.util.Date;
30
+
29 31
 /**
30 32
  * Called when all requested ListModes have been sent.
31 33
  * This is decided by ProcessListModes, and is called when an "end of list"
@@ -33,13 +35,16 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
33 35
  */
34 36
 @SpecificCallback
35 37
 public interface ChannelListModeListener extends CallbackInterface {
36
-	/**
37
-	 * Called when a ListModes reply is parsed.
38
-	 *
39
-	 * @param tParser Reference to the parser object that made the callback.
40
-	 * @param cChannel Channel which the ListModes reply is for
41
-         * @param mode the Mode the ListMOdes reply is for.
42
-	 * @see com.dmdirc.parser.irc.ProcessListModes#callChannelGotListModes
43
-	 */
44
-	void onChannelGotListModes(Parser tParser, ChannelInfo cChannel, char mode);
38
+
39
+    /**
40
+     * Called when a ListModes reply is parsed.
41
+     *
42
+     * @param parser Reference to the parser object that made the callback.
43
+     * @param date The date/time at which the event occured
44
+     * @param channel Channel which the ListModes reply is for
45
+     * @param mode the Mode the ListMOdes reply is for.
46
+     * @see com.dmdirc.parser.irc.ProcessListModes#callChannelGotListModes
47
+     */
48
+    void onChannelGotListModes(Parser parser, Date date, ChannelInfo channel, char mode);
49
+
45 50
 }

+ 21
- 17
src/com/dmdirc/parser/interfaces/callbacks/ChannelMessageListener.java Vedi File

@@ -29,6 +29,8 @@ import com.dmdirc.parser.interfaces.FakableArgument;
29 29
 import com.dmdirc.parser.interfaces.FakableSource;
30 30
 import com.dmdirc.parser.interfaces.SpecificCallback;
31 31
 
32
+import java.util.Date;
33
+
32 34
 /**
33 35
  * Called when a person sends a message to a channel.
34 36
  * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
@@ -36,21 +38,23 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
36 38
  */
37 39
 @SpecificCallback
38 40
 public interface ChannelMessageListener extends CallbackInterface {
39
-	/**
40
-	 * Called when a person sends a message to a channel.
41
-	 * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
42
-	 * cChannelClient is null if user is a server, or not on the channel.
43
-	 *
44
-	 * @param tParser Reference to the parser object that made the callback.
45
-	 * @param cChannel Channel where the message was sent to
46
-	 * @param cChannelClient ChannelClient who sent the message (may be null if server)
47
-	 * @param sMessage Message contents
48
-	 * @param sHost Hostname of sender (or servername)
49
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callChannelMessage
50
-	 */
51
-	void onChannelMessage(@FakableSource Parser tParser,
52
-            @FakableSource ChannelInfo cChannel,
53
-            @FakableArgument ChannelClientInfo cChannelClient,
54
-            String sMessage,
55
-            @FakableSource String sHost);
41
+
42
+    /**
43
+     * Called when a person sends a message to a channel.
44
+     * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
45
+     * cChannelClient is null if user is a server, or not on the channel.
46
+     *
47
+     * @param parser Reference to the parser object that made the callback.
48
+     * @param date The date/time at which the event occured
49
+     * @param channel Channel where the message was sent to
50
+     * @param client ChannelClient who sent the message (may be null if server)
51
+     * @param message Message contents
52
+     * @param host Hostname of sender (or servername)
53
+     * @see com.dmdirc.parser.irc.ProcessMessage#callChannelMessage
54
+     */
55
+    void onChannelMessage(@FakableSource Parser parser, Date date,
56
+            @FakableSource ChannelInfo channel,
57
+            @FakableArgument ChannelClientInfo client,
58
+            String message,
59
+            @FakableSource String host);
56 60
 }

+ 21
- 17
src/com/dmdirc/parser/interfaces/callbacks/ChannelModeChangeListener.java Vedi File

@@ -29,6 +29,8 @@ import com.dmdirc.parser.interfaces.FakableArgument;
29 29
 import com.dmdirc.parser.interfaces.FakableSource;
30 30
 import com.dmdirc.parser.interfaces.SpecificCallback;
31 31
 
32
+import java.util.Date;
33
+
32 34
 /** 
33 35
  * Called when the channel modes are changed or discovered.
34 36
  * cChannelClient is null if the modes were found from raw 324 (/MODE #Chan reply) or if a server set the mode.<br>
@@ -36,21 +38,23 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
36 38
  */
37 39
 @SpecificCallback
38 40
 public interface ChannelModeChangeListener extends CallbackInterface {
39
-	/**
40
-	 * Called when the channel modes are changed or discovered.
41
-	 * cChannelClient is null if the modes were found from raw 324 (/MODE #Chan reply) or if a server set the mode.<br>
42
-	 * If a Server set the mode, sHost is the servers name, else it is the full host of the user who set it
43
-	 * 
44
-	 * @param tParser Reference to the parser object that made the callback.
45
-	 * @param cChannel Channel where modes were changed
46
-	 * @param cChannelClient Client chaning the modes (null if server)
47
-	 * @param sHost Host doing the mode changing (User host or server name)
48
-	 * @param sModes String showing the exact mode change parsed.
49
-	 * @see com.dmdirc.parser.irc.ProcessMode#callChannelModeChanged
50
-	 */
51
-	void onChannelModeChanged(@FakableSource Parser tParser,
52
-            @FakableSource ChannelInfo cChannel,
53
-            @FakableArgument ChannelClientInfo cChannelClient,
54
-            @FakableSource String sHost,
55
-            String sModes);
41
+
42
+    /**
43
+     * Called when the channel modes are changed or discovered.
44
+     * cChannelClient is null if the modes were found from raw 324 (/MODE #Chan reply) or if a server set the mode.<br>
45
+     * If a Server set the mode, sHost is the servers name, else it is the full host of the user who set it
46
+     *
47
+     * @param parser Reference to the parser object that made the callback.
48
+     * @param date The date/time at which the event occured
49
+     * @param channel Channel where modes were changed
50
+     * @param client Client chaning the modes (null if server)
51
+     * @param host Host doing the mode changing (User host or server name)
52
+     * @param modes String showing the exact mode change parsed.
53
+     * @see com.dmdirc.parser.irc.ProcessMode#callChannelModeChanged
54
+     */
55
+    void onChannelModeChanged(@FakableSource Parser parser, Date date,
56
+            @FakableSource ChannelInfo channel,
57
+            @FakableArgument ChannelClientInfo client,
58
+            @FakableSource String host,
59
+            String modes);
56 60
 }

+ 22
- 18
src/com/dmdirc/parser/interfaces/callbacks/ChannelModeMessageListener.java Vedi File

@@ -29,6 +29,8 @@ import com.dmdirc.parser.interfaces.FakableArgument;
29 29
 import com.dmdirc.parser.interfaces.FakableSource;
30 30
 import com.dmdirc.parser.interfaces.SpecificCallback;
31 31
 
32
+import java.util.Date;
33
+
32 34
 /**
33 35
  * Called when a person sends a Message to a channel with a mode prefix.
34 36
  * (Examples @#Channel +#Channel)
@@ -37,23 +39,25 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
37 39
  */
38 40
 @SpecificCallback
39 41
 public interface ChannelModeMessageListener extends CallbackInterface {
40
-	/**
41
-	 * Called when a person sends a Message to a channel.
42
-	 * sHost is the hostname of the person sending the Message. (Can be a server or a person)<br>
43
-	 * cChannelClient is null if user is a server, or not on the channel.
44
-	 * 
45
-	 * @param tParser Reference to the parser object that made the callback.
46
-         * @param prefix The mode prefix of the message
47
-	 * @param cChannel Channel where the Message was sent to
48
-	 * @param cChannelClient ChannelClient who sent the Message (may be null if server)
49
-	 * @param sMessage Message contents
50
-	 * @param sHost Hostname of sender (or servername)
51
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callChannelModeMessage
52
-	 */
53
-	void onChannelModeMessage(@FakableSource Parser tParser,
54
-            @FakableSource ChannelInfo cChannel,
42
+
43
+    /**
44
+     * Called when a person sends a Message to a channel.
45
+     * sHost is the hostname of the person sending the Message. (Can be a server or a person)<br>
46
+     * cChannelClient is null if user is a server, or not on the channel.
47
+     *
48
+     * @param parser Reference to the parser object that made the callback.
49
+     * @param date The date/time at which the event occured
50
+     * @param prefix The mode prefix of the message
51
+     * @param channel Channel where the Message was sent to
52
+     * @param client ChannelClient who sent the Message (may be null if server)
53
+     * @param message Message contents
54
+     * @param host Hostname of sender (or servername)
55
+     * @see com.dmdirc.parser.irc.ProcessMessage#callChannelModeMessage
56
+     */
57
+    void onChannelModeMessage(@FakableSource Parser parser,
58
+            Date date, @FakableSource ChannelInfo channel,
55 59
             char prefix,
56
-            @FakableArgument ChannelClientInfo cChannelClient,
57
-            String sMessage,
58
-            @FakableSource String sHost);
60
+            @FakableArgument ChannelClientInfo client,
61
+            String message,
62
+            @FakableSource String host);
59 63
 }

+ 22
- 18
src/com/dmdirc/parser/interfaces/callbacks/ChannelModeNoticeListener.java Vedi File

@@ -29,6 +29,8 @@ import com.dmdirc.parser.interfaces.FakableArgument;
29 29
 import com.dmdirc.parser.interfaces.FakableSource;
30 30
 import com.dmdirc.parser.interfaces.SpecificCallback;
31 31
 
32
+import java.util.Date;
33
+
32 34
 /**
33 35
  * Called when a person sends a notice to a channel with a mode prefix.
34 36
  * (Examples @#Channel +#Channel)
@@ -37,23 +39,25 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
37 39
  */
38 40
 @SpecificCallback
39 41
 public interface ChannelModeNoticeListener extends CallbackInterface {
40
-	/**
41
-	 * Called when a person sends a notice to a channel.
42
-	 * sHost is the hostname of the person sending the notice. (Can be a server or a person)<br>
43
-	 * cChannelClient is null if user is a server, or not on the channel.
44
-	 * 
45
-	 * @param tParser Reference to the parser object that made the callback.
46
-         * @param prefix The mode prefix of the message
47
-	 * @param cChannel Channel where the notice was sent to
48
-	 * @param cChannelClient ChannelClient who sent the notice (may be null if server)
49
-	 * @param sMessage notice contents
50
-	 * @param sHost Hostname of sender (or servername)
51
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callChannelModeNotice
52
-	 */
53
-	void onChannelModeNotice(@FakableSource Parser tParser,
54
-            @FakableSource ChannelInfo cChannel,
42
+
43
+    /**
44
+     * Called when a person sends a notice to a channel.
45
+     * sHost is the hostname of the person sending the notice. (Can be a server or a person)<br>
46
+     * cChannelClient is null if user is a server, or not on the channel.
47
+     *
48
+     * @param parser Reference to the parser object that made the callback.
49
+     * @param date The date/time at which the event occured
50
+     * @param prefix The mode prefix of the message
51
+     * @param channel Channel where the notice was sent to
52
+     * @param client ChannelClient who sent the notice (may be null if server)
53
+     * @param message notice contents
54
+     * @param host Hostname of sender (or servername)
55
+     * @see com.dmdirc.parser.irc.ProcessMessage#callChannelModeNotice
56
+     */
57
+    void onChannelModeNotice(@FakableSource Parser parser,
58
+            Date date, @FakableSource ChannelInfo channel,
55 59
             char prefix,
56
-            @FakableArgument ChannelClientInfo cChannelClient,
57
-            String sMessage,
58
-            @FakableSource String sHost);
60
+            @FakableArgument ChannelClientInfo client,
61
+            String message,
62
+            @FakableSource String host);
59 63
 }

+ 12
- 8
src/com/dmdirc/parser/interfaces/callbacks/ChannelNamesListener.java Vedi File

@@ -25,18 +25,22 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.ChannelInfo;
26 26
 import com.dmdirc.parser.interfaces.Parser;
27 27
 import com.dmdirc.parser.interfaces.SpecificCallback;
28
+import java.util.Date;
28 29
 
29 30
 /**
30 31
  * Called when a names reply is parsed.
31 32
  */
32 33
 @SpecificCallback
33 34
 public interface ChannelNamesListener extends CallbackInterface {
34
-	/**
35
-	 * Called when a names reply is parsed.
36
-	 *
37
-	 * @param tParser Reference to the parser object that made the callback.
38
-	 * @param cChannel Channel which the names reply is for
39
-	 * @see com.dmdirc.parser.irc.ProcessNames#callChannelGotNames
40
-	 */
41
-	void onChannelGotNames(Parser tParser, ChannelInfo cChannel);
35
+
36
+    /**
37
+     * Called when a names reply is parsed.
38
+     *
39
+     * @param parser Reference to the parser object that made the callback.
40
+     * @param date The date/time at which the event occured
41
+     * @param channel Channel which the names reply is for
42
+     * @see com.dmdirc.parser.irc.ProcessNames#callChannelGotNames
43
+     */
44
+    void onChannelGotNames(Parser parser, Date date, ChannelInfo channel);
45
+
42 46
 }

+ 17
- 11
src/com/dmdirc/parser/interfaces/callbacks/ChannelNickChangeListener.java Vedi File

@@ -27,21 +27,27 @@ import com.dmdirc.parser.interfaces.ChannelInfo;
27 27
 import com.dmdirc.parser.interfaces.Parser;
28 28
 import com.dmdirc.parser.interfaces.SpecificCallback;
29 29
 
30
+import java.util.Date;
31
+
30 32
 /** 
31 33
  * Called when we or another user change nickname (Called once per channel the user is on).
32 34
  * This is called after the nickname change has been done internally
33 35
  */
34 36
 @SpecificCallback
35 37
 public interface ChannelNickChangeListener extends CallbackInterface {
36
-	/**
37
-	 * Called when we or another user change nickname (Called once per channel the user is on).
38
-	 * This is called after the nickname change has been done internally
39
-	 * 
40
-	 * @param tParser Reference to the parser object that made the callback.
41
-	 * @param cChannel One of the channels that the user is on
42
-	 * @param cChannelClient Client changing nickname
43
-	 * @param sOldNick Nickname before change
44
-	 * @see com.dmdirc.parser.irc.ProcessNick#callChannelNickChanged
45
-	 */
46
-	 void onChannelNickChanged(Parser tParser, ChannelInfo cChannel, ChannelClientInfo cChannelClient, String sOldNick);
38
+
39
+    /**
40
+     * Called when we or another user change nickname (Called once per channel the user is on).
41
+     * This is called after the nickname change has been done internally
42
+     *
43
+     * @param parser Reference to the parser object that made the callback.
44
+     * @param date The date/time at which the event occured
45
+     * @param channel One of the channels that the user is on
46
+     * @param client Client changing nickname
47
+     * @param oldNick Nickname before change
48
+     * @see com.dmdirc.parser.irc.ProcessNick#callChannelNickChanged
49
+     */
50
+     void onChannelNickChanged(Parser parser, Date date, ChannelInfo channel,
51
+             ChannelClientInfo client, String oldNick);
52
+
47 53
 }

+ 20
- 16
src/com/dmdirc/parser/interfaces/callbacks/ChannelNonUserModeChangeListener.java Vedi File

@@ -29,6 +29,8 @@ import com.dmdirc.parser.interfaces.FakableArgument;
29 29
 import com.dmdirc.parser.interfaces.FakableSource;
30 30
 import com.dmdirc.parser.interfaces.SpecificCallback;
31 31
 
32
+import java.util.Date;
33
+
32 34
 /** 
33 35
  * Called when the channel modes are changed or discovered.
34 36
  * cChannelClient is null if the modes were found from raw 324 (/MODE #Chan reply) or if a server set the mode.<br>
@@ -36,21 +38,23 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
36 38
  */
37 39
 @SpecificCallback
38 40
 public interface ChannelNonUserModeChangeListener extends CallbackInterface {
39
-	/**
40
-	 * Called when the channel modes are changed or discovered.
41
-	 * cChannelClient is null if the modes were found from raw 324 (/MODE #Chan reply) or if a server set the mode.<br>
42
-	 * If a Server set the mode, sHost is the servers name, else it is the full host of the user who set it
43
-	 * 
44
-	 * @param tParser Reference to the parser object that made the callback.
45
-	 * @param cChannel Channel where modes were changed
46
-	 * @param cChannelClient Client chaning the modes (null if server)
47
-	 * @param sHost Host doing the mode changing (User host or server name)
48
-	 * @param sModes String showing the exact mode change parsed. (Not including user modes)
49
-	 */
50
-	void onChannelNonUserModeChanged(@FakableSource Parser tParser,
51
-            @FakableSource ChannelInfo cChannel,
52
-            @FakableArgument ChannelClientInfo cChannelClient,
53
-            @FakableSource String sHost,
54
-            String sModes);
41
+
42
+    /**
43
+     * Called when the channel modes are changed or discovered.
44
+     * cChannelClient is null if the modes were found from raw 324 (/MODE #Chan reply) or if a server set the mode.<br>
45
+     * If a Server set the mode, sHost is the servers name, else it is the full host of the user who set it
46
+     *
47
+     * @param parser Reference to the parser object that made the callback.
48
+     * @param date The date/time at which the event occured
49
+     * @param channel Channel where modes were changed
50
+     * @param client Client chaning the modes (null if server)
51
+     * @param host Host doing the mode changing (User host or server name)
52
+     * @param modes String showing the exact mode change parsed. (Not including user modes)
53
+     */
54
+    void onChannelNonUserModeChanged(@FakableSource Parser parser,
55
+            Date date, @FakableSource ChannelInfo channel,
56
+            @FakableArgument ChannelClientInfo client,
57
+            @FakableSource String host,
58
+            String modes);
55 59
 }
56 60
 

+ 21
- 17
src/com/dmdirc/parser/interfaces/callbacks/ChannelNoticeListener.java Vedi File

@@ -29,6 +29,8 @@ import com.dmdirc.parser.interfaces.FakableArgument;
29 29
 import com.dmdirc.parser.interfaces.FakableSource;
30 30
 import com.dmdirc.parser.interfaces.SpecificCallback;
31 31
 
32
+import java.util.Date;
33
+
32 34
 /**
33 35
  * Called when a person sends a notice to a channel.
34 36
  * sHost is the hostname of the person sending the notice. (Can be a server or a person)<br>
@@ -36,21 +38,23 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
36 38
  */
37 39
 @SpecificCallback
38 40
 public interface ChannelNoticeListener extends CallbackInterface {
39
-	/**
40
-	 * Called when a person sends a notice to a channel.
41
-	 * sHost is the hostname of the person sending the notice. (Can be a server or a person)<br>
42
-	 * cChannelClient is null if user is a server, or not on the channel.
43
-	 * 
44
-	 * @param tParser Reference to the parser object that made the callback.
45
-	 * @param cChannel Channel where the notice was sent to
46
-	 * @param cChannelClient ChannelClient who sent the notice (may be null if server)
47
-	 * @param sMessage notice contents
48
-	 * @param sHost Hostname of sender (or servername)
49
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callChannelNotice
50
-	 */
51
-	void onChannelNotice(@FakableSource Parser tParser,
52
-            @FakableSource ChannelInfo cChannel,
53
-            @FakableArgument ChannelClientInfo cChannelClient,
54
-            String sMessage,
55
-            @FakableSource String sHost);
41
+
42
+    /**
43
+     * Called when a person sends a notice to a channel.
44
+     * sHost is the hostname of the person sending the notice. (Can be a server or a person)<br>
45
+     * cChannelClient is null if user is a server, or not on the channel.
46
+     *
47
+     * @param parser Reference to the parser object that made the callback.
48
+     * @param date The date/time at which the event occured
49
+     * @param channel Channel where the notice was sent to
50
+     * @param client ChannelClient who sent the notice (may be null if server)
51
+     * @param message notice contents
52
+     * @param host Hostname of sender (or servername)
53
+     * @see com.dmdirc.parser.irc.ProcessMessage#callChannelNotice
54
+     */
55
+    void onChannelNotice(@FakableSource Parser parser, Date date,
56
+            @FakableSource ChannelInfo channel,
57
+            @FakableArgument ChannelClientInfo client,
58
+            String message,
59
+            @FakableSource String host);
56 60
 }

+ 16
- 11
src/com/dmdirc/parser/interfaces/callbacks/ChannelOtherAwayStateListener.java Vedi File

@@ -27,21 +27,26 @@ import com.dmdirc.parser.interfaces.ChannelClientInfo;
27 27
 import com.dmdirc.parser.interfaces.ChannelInfo;
28 28
 import com.dmdirc.parser.interfaces.Parser;
29 29
 import com.dmdirc.parser.interfaces.SpecificCallback;
30
+import java.util.Date;
30 31
 
31 32
 /**
32 33
  * Called when we go away, or come back.
33 34
  */
34 35
 @SpecificCallback
35 36
 public interface ChannelOtherAwayStateListener extends CallbackInterface {
36
-	/**
37
-	 * Called when we go away, or come back.
38
-	 *
39
-	 * @param tParser Reference to the parser object that made the callback.
40
-	 * @param channel Channel this is for
41
-	 * @param channelClient Client this is for
42
-         * @param oldState Old Away State
43
-	 * @param state Current Away State
44
-	 * @see com.dmdirc.parser.irc.ProcessAway#callChannelAwayStateOther
45
-	 */
46
-	void onChannelAwayStateOther(Parser tParser, ChannelInfo channel, ChannelClientInfo channelClient, AwayState oldState, AwayState state);
37
+
38
+    /**
39
+     * Called when we go away, or come back.
40
+     *
41
+     * @param parser Reference to the parser object that made the callback.
42
+     * @param date The date/time at which the event occured
43
+     * @param channel Channel this is for
44
+     * @param client Client this is for
45
+     * @param oldState Old Away State
46
+     * @param state Current Away State
47
+     * @see com.dmdirc.parser.irc.ProcessAway#callChannelAwayStateOther
48
+     */
49
+    void onChannelAwayStateOther(Parser parser, Date date, ChannelInfo channel,
50
+            ChannelClientInfo client, AwayState oldState, AwayState state);
51
+
47 52
 }

+ 16
- 11
src/com/dmdirc/parser/interfaces/callbacks/ChannelPartListener.java Vedi File

@@ -26,6 +26,7 @@ import com.dmdirc.parser.interfaces.ChannelClientInfo;
26 26
 import com.dmdirc.parser.interfaces.ChannelInfo;
27 27
 import com.dmdirc.parser.interfaces.Parser;
28 28
 import com.dmdirc.parser.interfaces.SpecificCallback;
29
+import java.util.Date;
29 30
 
30 31
 /** 
31 32
  * Called When we, or another client parts a channel.
@@ -33,15 +34,19 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
33 34
  */
34 35
 @SpecificCallback
35 36
 public interface ChannelPartListener extends CallbackInterface {
36
-	/**
37
-	 * Called When we, or another client parts a channel.
38
-	 * This is called BEFORE client has been removed from the channel.
39
-	 * 
40
-	 * @param tParser Reference to the parser object that made the callback.
41
-	 * @param cChannel Channel that the user parted
42
-	 * @param cChannelClient Client that parted
43
-	 * @param sReason Reason given for parting (May be "")
44
-	 * @see com.dmdirc.parser.irc.ProcessPart#callChannelPart
45
-	 */
46
-	void onChannelPart(Parser tParser, ChannelInfo cChannel, ChannelClientInfo cChannelClient, String sReason);
37
+
38
+    /**
39
+     * Called When we, or another client parts a channel.
40
+     * This is called BEFORE client has been removed from the channel.
41
+     *
42
+     * @param parser Reference to the parser object that made the callback.
43
+     * @param date The date/time at which the event occured
44
+     * @param channel Channel that the user parted
45
+     * @param client Client that parted
46
+     * @param reason Reason given for parting (May be "")
47
+     * @see com.dmdirc.parser.irc.ProcessPart#callChannelPart
48
+     */
49
+    void onChannelPart(Parser parser, Date date, ChannelInfo channel,
50
+            ChannelClientInfo client, String reason);
51
+
47 52
 }

+ 17
- 11
src/com/dmdirc/parser/interfaces/callbacks/ChannelQuitListener.java Vedi File

@@ -27,21 +27,27 @@ import com.dmdirc.parser.interfaces.ChannelInfo;
27 27
 import com.dmdirc.parser.interfaces.Parser;
28 28
 import com.dmdirc.parser.interfaces.SpecificCallback;
29 29
 
30
+import java.util.Date;
31
+
30 32
 /** 
31 33
  * Called When we, or another client quits IRC (Called once per channel the user was on).
32 34
  * This is called BEFORE client has been removed from the channel.
33 35
  */
34 36
 @SpecificCallback
35 37
 public interface ChannelQuitListener extends CallbackInterface {
36
-	/**
37
-	 * Called When we, or another client quits IRC (Called once per channel the user was on).
38
-	 * This is called BEFORE client has been removed from the channel.
39
-	 * 
40
-	 * @param tParser Reference to the parser object that made the callback.
41
-	 * @param cChannel Channel that user was on
42
-	 * @param cChannelClient User thats quitting
43
-	 * @param sReason Quit reason
44
-	 * @see com.dmdirc.parser.irc.ProcessQuit#callChannelQuit
45
-	 */
46
-	void onChannelQuit(Parser tParser, ChannelInfo cChannel, ChannelClientInfo cChannelClient, String sReason);
38
+
39
+    /**
40
+     * Called When we, or another client quits IRC (Called once per channel the user was on).
41
+     * This is called BEFORE client has been removed from the channel.
42
+     *
43
+     * @param parser Reference to the parser object that made the callback.
44
+     * @param date The date/time at which the event occured
45
+     * @param channel Channel that user was on
46
+     * @param client User thats quitting
47
+     * @param reason Quit reason
48
+     * @see com.dmdirc.parser.irc.ProcessQuit#callChannelQuit
49
+     */
50
+    void onChannelQuit(Parser parser, Date date, ChannelInfo channel,
51
+            ChannelClientInfo client, String reason);
52
+
47 53
 }

+ 14
- 9
src/com/dmdirc/parser/interfaces/callbacks/ChannelSelfJoinListener.java Vedi File

@@ -25,18 +25,23 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.ChannelInfo;
26 26
 import com.dmdirc.parser.interfaces.Parser;
27 27
 
28
+import java.util.Date;
29
+
28 30
 /** 
29 31
  * Called When we join a channel.
30 32
  * We are NOT added as a channelclient until after the names reply
31 33
  */
32 34
 public interface ChannelSelfJoinListener extends CallbackInterface {
33
-	/**
34
-	 * Called When we join a channel.
35
-	 * We are NOT added as a channelclient until after the names reply
36
-	 * 
37
-	 * @param tParser Reference to the parser object that made the callback.
38
-	 * @param cChannel Channel Object
39
-	 * @see com.dmdirc.parser.irc.ProcessJoin#callChannelSelfJoin
40
-	 */
41
-	void onChannelSelfJoin(Parser tParser, ChannelInfo cChannel);
35
+
36
+    /**
37
+     * Called When we join a channel.
38
+     * We are NOT added as a channelclient until after the names reply
39
+     *
40
+     * @param parser Reference to the parser object that made the callback.
41
+     * @param date The date/time at which the event occured
42
+     * @param channel Channel Object
43
+     * @see com.dmdirc.parser.irc.ProcessJoin#callChannelSelfJoin
44
+     */
45
+    void onChannelSelfJoin(Parser parser, Date date, ChannelInfo channel);
46
+
42 47
 }

+ 20
- 16
src/com/dmdirc/parser/interfaces/callbacks/ChannelSingleModeChangeListener.java Vedi File

@@ -28,6 +28,7 @@ import com.dmdirc.parser.interfaces.Parser;
28 28
 import com.dmdirc.parser.interfaces.FakableArgument;
29 29
 import com.dmdirc.parser.interfaces.FakableSource;
30 30
 import com.dmdirc.parser.interfaces.SpecificCallback;
31
+import java.util.Date;
31 32
 
32 33
 /** 
33 34
  * Called when the channel modes are changed or discovered.
@@ -36,21 +37,24 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
36 37
  */
37 38
 @SpecificCallback
38 39
 public interface ChannelSingleModeChangeListener extends CallbackInterface {
39
-	/**
40
-	 * Called when the channel modes are changed or discovered.
41
-	 * cChannelClient is null if the modes were found from raw 324 (/MODE #Chan reply) or if a server set the mode.<br>
42
-	 * If a Server set the mode, sHost is the servers name, else it is the full host of the user who set it
43
-	 * 
44
-	 * @param tParser Reference to the parser object that made the callback.
45
-	 * @param cChannel Channel where modes were changed
46
-	 * @param cChannelClient Client chaning the modes (null if server)
47
-	 * @param sHost Host doing the mode changing (User host or server name)
48
-	 * @param sModes String parsed (ie "+m" or "+k moo"
49
-	 */
50
-	void onChannelSingleModeChanged(@FakableSource Parser tParser,
51
-            @FakableSource ChannelInfo cChannel,
52
-            @FakableArgument ChannelClientInfo cChannelClient,
53
-            @FakableSource String sHost,
54
-            String sModes);
40
+
41
+    /**
42
+     * Called when the channel modes are changed or discovered.
43
+     * cChannelClient is null if the modes were found from raw 324 (/MODE #Chan reply) or if a server set the mode.<br>
44
+     * If a Server set the mode, sHost is the servers name, else it is the full host of the user who set it
45
+     *
46
+     * @param parser Reference to the parser object that made the callback.
47
+     * @param date The date/time at which the event occured
48
+     * @param channel Channel where modes were changed
49
+     * @param client Client chaning the modes (null if server)
50
+     * @param host Host doing the mode changing (User host or server name)
51
+     * @param modes String parsed (ie "+m" or "+k moo"
52
+     */
53
+    void onChannelSingleModeChanged(@FakableSource Parser parser,
54
+            Date date,
55
+            @FakableSource ChannelInfo channel,
56
+            @FakableArgument ChannelClientInfo client,
57
+            @FakableSource String host,
58
+            String modes);
55 59
 }
56 60
 

+ 14
- 10
src/com/dmdirc/parser/interfaces/callbacks/ChannelTopicListener.java Vedi File

@@ -25,6 +25,7 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.ChannelInfo;
26 26
 import com.dmdirc.parser.interfaces.Parser;
27 27
 import com.dmdirc.parser.interfaces.SpecificCallback;
28
+import java.util.Date;
28 29
 
29 30
 /** 
30 31
  * Called when the topic is changed or discovered for the first time.
@@ -32,14 +33,17 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
32 33
  */
33 34
 @SpecificCallback
34 35
 public interface ChannelTopicListener extends CallbackInterface {
35
-	/**
36
-	 * Called when the topic is changed or discovered for the first time.
37
-	 * bIsNewTopic is true if someone sets the topic, false if the topic is discovered on join
38
-	 * 
39
-	 * @param tParser Reference to the parser object that made the callback.
40
-	 * @param cChannel Channel that topic was set on
41
-	 * @param bIsJoinTopic True when getting topic on join, false if set by user/server
42
-	 * @see com.dmdirc.parser.irc.ProcessTopic#callChannelTopic
43
-	 */
44
-	void onChannelTopic(Parser tParser, ChannelInfo cChannel, boolean bIsJoinTopic);
36
+
37
+    /**
38
+     * Called when the topic is changed or discovered for the first time.
39
+     * bIsNewTopic is true if someone sets the topic, false if the topic is discovered on join
40
+     *
41
+     * @param parser Reference to the parser object that made the callback.
42
+     * @param date The date/time at which the event occured
43
+     * @param channel Channel that topic was set on
44
+     * @param isJoinTopic True when getting topic on join, false if set by user/server
45
+     * @see com.dmdirc.parser.irc.ProcessTopic#callChannelTopic
46
+     */
47
+    void onChannelTopic(Parser parser, Date date, ChannelInfo channel, boolean isJoinTopic);
48
+
45 49
 }

+ 23
- 19
src/com/dmdirc/parser/interfaces/callbacks/ChannelUserModeChangeListener.java Vedi File

@@ -28,29 +28,33 @@ import com.dmdirc.parser.interfaces.Parser;
28 28
 import com.dmdirc.parser.interfaces.FakableArgument;
29 29
 import com.dmdirc.parser.interfaces.FakableSource;
30 30
 import com.dmdirc.parser.interfaces.SpecificCallback;
31
+import java.util.Date;
31 32
 
32 33
 /** 
33 34
  * Called when a users channel mode is changed.
34 35
  */
35 36
 @SpecificCallback
36 37
 public interface ChannelUserModeChangeListener extends CallbackInterface {
37
-	/**
38
-	 * Called when a users channel mode is changed.
39
-	 * cChannelClient is null if the modes were found from raw 324 (/MODE #Chan reply) or if a server set the mode.<br>
40
-	 * If a Server set the mode, sHost is the servers name, else it is the full host of the user who set it
41
-	 * 
42
-	 * @param tParser Reference to the parser object that made the callback.
43
-	 * @param cChannel Channel where modes were changed
44
-	 * @param cChangedClient Client being changed
45
-	 * @param cSetByClient Client chaning the modes (null if server)
46
-	 * @param sHost Host doing the mode changing (User host or server name)
47
-	 * @param sMode String representing mode change (ie +o)
48
-	 * @see com.dmdirc.parser.irc.ProcessMode#callChannelUserModeChanged
49
-	 */
50
-	void onChannelUserModeChanged(@FakableSource Parser tParser,
51
-            @FakableSource ChannelInfo cChannel,
52
-            ChannelClientInfo cChangedClient,
53
-            @FakableArgument ChannelClientInfo cSetByClient,
54
-            @FakableSource String sHost,
55
-            String sMode);
38
+
39
+    /**
40
+     * Called when a users channel mode is changed.
41
+     * cChannelClient is null if the modes were found from raw 324 (/MODE #Chan reply) or if a server set the mode.<br>
42
+     * If a Server set the mode, sHost is the servers name, else it is the full host of the user who set it
43
+     *
44
+     * @param parser Reference to the parser object that made the callback.
45
+     * @param date The date/time at which the event occured
46
+     * @param channel Channel where modes were changed
47
+     * @param targetClient Client being changed
48
+     * @param client Client chaning the modes (null if server)
49
+     * @param host Host doing the mode changing (User host or server name)
50
+     * @param mode String representing mode change (ie +o)
51
+     * @see com.dmdirc.parser.irc.ProcessMode#callChannelUserModeChanged
52
+     */
53
+    void onChannelUserModeChanged(@FakableSource Parser parser,
54
+            Date date,
55
+            @FakableSource ChannelInfo channel,
56
+            ChannelClientInfo targetClient,
57
+            @FakableArgument ChannelClientInfo client,
58
+            @FakableSource String host,
59
+            String mode);
56 60
 }

+ 13
- 8
src/com/dmdirc/parser/interfaces/callbacks/ConnectErrorListener.java Vedi File

@@ -25,16 +25,21 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 import com.dmdirc.parser.common.ParserError;
27 27
 
28
+import java.util.Date;
29
+
28 30
 /**
29 31
  * Called to give Error Information related to a connection attempt.
30 32
  */
31 33
 public interface ConnectErrorListener extends CallbackInterface {
32
-	/**
33
-	 * Called to give Error Information related to a connection attempt.
34
-	 * 
35
-	 * @param tParser Reference to the parser object that made the callback.
36
-	 * @param errorInfo ParserError object representing the error.
37
-	 * @see com.dmdirc.parser.irc.IRCParser#callConnectError
38
-	 */
39
-	void onConnectError(Parser tParser, ParserError errorInfo);
34
+
35
+    /**
36
+     * Called to give Error Information related to a connection attempt.
37
+     *
38
+     * @param parser Reference to the parser object that made the callback.
39
+     * @param date The date/time at which the event occured
40
+     * @param errorInfo ParserError object representing the error.
41
+     * @see com.dmdirc.parser.irc.IRCParser#callConnectError
42
+     */
43
+    void onConnectError(Parser parser, Date date, ParserError errorInfo);
44
+
40 45
 }

+ 13
- 8
src/com/dmdirc/parser/interfaces/callbacks/DataInListener.java Vedi File

@@ -24,16 +24,21 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Interface Used on every incomming line BEFORE parsing.
29 31
  */
30 32
 public interface DataInListener extends CallbackInterface {
31
-	/**
32
-	 * Called on every incomming line BEFORE parsing.
33
-	 * 
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @param sData Incomming Line.
36
-	 * @see com.dmdirc.parser.irc.IRCParser#callDataIn
37
-	 */
38
-	void onDataIn(Parser tParser, String sData);
33
+
34
+    /**
35
+     * Called on every incomming line BEFORE parsing.
36
+     *
37
+     * @param parser Reference to the parser object that made the callback.
38
+     * @param date The date/time at which the event occured
39
+     * @param data Incomming Line.
40
+     * @see com.dmdirc.parser.irc.IRCParser#callDataIn
41
+     */
42
+    void onDataIn(Parser parser, Date date, String data);
43
+
39 44
 }

+ 14
- 9
src/com/dmdirc/parser/interfaces/callbacks/DataOutListener.java Vedi File

@@ -24,17 +24,22 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Called on every incomming line BEFORE being sent.
29 31
  */
30 32
 public interface DataOutListener extends CallbackInterface {
31
-	/**
32
-	 * Called on every incomming line BEFORE being sent.
33
-	 * 
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @param sData Outgoing Data
36
-	 * @param bFromParser True if parser sent the data, false if sent using .sendLine
37
-	 * @see com.dmdirc.parser.irc.IRCParser#callDataOut
38
-	 */
39
-	void onDataOut(Parser tParser, String sData, boolean bFromParser);
33
+
34
+    /**
35
+     * Called on every incomming line BEFORE being sent.
36
+     *
37
+     * @param parser Reference to the parser object that made the callback.
38
+     * @param date The date/time at which the event occured
39
+     * @param data Outgoing Data
40
+     * @param fromParser True if parser sent the data, false if sent using .sendLine
41
+     * @see com.dmdirc.parser.irc.IRCParser#callDataOut
42
+     */
43
+    void onDataOut(Parser parser, Date date, String data, boolean fromParser);
44
+
40 45
 }

+ 14
- 9
src/com/dmdirc/parser/interfaces/callbacks/DebugInfoListener.java Vedi File

@@ -24,17 +24,22 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Interface Used to give Debug Information.
29 31
  */
30 32
 public interface DebugInfoListener extends CallbackInterface {
31
-	/**
32
-	 * This callback is used to provide occasional debug information from the parser.
33
-	 *
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @param nLevel Debugging Level (ndInfo, ndSocket etc)
36
-	 * @param sData Debugging Information
37
-	 * @see com.dmdirc.parser.irc.IRCParser#callDebugInfo
38
-	 */
39
-	void onDebugInfo(Parser tParser, int nLevel, String sData);
33
+
34
+    /**
35
+     * This callback is used to provide occasional debug information from the parser.
36
+     *
37
+     * @param parser Reference to the parser object that made the callback.
38
+     * @param date The date/time at which the event occured
39
+     * @param level Debugging Level (ndInfo, ndSocket etc)
40
+     * @param data Debugging Information
41
+     * @see com.dmdirc.parser.irc.IRCParser#callDebugInfo
42
+     */
43
+    void onDebugInfo(Parser parser, Date date, int level, String data);
44
+
40 45
 }

+ 13
- 8
src/com/dmdirc/parser/interfaces/callbacks/ErrorInfoListener.java Vedi File

@@ -25,16 +25,21 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 import com.dmdirc.parser.common.ParserError;
27 27
 
28
+import java.util.Date;
29
+
28 30
 /**
29 31
  * Called to give Error Information.
30 32
  */
31 33
 public interface ErrorInfoListener extends CallbackInterface {
32
-	/**
33
-	 * Called to give Error Information.
34
-	 * 
35
-	 * @param tParser Reference to the parser object that made the callback.
36
-	 * @param errorInfo ParserError object representing the error.
37
-	 * @see com.dmdirc.parser.irc.IRCParser#callErrorInfo
38
-	 */
39
-	void onErrorInfo(Parser tParser, ParserError errorInfo);
34
+
35
+    /**
36
+     * Called to give Error Information.
37
+     *
38
+     * @param parser Reference to the parser object that made the callback.
39
+     * @param date The date/time at which the event occured
40
+     * @param errorInfo ParserError object representing the error.
41
+     * @see com.dmdirc.parser.irc.IRCParser#callErrorInfo
42
+     */
43
+    void onErrorInfo(Parser parser, Date date, ParserError errorInfo);
44
+    
40 45
 }

+ 14
- 9
src/com/dmdirc/parser/interfaces/callbacks/InviteListener.java Vedi File

@@ -24,17 +24,22 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Called when we are invited to a channel.
29 31
  */
30 32
 public interface InviteListener extends CallbackInterface {
31
-	/**
32
-	 * Called when we are invited to a channel.
33
-	 * 
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @param userHost Hostname of user who invited us
36
-	 * @param channel Channel we were invited to
37
-	 * @see com.dmdirc.parser.irc.ProcessInvite#callInvite
38
-	 */
39
-	void onInvite(Parser tParser, String userHost, String channel);
33
+
34
+    /**
35
+     * Called when we are invited to a channel.
36
+     *
37
+     * @param parser Reference to the parser object that made the callback.
38
+     * @param date The date/time at which the event occured
39
+     * @param userHost Hostname of user who invited us
40
+     * @param channel Channel we were invited to
41
+     * @see com.dmdirc.parser.irc.ProcessInvite#callInvite
42
+     */
43
+    void onInvite(Parser parser, Date date, String userHost, String channel);
44
+
40 45
 }

+ 14
- 9
src/com/dmdirc/parser/interfaces/callbacks/MotdEndListener.java Vedi File

@@ -24,17 +24,22 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Called when "End of MOTD" or "No MOTD" is received.
29 31
  */
30 32
 public interface MotdEndListener extends CallbackInterface {
31
-	/**
32
-	 * Called when "End of MOTD" or "No MOTD".
33
-	 *
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @param noMOTD Set to true if this was a "No MOTD Found" message rather than an "End of MOTD"
36
-	 * @param sData The contents of the line (incase of language changes or so)
37
-	 * @see com.dmdirc.parser.irc.ProcessMOTD#callMOTDEnd
38
-	 */
39
-	void onMOTDEnd(Parser tParser, boolean noMOTD, String sData);
33
+
34
+    /**
35
+     * Called when "End of MOTD" or "No MOTD".
36
+     *
37
+     * @param parser Reference to the parser object that made the callback.
38
+     * @param date The date/time at which the event occured
39
+     * @param noMOTD Set to true if this was a "No MOTD Found" message rather than an "End of MOTD"
40
+     * @param data The contents of the line (incase of language changes or so)
41
+     * @see com.dmdirc.parser.irc.ProcessMOTD#callMOTDEnd
42
+     */
43
+    void onMOTDEnd(Parser parser, Date date, boolean noMOTD, String data);
44
+
40 45
 }

+ 13
- 8
src/com/dmdirc/parser/interfaces/callbacks/MotdLineListener.java Vedi File

@@ -24,16 +24,21 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Interface Used to give MOTD Information.
29 31
  */
30 32
 public interface MotdLineListener extends CallbackInterface {
31
-	/**
32
-	 * Called on every incomming line from the MOTD.
33
-	 * 
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @param sData Incomming Line.
36
-	 * @see com.dmdirc.parser.irc.ProcessMOTD#callMOTDLine
37
-	 */
38
-	void onMOTDLine(Parser tParser, String sData);
33
+
34
+    /**
35
+     * Called on every incomming line from the MOTD.
36
+     *
37
+     * @param parser Reference to the parser object that made the callback.
38
+     * @param date The date/time at which the event occured
39
+     * @param data Incomming Line.
40
+     * @see com.dmdirc.parser.irc.ProcessMOTD#callMOTDLine
41
+     */
42
+    void onMOTDLine(Parser parser, Date date, String data);
43
+
39 44
 }

+ 13
- 8
src/com/dmdirc/parser/interfaces/callbacks/MotdStartListener.java Vedi File

@@ -24,16 +24,21 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Interface Used when the MOTD Starts.
29 31
  */
30 32
 public interface MotdStartListener extends CallbackInterface {
31
-	/**
32
-	 * Called on MOTD Start.
33
-	 * 
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @param sData Incomming Line.
36
-	 * @see com.dmdirc.parser.irc.ProcessMOTD#callMOTDStart
37
-	 */
38
-	void onMOTDStart(Parser tParser, String sData);
33
+
34
+    /**
35
+     * Called on MOTD Start.
36
+     *
37
+     * @param parser Reference to the parser object that made the callback.
38
+     * @param date The date/time at which the event occured
39
+     * @param data Incomming Line.
40
+     * @see com.dmdirc.parser.irc.ProcessMOTD#callMOTDStart
41
+     */
42
+    void onMOTDStart(Parser parser, Date date, String data);
43
+
39 44
 }

+ 17
- 11
src/com/dmdirc/parser/interfaces/callbacks/NetworkDetectedListener.java Vedi File

@@ -24,19 +24,25 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Interface Used when the Network=blah 005 token is recieved.
29 31
  */
30 32
 public interface NetworkDetectedListener extends CallbackInterface {
31
-	/**
32
-	 * Called when the Network=blah 005 token is recieved.
33
-	 * if NETWORK= is not sent in 005, this will not be called.
34
-	 * 
35
-	 * @param tParser Reference to the parser object that made the callback.
36
-	 * @param networkName The name of the network.
37
-	 * @param ircdVersion The version of the ircd.
38
-	 * @param ircdType The Guessed type of the ircd based on the name.
39
-	 * @see com.dmdirc.parser.irc.Process004005#callGotNetwork
40
-	 */
41
-	void onGotNetwork(Parser tParser, String networkName, String ircdVersion, String ircdType);
33
+
34
+    /**
35
+     * Called when the Network=blah 005 token is recieved.
36
+     * if NETWORK= is not sent in 005, this will not be called.
37
+     *
38
+     * @param parser Reference to the parser object that made the callback.
39
+     * @param date The date/time at which the event occured
40
+     * @param networkName The name of the network.
41
+     * @param ircdVersion The version of the ircd.
42
+     * @param ircdType The Guessed type of the ircd based on the name.
43
+     * @see com.dmdirc.parser.irc.Process004005#callGotNetwork
44
+     */
45
+    void onGotNetwork(Parser parser, Date date, String networkName,
46
+            String ircdVersion, String ircdType);
47
+
42 48
 }

+ 15
- 10
src/com/dmdirc/parser/interfaces/callbacks/NickChangeListener.java Vedi File

@@ -25,19 +25,24 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.ClientInfo;
26 26
 import com.dmdirc.parser.interfaces.Parser;
27 27
 
28
+import java.util.Date;
29
+
28 30
 /**
29 31
  * Called when we or another user change nickname.
30 32
  * This is called after the nickname change has been done internally
31 33
  */
32 34
 public interface NickChangeListener extends CallbackInterface {
33
-	/**
34
-	 * Called when we or another user change nickname.
35
-	 * This is called after the nickname change has been done internally
36
-	 * 
37
-	 * @param tParser Reference to the parser object that made the callback.
38
-	 * @param cClient Client changing nickname
39
-	 * @param sOldNick Nickname before change
40
-	 * @see com.dmdirc.parser.irc.ProcessNick#callNickChanged
41
-	 */
42
-	void onNickChanged(Parser tParser, ClientInfo cClient, String sOldNick);
35
+
36
+    /**
37
+     * Called when we or another user change nickname.
38
+     * This is called after the nickname change has been done internally
39
+     *
40
+     * @param parser Reference to the parser object that made the callback.
41
+     * @param date The date/time at which the event occured
42
+     * @param client Client changing nickname
43
+     * @param oldNick Nickname before change
44
+     * @see com.dmdirc.parser.irc.ProcessNick#callNickChanged
45
+     */
46
+    void onNickChanged(Parser parser, Date date, ClientInfo client, String oldNick);
47
+
43 48
 }

+ 13
- 8
src/com/dmdirc/parser/interfaces/callbacks/NickInUseListener.java Vedi File

@@ -24,16 +24,21 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Called when requested nickname is in use.
29 31
  */
30 32
 public interface NickInUseListener extends CallbackInterface {
31
-	/**
32
-	 * Called when requested nickname is in use.
33
-	 *
34
-	 * @param nickname Nickname that was wanted.
35
-	 * @param tParser Reference to the parser object that made the callback.
36
-	 * @see com.dmdirc.parser.irc.ProcessNickInUse#callNickInUse
37
-	 */
38
-	void onNickInUse(Parser tParser, String nickname);
33
+
34
+    /**
35
+     * Called when requested nickname is in use.
36
+     *
37
+     * @param nickname Nickname that was wanted.
38
+     * @param date The date/time at which the event occured
39
+     * @param parser Reference to the parser object that made the callback.
40
+     * @see com.dmdirc.parser.irc.ProcessNickInUse#callNickInUse
41
+     */
42
+    void onNickInUse(Parser parser, Date date, String nickname);
43
+
39 44
 }

+ 14
- 9
src/com/dmdirc/parser/interfaces/callbacks/NumericListener.java Vedi File

@@ -24,17 +24,22 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Interface Used to give numeric Information.
29 31
  */
30 32
 public interface NumericListener extends CallbackInterface {
31
-	/**
32
-	 * Called on every incomming line with a numerical type.
33
-	 * 
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @param numeric What numeric is this for
36
-	 * @param token IRC Tokenised line
37
-	 * @see com.dmdirc.parser.irc.ProcessingManager#callNumeric
38
-	 */
39
-	void onNumeric(Parser tParser, int numeric, String[] token);
33
+
34
+    /**
35
+     * Called on every incomming line with a numerical type.
36
+     *
37
+     * @param parser Reference to the parser object that made the callback.
38
+     * @param date The date/time at which the event occured
39
+     * @param numeric What numeric is this for
40
+     * @param token IRC Tokenised line
41
+     * @see com.dmdirc.parser.irc.ProcessingManager#callNumeric
42
+     */
43
+    void onNumeric(Parser parser, Date date, int numeric, String[] token);
44
+
40 45
 }

+ 16
- 10
src/com/dmdirc/parser/interfaces/callbacks/OtherAwayStateListener.java Vedi File

@@ -27,19 +27,25 @@ import com.dmdirc.parser.interfaces.ClientInfo;
27 27
 import com.dmdirc.parser.interfaces.Parser;
28 28
 import com.dmdirc.parser.interfaces.SpecificCallback;
29 29
 
30
+import java.util.Date;
31
+
30 32
 /**
31 33
  * Called when we go away, or come back.
32 34
  */
33 35
 @SpecificCallback
34 36
 public interface OtherAwayStateListener extends CallbackInterface {
35
-	/**
36
-	 * Called when we go away, or come back.
37
-	 *
38
-	 * @param tParser Reference to the parser object that made the callback.
39
-	 * @param client Client this is for
40
-         * @param oldState Old Away State
41
-	 * @param state Current Away State
42
-	 * @see com.dmdirc.parser.irc.ProcessAway#callAwayStateOther
43
-	 */
44
-	void onAwayStateOther(Parser tParser, ClientInfo client, AwayState oldState, AwayState state);
37
+
38
+    /**
39
+     * Called when we go away, or come back.
40
+     *
41
+     * @param parser Reference to the parser object that made the callback.
42
+     * @param date The date/time at which the event occured
43
+     * @param client Client this is for
44
+     * @param oldState Old Away State
45
+     * @param state Current Away State
46
+     * @see com.dmdirc.parser.irc.ProcessAway#callAwayStateOther
47
+     */
48
+    void onAwayStateOther(Parser parser, Date date, ClientInfo client,
49
+            AwayState oldState, AwayState state);
50
+
45 51
 }

+ 12
- 7
src/com/dmdirc/parser/interfaces/callbacks/PasswordRequiredListener.java Vedi File

@@ -24,15 +24,20 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Interface Used when a raw 464 is recieved.
29 31
  */
30 32
 public interface PasswordRequiredListener extends CallbackInterface {
31
-	/**
32
-	 * Called when a raw 464 is recieved.
33
-	 *
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @see com.dmdirc.parser.irc.Process004005#callPasswordRequired
36
-	 */
37
-	void onPasswordRequired(Parser tParser);
33
+
34
+    /**
35
+     * Called when a raw 464 is recieved.
36
+     *
37
+     * @param parser Reference to the parser object that made the callback.
38
+     * @param date The date/time at which the event occured
39
+     * @see com.dmdirc.parser.irc.Process004005#callPasswordRequired
40
+     */
41
+    void onPasswordRequired(Parser parser, Date date);
42
+
38 43
 }

+ 12
- 7
src/com/dmdirc/parser/interfaces/callbacks/PingFailureListener.java Vedi File

@@ -24,15 +24,20 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Called when a Ping Failed.
29 31
  */
30 32
 public interface PingFailureListener extends CallbackInterface {
31
-	/**
32
-	 * Called when a ping failed.
33
-	 * 
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @see IRCParser#callPingFailed
36
-	 */
37
-	void onPingFailed(Parser tParser);
33
+
34
+    /**
35
+     * Called when a ping failed.
36
+     *
37
+     * @param parser Reference to the parser object that made the callback.
38
+     * @param date The date/time at which the event occured
39
+     * @see IRCParser#callPingFailed
40
+     */
41
+    void onPingFailed(Parser parser, Date date);
42
+
38 43
 }

+ 11
- 7
src/com/dmdirc/parser/interfaces/callbacks/PingSentListener.java Vedi File

@@ -23,16 +23,20 @@
23 23
 package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26
+import java.util.Date;
26 27
 
27 28
 /**
28 29
  * Called when a Ping was Sent.
29 30
  */
30 31
 public interface PingSentListener extends CallbackInterface {
31
-	/**
32
-	 * Called when a ping was Sent.
33
-	 * 
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @see IRCParser#callPingSent
36
-	 */
37
-	void onPingSent(Parser tParser);
32
+
33
+    /**
34
+     * Called when a ping was Sent.
35
+     *
36
+     * @param parser Reference to the parser object that made the callback.
37
+     * @param date The date/time at which the event occured
38
+     * @see IRCParser#callPingSent
39
+     */
40
+    void onPingSent(Parser parser, Date date);
41
+
38 42
 }

+ 11
- 7
src/com/dmdirc/parser/interfaces/callbacks/PingSuccessListener.java Vedi File

@@ -23,16 +23,20 @@
23 23
 package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26
+import java.util.Date;
26 27
 
27 28
 /**
28 29
  * Called when a Ping was a Success.
29 30
  */
30 31
 public interface PingSuccessListener extends CallbackInterface {
31
-	/**
32
-	 * Called when a ping was a Success.
33
-	 * 
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @see IRCParser#callPingSuccess
36
-	 */
37
-	void onPingSuccess(Parser tParser);
32
+
33
+    /**
34
+     * Called when a ping was a Success.
35
+     *
36
+     * @param parser Reference to the parser object that made the callback.
37
+     * @param date The date/time at which the event occured
38
+     * @see IRCParser#callPingSuccess
39
+     */
40
+    void onPingSuccess(Parser parser, Date date);
41
+
38 42
 }

+ 11
- 7
src/com/dmdirc/parser/interfaces/callbacks/Post005Listener.java Vedi File

@@ -23,16 +23,20 @@
23 23
 package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26
+import java.util.Date;
26 27
 
27 28
 /**
28 29
  * Called after 001.
29 30
  */
30 31
 public interface Post005Listener extends CallbackInterface {
31
-	/**
32
-	 * Called after 005.
33
-	 * 
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @see com.dmdirc.parser.irc.Process001#callPost005
36
-	 */
37
-	void onPost005(Parser tParser);
32
+
33
+    /**
34
+     * Called after 005.
35
+     *
36
+     * @param parser Reference to the parser object that made the callback.
37
+     * @param date The date/time at which the event occured
38
+     * @see com.dmdirc.parser.irc.Process001#callPost005
39
+     */
40
+    void onPost005(Parser parser, Date date);
41
+
38 42
 }

+ 15
- 11
src/com/dmdirc/parser/interfaces/callbacks/PrivateActionListener.java Vedi File

@@ -24,6 +24,7 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 import com.dmdirc.parser.interfaces.SpecificCallback;
27
+import java.util.Date;
27 28
 
28 29
 /**
29 30
  * Called when a person does an action to you (PM).
@@ -32,15 +33,18 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
32 33
  */
33 34
 @SpecificCallback
34 35
 public interface PrivateActionListener extends CallbackInterface {
35
-	/**
36
-	 * Called when a person does an action to you (PM).
37
-	 * sHost is the hostname of the person sending the action. (Can be a server or a person)<br>
38
-	 * cClient is null if user is a server, or not on any common channel.
39
-	 * 
40
-	 * @param tParser Reference to the parser object that made the callback.
41
-	 * @param sMessage action contents
42
-	 * @param sHost Hostname of sender (or servername)
43
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callPrivateAction
44
-	 */
45
-	void onPrivateAction(Parser tParser, String sMessage, String sHost);
36
+
37
+    /**
38
+     * Called when a person does an action to you (PM).
39
+     * sHost is the hostname of the person sending the action. (Can be a server or a person)<br>
40
+     * cClient is null if user is a server, or not on any common channel.
41
+     *
42
+     * @param parser Reference to the parser object that made the callback.
43
+     * @param date The date/time at which the event occured
44
+     * @param message action contents
45
+     * @param host Hostname of sender (or servername)
46
+     * @see com.dmdirc.parser.irc.ProcessMessage#callPrivateAction
47
+     */
48
+    void onPrivateAction(Parser parser, Date date, String message, String host);
49
+
46 50
 }

+ 17
- 12
src/com/dmdirc/parser/interfaces/callbacks/PrivateCtcpListener.java Vedi File

@@ -25,6 +25,8 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 import com.dmdirc.parser.interfaces.SpecificCallback;
27 27
 
28
+import java.util.Date;
29
+
28 30
 /**
29 31
  * Called when a person sends a CTCP to you directly.
30 32
  * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
@@ -32,16 +34,19 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
32 34
  */
33 35
 @SpecificCallback
34 36
 public interface PrivateCtcpListener extends CallbackInterface {
35
-	/**
36
-	 * Called when a person sends a CTCP to you directly.
37
-	 * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
38
-	 * cClient is null if user is a server, or not on any common channels.
39
-	 * 
40
-	 * @param tParser Reference to the parser object that made the callback.
41
-	 * @param sType Type of CTCP (VERSION, TIME etc)
42
-	 * @param sMessage Additional contents
43
-	 * @param sHost Hostname of sender (or servername)
44
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callPrivateCTCP
45
-	 */
46
-	void onPrivateCTCP(Parser tParser, String sType, String sMessage, String sHost);
37
+
38
+    /**
39
+     * Called when a person sends a CTCP to you directly.
40
+     * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
41
+     * cClient is null if user is a server, or not on any common channels.
42
+     *
43
+     * @param parser Reference to the parser object that made the callback.
44
+     * @param date The date/time at which the event occured
45
+     * @param type Type of CTCP (VERSION, TIME etc)
46
+     * @param message Additional contents
47
+     * @param host Hostname of sender (or servername)
48
+     * @see com.dmdirc.parser.irc.ProcessMessage#callPrivateCTCP
49
+     */
50
+    void onPrivateCTCP(Parser parser, Date date, String type, String message, String host);
51
+
47 52
 }

+ 16
- 12
src/com/dmdirc/parser/interfaces/callbacks/PrivateCtcpReplyListener.java Vedi File

@@ -25,6 +25,8 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 import com.dmdirc.parser.interfaces.SpecificCallback;
27 27
 
28
+import java.util.Date;
29
+
28 30
 /**
29 31
  * Called when a person sends a CTCPRReply to you directly.
30 32
  * sHost is the hostname of the person sending the CTCPRReply. (Can be a server or a person)<br>
@@ -32,16 +34,18 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
32 34
  */
33 35
 @SpecificCallback
34 36
 public interface PrivateCtcpReplyListener extends CallbackInterface {
35
-	/**
36
-	 * Called when a person sends a CTCPRReply to you directly.
37
-	 * sHost is the hostname of the person sending the CTCPRReply. (Can be a server or a person)<br>
38
-	 * cClient is null if user is a server, or not on any common channels.
39
-	 * 
40
-	 * @param tParser Reference to the parser object that made the callback.
41
-	 * @param sType Type of CTCPRReply (VERSION, TIME etc)
42
-	 * @param sMessage Reply Contents
43
-	 * @param sHost Hostname of sender (or servername)
44
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callPrivateCTCPReply
45
-	 */
46
-	void onPrivateCTCPReply(Parser tParser, String sType, String sMessage, String sHost);
37
+
38
+    /**
39
+     * Called when a person sends a CTCPRReply to you directly.
40
+     * sHost is the hostname of the person sending the CTCPRReply. (Can be a server or a person)<br>
41
+     * cClient is null if user is a server, or not on any common channels.
42
+     *
43
+     * @param parser Reference to the parser object that made the callback.
44
+     * @param date The date/time at which the event occured
45
+     * @param type Type of CTCPRReply (VERSION, TIME etc)
46
+     * @param message Reply Contents
47
+     * @param host Hostname of sender (or servername)
48
+     * @see com.dmdirc.parser.irc.ProcessMessage#callPrivateCTCPReply
49
+     */
50
+    void onPrivateCTCPReply(Parser parser, Date date, String type, String message, String host);
47 51
 }

+ 16
- 11
src/com/dmdirc/parser/interfaces/callbacks/PrivateMessageListener.java Vedi File

@@ -25,6 +25,8 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 import com.dmdirc.parser.interfaces.SpecificCallback;
27 27
 
28
+import java.util.Date;
29
+
28 30
 /**
29 31
  * Called when a person sends a message to you directly (PM). 
30 32
  * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
@@ -32,15 +34,18 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
32 34
  */
33 35
 @SpecificCallback
34 36
 public interface PrivateMessageListener extends CallbackInterface {
35
-	/**
36
-	 * Called when a person sends a message to you directly (PM). 
37
-	 * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
38
-	 * cClient is null if user is a server, or not on any common channel.
39
-	 * 
40
-	 * @param tParser Reference to the parser object that made the callback.
41
-	 * @param sMessage Message contents
42
-	 * @param sHost Hostname of sender (or servername)
43
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callPrivateMessage
44
-	 */
45
-	void onPrivateMessage(Parser tParser, String sMessage, String sHost);
37
+
38
+    /**
39
+     * Called when a person sends a message to you directly (PM).
40
+     * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
41
+     * cClient is null if user is a server, or not on any common channel.
42
+     *
43
+     * @param parser Reference to the parser object that made the callback.
44
+     * @param date The date/time at which the event occured
45
+     * @param message Message contents
46
+     * @param host Hostname of sender (or servername)
47
+     * @see com.dmdirc.parser.irc.ProcessMessage#callPrivateMessage
48
+     */
49
+    void onPrivateMessage(Parser parser, Date date, String message, String host);
50
+
46 51
 }

+ 17
- 12
src/com/dmdirc/parser/interfaces/callbacks/PrivateNoticeListener.java Vedi File

@@ -25,6 +25,8 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 import com.dmdirc.parser.interfaces.SpecificCallback;
27 27
 
28
+import java.util.Date;
29
+
28 30
 /**
29 31
  * Called when a person sends a notice to you.
30 32
  * sHost is the hostname of the person sending the notice. (Can be a server or a person)<br>
@@ -32,15 +34,18 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
32 34
  */
33 35
 @SpecificCallback
34 36
 public interface PrivateNoticeListener extends CallbackInterface {
35
-	/**
36
-	 * Called when a person sends a notice to you.
37
-	 * sHost is the hostname of the person sending the notice. (Can be a server or a person)<br>
38
-	 * cClient is null if user is a server, or not on any common channel.
39
-	 * 
40
-	 * @param tParser Reference to the parser object that made the callback.
41
-	 * @param sMessage Notice contents
42
-	 * @param sHost Hostname of sender (or servername)
43
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callPrivateNotice
44
-	 */
45
-	void onPrivateNotice(Parser tParser, String sMessage, String sHost);
46
-}
37
+
38
+    /**
39
+     * Called when a person sends a notice to you.
40
+     * sHost is the hostname of the person sending the notice. (Can be a server or a person)<br>
41
+     * cClient is null if user is a server, or not on any common channel.
42
+     *
43
+     * @param parser Reference to the parser object that made the callback.
44
+     * @param date The date/time at which the event occured
45
+     * @param message Notice contents
46
+     * @param host Hostname of sender (or servername)
47
+     * @see com.dmdirc.parser.irc.ProcessMessage#callPrivateNotice
48
+     */
49
+    void onPrivateNotice(Parser parser, Date date, String message, String host);
50
+
51
+}

+ 15
- 10
src/com/dmdirc/parser/interfaces/callbacks/QuitListener.java Vedi File

@@ -25,19 +25,24 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.ClientInfo;
26 26
 import com.dmdirc.parser.interfaces.Parser;
27 27
 
28
+import java.util.Date;
29
+
28 30
 /** 
29 31
  * Called When we, or another client quits IRC (Called once in total).
30 32
  * This is called BEFORE client has been removed from the channel.
31 33
  */
32 34
 public interface QuitListener extends CallbackInterface {
33
-	/**
34
-	 * Called When we, or another client quits IRC (Called once in total).
35
-	 * This is called BEFORE client has been removed from the channel.
36
-	 *
37
-	 * @param tParser Reference to the parser object that made the callback.
38
-	 * @param cClient Client Quitting
39
-	 * @param sReason Reason for quitting (may be "")
40
-	 * @see com.dmdirc.parser.irc.ProcessQuit#callQuit
41
-	 */
42
-	void onQuit(Parser tParser, ClientInfo cClient, String sReason);
35
+
36
+    /**
37
+     * Called When we, or another client quits IRC (Called once in total).
38
+     * This is called BEFORE client has been removed from the channel.
39
+     *
40
+     * @param parser Reference to the parser object that made the callback.
41
+     * @param date The date/time at which the event occured
42
+     * @param client Client Quitting
43
+     * @param reason Reason for quitting (may be "")
44
+     * @see com.dmdirc.parser.irc.ProcessQuit#callQuit
45
+     */
46
+    void onQuit(Parser parser, Date date, ClientInfo client, String reason);
47
+
43 48
 }

+ 13
- 8
src/com/dmdirc/parser/interfaces/callbacks/ServerErrorListener.java Vedi File

@@ -24,16 +24,21 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Interface Used to give ServerError.
29 31
  */
30 32
 public interface ServerErrorListener extends CallbackInterface {
31
-	/**
32
-	 * This callback is used to give messages the server sends as an ERROR.
33
-	 *
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @param sMessage Error Information
36
-	 * @see com.dmdirc.parser.irc.IRCParser#callServerError
37
-	 */
38
-	void onServerError(Parser tParser, String sMessage);
33
+
34
+    /**
35
+     * This callback is used to give messages the server sends as an ERROR.
36
+     *
37
+     * @param parser Reference to the parser object that made the callback.
38
+     * @param date The date/time at which the event occured
39
+     * @param message Error Information
40
+     * @see com.dmdirc.parser.irc.IRCParser#callServerError
41
+     */
42
+    void onServerError(Parser parser, Date date, String message);
43
+
39 44
 }

+ 15
- 10
src/com/dmdirc/parser/interfaces/callbacks/ServerNoticeListener.java Vedi File

@@ -25,20 +25,25 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 import com.dmdirc.parser.interfaces.SpecificCallback;
27 27
 
28
+import java.util.Date;
29
+
28 30
 /**
29 31
  * Called when a server sends a notice to you.
30 32
  * sHost is the hostname of the server sending the notice.<br>
31 33
  */
32 34
 @SpecificCallback
33 35
 public interface ServerNoticeListener extends CallbackInterface {
34
-	/**
35
-	 * Called when a server sends a notice to you.
36
-	 * sHost is the hostname of the server sending the notice.<br>
37
-	 * 
38
-	 * @param tParser Reference to the parser object that made the callback.
39
-	 * @param sMessage Notice contents
40
-	 * @param sHost Hostname of sender
41
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callPrivateNotice
42
-	 */
43
-	void onServerNotice(Parser tParser, String sMessage, String sHost);
36
+
37
+    /**
38
+     * Called when a server sends a notice to you.
39
+     * sHost is the hostname of the server sending the notice.<br>
40
+     *
41
+     * @param parser Reference to the parser object that made the callback.
42
+     * @param date The date/time at which the event occured
43
+     * @param message Notice contents
44
+     * @param host Hostname of sender
45
+     * @see com.dmdirc.parser.irc.ProcessMessage#callPrivateNotice
46
+     */
47
+    void onServerNotice(Parser parser, Date date, String message, String host);
48
+
44 49
 }

+ 12
- 7
src/com/dmdirc/parser/interfaces/callbacks/ServerReadyListener.java Vedi File

@@ -24,15 +24,20 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Called after 001.
29 31
  */
30 32
 public interface ServerReadyListener extends CallbackInterface {
31
-	/**
32
-	 * Called after 001.
33
-	 * 
34
-	 * @param tParser Reference to the parser object that made the callback.
35
-	 * @see com.dmdirc.parser.irc.Process001#callServerReady
36
-	 */
37
-	void onServerReady(Parser tParser);
33
+
34
+    /**
35
+     * Called after 001.
36
+     *
37
+     * @param parser Reference to the parser object that made the callback.
38
+     * @param date The date/time at which the event occured
39
+     * @see com.dmdirc.parser.irc.Process001#callServerReady
40
+     */
41
+    void onServerReady(Parser parser, Date date);
42
+
38 43
 }

+ 8
- 5
src/com/dmdirc/parser/interfaces/callbacks/SocketCloseListener.java Vedi File

@@ -24,15 +24,18 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Called when the socket is closed.
29 31
  */
30 32
 public interface SocketCloseListener extends CallbackInterface {
31 33
 
32 34
     /**
33
-	 * Called when the socket is closed.
34
-	 * 
35
-	 * @param tParser Reference to the parser object that made the callback.
36
-	 */
37
-	void onSocketClosed(Parser tParser);
35
+     * Called when the socket is closed.
36
+     *
37
+     * @param parser Reference to the parser object that made the callback.
38
+     * @param date The date/time at which the event occured
39
+     */
40
+    void onSocketClosed(Parser parser, Date date);
38 41
 }

+ 19
- 13
src/com/dmdirc/parser/interfaces/callbacks/UnknownActionListener.java Vedi File

@@ -24,22 +24,28 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Called when a person sends an action not aimed specifically at you or a channel (ie $*).
29 31
  * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
30 32
  * cClient is null if user is a server, or not on any common channel.
31 33
  */
32 34
 public interface UnknownActionListener extends CallbackInterface {
33
-	/**
34
-	 * Called when a person sends an action not aimed specifically at you or a channel (ie $*).
35
-	 * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
36
-	 * cClient is null if user is a server, or not on any common channel.
37
-	 * 
38
-	 * @param tParser Reference to the parser object that made the callback.
39
-	 * @param sMessage Action contents
40
-	 * @param sTarget Actual target of action
41
-	 * @param sHost Hostname of sender (or servername)
42
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callUnknownAction
43
-	 */
44
-	void onUnknownAction(Parser tParser, String sMessage, String sTarget, String sHost);
45
-}
35
+
36
+    /**
37
+     * Called when a person sends an action not aimed specifically at you or a channel (ie $*).
38
+     * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
39
+     * cClient is null if user is a server, or not on any common channel.
40
+     *
41
+     * @param parser Reference to the parser object that made the callback.
42
+     * @param date The date/time at which the event occured
43
+     * @param message Action contents
44
+     * @param target Actual target of action
45
+     * @param host Hostname of sender (or servername)
46
+     * @see com.dmdirc.parser.irc.ProcessMessage#callUnknownAction
47
+     */
48
+    void onUnknownAction(Parser parser, Date date, String message,
49
+            String target, String host);
50
+
51
+}

+ 19
- 13
src/com/dmdirc/parser/interfaces/callbacks/UnknownCtcpListener.java Vedi File

@@ -24,23 +24,29 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Called when a person sends a CTCP not aimed at you or a channel (ie $*).
29 31
  * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
30 32
  * cClient is null if user is a server, or not on any common channels.
31 33
  */
32 34
 public interface UnknownCtcpListener extends CallbackInterface {
33
-	/**
34
-	 * Called when a person sends a CTCP not aimed at you or a channel (ie $*).
35
-	 * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
36
-	 * cClient is null if user is a server, or not on any common channels.
37
-	 * 
38
-	 * @param tParser Reference to the parser object that made the callback.
39
-	 * @param sType Type of CTCP (VERSION, TIME etc)
40
-	 * @param sMessage Additional contents
41
-	 * @param sTarget Actual Target of CTCP
42
-	 * @param sHost Hostname of sender (or servername)
43
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callUnknownCTCP
44
-	 */
45
-	void onUnknownCTCP(Parser tParser, String sType, String sMessage, String sTarget, String sHost);
35
+
36
+    /**
37
+     * Called when a person sends a CTCP not aimed at you or a channel (ie $*).
38
+     * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
39
+     * cClient is null if user is a server, or not on any common channels.
40
+     *
41
+     * @param parser Reference to the parser object that made the callback.
42
+     * @param date The date/time at which the event occured
43
+     * @param type Type of CTCP (VERSION, TIME etc)
44
+     * @param message Additional contents
45
+     * @param target Actual Target of CTCP
46
+     * @param host Hostname of sender (or servername)
47
+     * @see com.dmdirc.parser.irc.ProcessMessage#callUnknownCTCP
48
+     */
49
+    void onUnknownCTCP(Parser parser, Date date, String type, String message,
50
+            String target, String host);
51
+
46 52
 }

+ 18
- 13
src/com/dmdirc/parser/interfaces/callbacks/UnknownCtcpReplyListener.java Vedi File

@@ -24,23 +24,28 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Called when a person sends a CTCP not aimed at you or a channel (ie $*).
29 31
  * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
30 32
  * cClient is null if user is a server, or not on any common channels.
31 33
  */
32 34
 public interface UnknownCtcpReplyListener extends CallbackInterface {
33
-	/**
34
-	 * Called when a person sends a CTCP not aimed at you or a channel (ie $*).
35
-	 * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
36
-	 * cClient is null if user is a server, or not on any common channels.
37
-	 *
38
-	 * @param tParser Reference to the parser object that made the callback.
39
-	 * @param sType Type of CTCPRReply (VERSION, TIME etc)
40
-	 * @param sMessage Reply Contents
41
-	 * @param sTarget Actual Target of CTCPReply
42
-	 * @param sHost Hostname of sender (or servername)
43
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callUnknownCTCPReply
44
-	 */
45
-	void onUnknownCTCPReply(Parser tParser, String sType, String sMessage, String sTarget, String sHost);
35
+
36
+    /**
37
+     * Called when a person sends a CTCP not aimed at you or a channel (ie $*).
38
+     * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
39
+     * cClient is null if user is a server, or not on any common channels.
40
+     *
41
+     * @param parser Reference to the parser object that made the callback.
42
+     * @param date The date/time at which the event occured
43
+     * @param type Type of CTCPRReply (VERSION, TIME etc)
44
+     * @param message Reply Contents
45
+     * @param target Actual Target of CTCPReply
46
+     * @param host Hostname of sender (or servername)
47
+     * @see com.dmdirc.parser.irc.ProcessMessage#callUnknownCTCPReply
48
+     */
49
+    void onUnknownCTCPReply(Parser parser, Date date, String type,
50
+            String message, String target, String host);
46 51
 }

+ 16
- 12
src/com/dmdirc/parser/interfaces/callbacks/UnknownMessageListener.java Vedi File

@@ -23,6 +23,7 @@
23 23
 package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26
+import java.util.Date;
26 27
 
27 28
 /**
28 29
  * Called when a person sends a message not aimed specifically at you or a channel (ie $*).
@@ -30,16 +31,19 @@ import com.dmdirc.parser.interfaces.Parser;
30 31
  * cClient is null if user is a server, or not on any common channel.
31 32
  */
32 33
 public interface UnknownMessageListener extends CallbackInterface {
33
-	/**
34
-	 * Called when a person sends a message not aimed specifically at you or a channel (ie $*).
35
-	 * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
36
-	 * cClient is null if user is a server, or not on any common channel.
37
-	 * 
38
-	 * @param tParser Reference to the parser object that made the callback.
39
-	 * @param sMessage Message contents
40
-	 * @param sTarget Actual target of message
41
-	 * @param sHost Hostname of sender (or servername)
42
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callUnknownMessage
43
-	 */
44
-	void onUnknownMessage(Parser tParser, String sMessage, String sTarget, String sHost);
34
+
35
+    /**
36
+     * Called when a person sends a message not aimed specifically at you or a channel (ie $*).
37
+     * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
38
+     * cClient is null if user is a server, or not on any common channel.
39
+     *
40
+     * @param parser Reference to the parser object that made the callback.
41
+     * @param date The date/time at which the event occured
42
+     * @param message Message contents
43
+     * @param target Actual target of message
44
+     * @param host Hostname of sender (or servername)
45
+     * @see com.dmdirc.parser.irc.ProcessMessage#callUnknownMessage
46
+     */
47
+    void onUnknownMessage(Parser parser, Date date, String message, String target, String host);
48
+
45 49
 }

+ 17
- 12
src/com/dmdirc/parser/interfaces/callbacks/UnknownNoticeListener.java Vedi File

@@ -24,22 +24,27 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 
27
+import java.util.Date;
28
+
27 29
 /**
28 30
  * Called when a person sends a notice not aimed specifically at you or a channel (ie $*).
29 31
  * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
30 32
  * cClient is null if user is a server, or not on any common channel.
31 33
  */
32 34
 public interface UnknownNoticeListener extends CallbackInterface {
33
-	/**
34
-	 * Called when a person sends a notice not aimed specifically at you or a channel (ie $*).
35
-	 * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
36
-	 * cClient is null if user is a server, or not on any common channel.
37
-	 * 
38
-	 * @param tParser Reference to the parser object that made the callback.
39
-	 * @param sMessage Notice contents
40
-	 * @param sTarget Actual target of notice
41
-	 * @param sHost Hostname of sender (or servername)
42
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callUnknownNotice
43
-	 */
44
-	void onUnknownNotice(Parser tParser, String sMessage, String sTarget, String sHost);
35
+
36
+    /**
37
+     * Called when a person sends a notice not aimed specifically at you or a channel (ie $*).
38
+     * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
39
+     * cClient is null if user is a server, or not on any common channel.
40
+     *
41
+     * @param parser Reference to the parser object that made the callback.
42
+     * @param date The date/time at which the event occured
43
+     * @param message Notice contents
44
+     * @param target Actual target of notice
45
+     * @param host Hostname of sender (or servername)
46
+     * @see com.dmdirc.parser.irc.ProcessMessage#callUnknownNotice
47
+     */
48
+    void onUnknownNotice(Parser parser, Date date, String message, String target, String host);
49
+
45 50
 }

+ 17
- 12
src/com/dmdirc/parser/interfaces/callbacks/UnknownServerNoticeListener.java Vedi File

@@ -23,22 +23,27 @@
23 23
 package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26
+import java.util.Date;
26 27
 
27 28
 /**
28 29
  * Called when a server sends a notice not aimed specifically at you or a channel (ie $*).
29 30
  * sHost is the hostname of the server sending the message.<br>
30 31
  */
31 32
 public interface UnknownServerNoticeListener extends CallbackInterface {
32
-	/**
33
-	 * Called when a server sends a notice not aimed specifically at you or a channel (ie $*).
34
-	 * sHost is the hostname of the server sending the message.<br>
35
-	 * cClient is null if user is a server, or not on any common channel.
36
-	 * 
37
-	 * @param tParser Reference to the parser object that made the callback.
38
-	 * @param sMessage Notice contents
39
-	 * @param sTarget Actual target of notice
40
-	 * @param sHost Hostname of sender
41
-	 * @see com.dmdirc.parser.irc.ProcessMessage#callUnknownServerNotice
42
-	 */
43
-	void onUnknownServerNotice(Parser tParser, String sMessage, String sTarget, String sHost);
33
+
34
+    /**
35
+     * Called when a server sends a notice not aimed specifically at you or a channel (ie $*).
36
+     * sHost is the hostname of the server sending the message.<br>
37
+     * cClient is null if user is a server, or not on any common channel.
38
+     *
39
+     * @param parser Reference to the parser object that made the callback.
40
+     * @param date The date/time at which the event occured
41
+     * @param message Notice contents
42
+     * @param target Actual target of notice
43
+     * @param host Hostname of sender
44
+     * @see com.dmdirc.parser.irc.ProcessMessage#callUnknownServerNotice
45
+     */
46
+    void onUnknownServerNotice(Parser parser, Date date, String message,
47
+            String target, String host);
48
+
44 49
 }

+ 17
- 12
src/com/dmdirc/parser/interfaces/callbacks/UserModeChangeListener.java Vedi File

@@ -25,22 +25,27 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.ClientInfo;
26 26
 import com.dmdirc.parser.interfaces.Parser;
27 27
 
28
+import java.util.Date;
29
+
28 30
 /** 
29 31
  * Called when user modes are changed.
30 32
  * cClient represents the user who's modes were changed (should ALWAYS be us)<br>
31 33
  * sSetby is the host of the person who set the mode (usually us, may be an oper or server in some cases)
32 34
  */
33 35
 public interface UserModeChangeListener extends CallbackInterface {
34
-	/**
35
-	 * Called when user modes are changed.
36
-	 * cClient represents the user who's modes were changed (should ALWAYS be us)<br>
37
-	 * sSetby is the host of the person who set the mode (usually us, may be an oper or server in some cases)
38
-	 * 
39
-	 * @param tParser Reference to the parser object that made the callback.
40
-	 * @param cClient Client that had the mode changed (almost always us)
41
-	 * @param sSetBy Host that set the mode (us or servername)
42
-	 * @param sModes The modes set.
43
-	 * @see com.dmdirc.parser.irc.ProcessMode#callUserModeChanged
44
-	 */
45
-	void onUserModeChanged(Parser tParser, ClientInfo cClient, String sSetBy, String sModes);
36
+
37
+    /**
38
+     * Called when user modes are changed.
39
+     * cClient represents the user who's modes were changed (should ALWAYS be us)<br>
40
+     * sSetby is the host of the person who set the mode (usually us, may be an oper or server in some cases)
41
+     *
42
+     * @param parser Reference to the parser object that made the callback.
43
+     * @param date The date/time at which the event occured
44
+     * @param client Client that had the mode changed (almost always us)
45
+     * @param host Host that set the mode (us or servername)
46
+     * @param modes The modes set.
47
+     * @see com.dmdirc.parser.irc.ProcessMode#callUserModeChanged
48
+     */
49
+    void onUserModeChanged(Parser parser, Date date, ClientInfo client,
50
+            String host, String modes);
46 51
 }

+ 14
- 10
src/com/dmdirc/parser/interfaces/callbacks/UserModeDiscoveryListener.java Vedi File

@@ -25,20 +25,24 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.ClientInfo;
26 26
 import com.dmdirc.parser.interfaces.Parser;
27 27
 
28
+import java.util.Date;
29
+
28 30
 /** 
29 31
  * Called when user modes are Discovered.
30 32
  * cClient represents the user who's modes were Discovered (should ALWAYS be us)<br>
31 33
  * sSetby is the host of the person who set the mode (usually us, may be an oper or server in some cases)
32 34
  */
33 35
 public interface UserModeDiscoveryListener extends CallbackInterface {
34
-	/**
35
-	 * Called when user modes are Discovered.
36
-	 * cClient represents the user who's modes were Discovered (should ALWAYS be us)
37
-	 * 
38
-	 * @param tParser Reference to the parser object that made the callback.
39
-	 * @param cClient Client that had the mode changed (almost always us)
40
-	 * @param sModes The modes set.
41
-	 * @see com.dmdirc.parser.irc.ProcessMode#callUserModeDiscovered
42
-	 */
43
-	void onUserModeDiscovered(Parser tParser, ClientInfo cClient, String sModes);
36
+
37
+    /**
38
+     * Called when user modes are Discovered.
39
+     * cClient represents the user who's modes were Discovered (should ALWAYS be us)
40
+     *
41
+     * @param parser Reference to the parser object that made the callback.
42
+     * @param date The date/time at which the event occured
43
+     * @param client Client that had the mode changed (almost always us)
44
+     * @param modes The modes set.
45
+     * @see com.dmdirc.parser.irc.ProcessMode#callUserModeDiscovered
46
+     */
47
+    void onUserModeDiscovered(Parser parser, Date date, ClientInfo client, String modes);
44 48
 }

+ 14
- 10
src/com/dmdirc/parser/interfaces/callbacks/WallDesyncListener.java Vedi File

@@ -24,6 +24,7 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 import com.dmdirc.parser.interfaces.SpecificCallback;
27
+import java.util.Date;
27 28
 
28 29
 /**
29 30
  * Called when a Desync message is recieved over wallops.
@@ -31,14 +32,17 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
31 32
  */
32 33
 @SpecificCallback
33 34
 public interface WallDesyncListener extends CallbackInterface {
34
-	/**
35
-	 * Called when a Desync message is recieved over wallops.
36
-	 * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
37
-	 * 
38
-	 * @param tParser Reference to the parser object that made the callback.
39
-	 * @param sMessage Message contents
40
-	 * @param sHost Hostname of sender (or servername)
41
-	 * @see com.dmdirc.parser.irc.ProcessWallops#callWallDesync
42
-	 */
43
-	void onWallDesync(Parser tParser, String sMessage, String sHost);
35
+
36
+    /**
37
+     * Called when a Desync message is recieved over wallops.
38
+     * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
39
+     *
40
+     * @param parser Reference to the parser object that made the callback.
41
+     * @param date The date/time at which the event occured
42
+     * @param message Message contents
43
+     * @param host Hostname of sender (or servername)
44
+     * @see com.dmdirc.parser.irc.ProcessWallops#callWallDesync
45
+     */
46
+    void onWallDesync(Parser parser, Date date, String message, String host);
47
+
44 48
 }

+ 14
- 10
src/com/dmdirc/parser/interfaces/callbacks/WallopListener.java Vedi File

@@ -24,6 +24,7 @@ package com.dmdirc.parser.interfaces.callbacks;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 import com.dmdirc.parser.interfaces.SpecificCallback;
27
+import java.util.Date;
27 28
 
28 29
 /**
29 30
  * Called when an oper-only message is recieved over wallops.
@@ -31,14 +32,17 @@ import com.dmdirc.parser.interfaces.SpecificCallback;
31 32
  */
32 33
 @SpecificCallback
33 34
 public interface WallopListener extends CallbackInterface {
34
-	/**
35
-	 * Called when an oper-only message is recieved over wallops.
36
-	 * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
37
-	 * 
38
-	 * @param tParser Reference to the parser object that made the callback.
39
-	 * @param sMessage Message contents
40
-	 * @param sHost Hostname of sender (or servername)
41
-	 * @see com.dmdirc.parser.irc.ProcessWallops#callWallop
42
-	 */
43
-	void onWallop(Parser tParser, String sMessage, String sHost);
35
+
36
+    /**
37
+     * Called when an oper-only message is recieved over wallops.
38
+     * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
39
+     *
40
+     * @param parser Reference to the parser object that made the callback.
41
+     * @param date The date/time at which the event occured
42
+     * @param message Message contents
43
+     * @param host Hostname of sender (or servername)
44
+     * @see com.dmdirc.parser.irc.ProcessWallops#callWallop
45
+     */
46
+    void onWallop(Parser parser, Date date, String message, String host);
47
+
44 48
 }

+ 14
- 10
src/com/dmdirc/parser/interfaces/callbacks/WalluserListener.java Vedi File

@@ -25,20 +25,24 @@ package com.dmdirc.parser.interfaces.callbacks;
25 25
 import com.dmdirc.parser.interfaces.Parser;
26 26
 import com.dmdirc.parser.interfaces.SpecificCallback;
27 27
 
28
+import java.util.Date;
29
+
28 30
 /**
29 31
  * Called when an all-users message is recieved over wallops.
30 32
  * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
31 33
  */
32 34
 @SpecificCallback
33 35
 public interface WalluserListener extends CallbackInterface {
34
-	/**
35
-	 * Called when an all-users message is recieved over wallops.
36
-	 * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
37
-	 * 
38
-	 * @param tParser Reference to the parser object that made the callback.
39
-	 * @param sMessage Message contents
40
-	 * @param sHost Hostname of sender (or servername)
41
-	 * @see com.dmdirc.parser.irc.ProcessWallops#callWalluser
42
-	 */
43
-	void onWalluser(Parser tParser, String sMessage, String sHost);
36
+
37
+    /**
38
+     * Called when an all-users message is recieved over wallops.
39
+     * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
40
+     *
41
+     * @param parser Reference to the parser object that made the callback.
42
+     * @param date The date/time at which the event occured
43
+     * @param message Message contents
44
+     * @param host Hostname of sender (or servername)
45
+     * @see com.dmdirc.parser.irc.ProcessWallops#callWalluser
46
+     */
47
+    void onWalluser(Parser parser, Date date, String message, String host);
44 48
 }

Loading…
Annulla
Salva