Browse Source

Oopsy!

tags/0.6.3m2a1
Chris Smith 15 years ago
parent
commit
424b52c4a7
61 changed files with 2696 additions and 0 deletions
  1. 39
    0
      src/com/dmdirc/parser/interfaces/callbacks/AuthNoticeListener.java
  2. 40
    0
      src/com/dmdirc/parser/interfaces/callbacks/AwayStateListener.java
  3. 28
    0
      src/com/dmdirc/parser/interfaces/callbacks/CallbackInterface.java
  4. 57
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelActionListener.java
  5. 57
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelCtcpListener.java
  6. 57
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelCtcpReplyListener.java
  7. 46
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelJoinListener.java
  8. 56
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelKickListener.java
  9. 44
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelListModeListener.java
  10. 56
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelMessageListener.java
  11. 56
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelModeChangeListener.java
  12. 42
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelNamesListener.java
  13. 47
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelNickChangeListener.java
  14. 56
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelNonUserModeChangeListener.java
  15. 56
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelNoticeListener.java
  16. 45
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelOtherAwayStateListener.java
  17. 47
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelPartListener.java
  18. 47
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelQuitListener.java
  19. 42
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelSelfJoinListener.java
  20. 56
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelSingleModeChangeListener.java
  21. 45
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelTopicListener.java
  22. 56
    0
      src/com/dmdirc/parser/interfaces/callbacks/ChannelUserModeChangeListener.java
  23. 40
    0
      src/com/dmdirc/parser/interfaces/callbacks/ConnectErrorListener.java
  24. 39
    0
      src/com/dmdirc/parser/interfaces/callbacks/DataInListener.java
  25. 40
    0
      src/com/dmdirc/parser/interfaces/callbacks/DataOutListener.java
  26. 40
    0
      src/com/dmdirc/parser/interfaces/callbacks/DebugInfoListener.java
  27. 40
    0
      src/com/dmdirc/parser/interfaces/callbacks/ErrorInfoListener.java
  28. 40
    0
      src/com/dmdirc/parser/interfaces/callbacks/InviteListener.java
  29. 40
    0
      src/com/dmdirc/parser/interfaces/callbacks/MotdEndListener.java
  30. 39
    0
      src/com/dmdirc/parser/interfaces/callbacks/MotdLineListener.java
  31. 39
    0
      src/com/dmdirc/parser/interfaces/callbacks/MotdStartListener.java
  32. 42
    0
      src/com/dmdirc/parser/interfaces/callbacks/NetworkDetectedListener.java
  33. 43
    0
      src/com/dmdirc/parser/interfaces/callbacks/NickChangeListener.java
  34. 39
    0
      src/com/dmdirc/parser/interfaces/callbacks/NickInUseListener.java
  35. 40
    0
      src/com/dmdirc/parser/interfaces/callbacks/NumericListener.java
  36. 43
    0
      src/com/dmdirc/parser/interfaces/callbacks/OtherAwayStateListener.java
  37. 38
    0
      src/com/dmdirc/parser/interfaces/callbacks/PasswordRequiredListener.java
  38. 38
    0
      src/com/dmdirc/parser/interfaces/callbacks/PingFailureListener.java
  39. 38
    0
      src/com/dmdirc/parser/interfaces/callbacks/PingSentListener.java
  40. 38
    0
      src/com/dmdirc/parser/interfaces/callbacks/PingSuccessListener.java
  41. 38
    0
      src/com/dmdirc/parser/interfaces/callbacks/Post005Listener.java
  42. 46
    0
      src/com/dmdirc/parser/interfaces/callbacks/PrivateActionListener.java
  43. 47
    0
      src/com/dmdirc/parser/interfaces/callbacks/PrivateCtcpListener.java
  44. 47
    0
      src/com/dmdirc/parser/interfaces/callbacks/PrivateCtcpReplyListener.java
  45. 46
    0
      src/com/dmdirc/parser/interfaces/callbacks/PrivateMessageListener.java
  46. 46
    0
      src/com/dmdirc/parser/interfaces/callbacks/PrivateNoticeListener.java
  47. 42
    0
      src/com/dmdirc/parser/interfaces/callbacks/QuitListener.java
  48. 39
    0
      src/com/dmdirc/parser/interfaces/callbacks/ServerErrorListener.java
  49. 38
    0
      src/com/dmdirc/parser/interfaces/callbacks/ServerReadyListener.java
  50. 38
    0
      src/com/dmdirc/parser/interfaces/callbacks/SocketCloseListener.java
  51. 45
    0
      src/com/dmdirc/parser/interfaces/callbacks/UnknownActionListener.java
  52. 46
    0
      src/com/dmdirc/parser/interfaces/callbacks/UnknownCtcpListener.java
  53. 46
    0
      src/com/dmdirc/parser/interfaces/callbacks/UnknownCtcpReplyListener.java
  54. 45
    0
      src/com/dmdirc/parser/interfaces/callbacks/UnknownMessageListener.java
  55. 45
    0
      src/com/dmdirc/parser/interfaces/callbacks/UnknownNoticeListener.java
  56. 46
    0
      src/com/dmdirc/parser/interfaces/callbacks/UserModeChangeListener.java
  57. 44
    0
      src/com/dmdirc/parser/interfaces/callbacks/UserModeDiscoveryListener.java
  58. 44
    0
      src/com/dmdirc/parser/interfaces/callbacks/WallDesyncListener.java
  59. 44
    0
      src/com/dmdirc/parser/interfaces/callbacks/WallopListener.java
  60. 44
    0
      src/com/dmdirc/parser/interfaces/callbacks/WalluserListener.java
  61. 29
    0
      src/com/dmdirc/parser/interfaces/callbacks/package-info.java

+ 39
- 0
src/com/dmdirc/parser/interfaces/callbacks/AuthNoticeListener.java View File

@@ -0,0 +1,39 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Interface Used on every incomming line before 001.
29
+ */
30
+public interface AuthNoticeListener extends CallbackInterface {
31
+	/**
32
+	 * Called on every incomming line before 001.
33
+	 * 
34
+	 * @param tParser Reference to the parser object that made the callback.
35
+	 * @param sData Incomming Line.
36
+	 * @see com.dmdirc.parser.irc.ProcessNoticeAuth#callNoticeAuth
37
+	 */
38
+	void onNoticeAuth(IRCParser tParser, String sData);
39
+}

+ 40
- 0
src/com/dmdirc/parser/interfaces/callbacks/AwayStateListener.java View File

@@ -0,0 +1,40 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called when we go away, or come back.
29
+ */
30
+public interface AwayStateListener extends CallbackInterface {
31
+	/**
32
+	 * Called when we go away, or come back.
33
+	 *
34
+	 * @param tParser Reference to the parser object that made the callback.
35
+	 * @param currentState Set to true if we are now away, else false.
36
+	 * @param reason Best guess at away reason
37
+	 * @see com.dmdirc.parser.irc.ProcessAway#callAwayState
38
+	 */
39
+	void onAwayState(IRCParser tParser, boolean currentState, String reason);
40
+}

+ 28
- 0
src/com/dmdirc/parser/interfaces/callbacks/CallbackInterface.java View File

@@ -0,0 +1,28 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+/**
26
+ * "SuperInterface" for all callbacks.
27
+ */
28
+public interface CallbackInterface { }

+ 57
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelActionListener.java View File

@@ -0,0 +1,57 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelClientInfo;
26
+import com.dmdirc.parser.irc.ChannelInfo;
27
+import com.dmdirc.parser.irc.IRCParser;
28
+import com.dmdirc.parser.irc.callbacks.FakableArgument;
29
+import com.dmdirc.parser.irc.callbacks.FakableSource;
30
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
31
+
32
+/**
33
+ * Called when a person does an action in a channel.
34
+ * sHost is the hostname of the person sending the action. (Can be a server or a person)<br>
35
+ * cChannelClient is null if user is a server, or not on the channel.
36
+ */
37
+@SpecificCallback
38
+public interface ChannelActionListener extends CallbackInterface {
39
+	/**
40
+	 * Called when a person does an action in a channel.
41
+	 * sHost is the hostname of the person sending the action. (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 action was sent to
46
+	 * @param cChannelClient ChannelClient who sent the action (may be null if server)
47
+	 * @param sMessage action contents
48
+	 * @param sHost Hostname of sender (or servername)
49
+	 * @see com.dmdirc.parser.irc.ProcessMessage#callChannelAction
50
+	 */
51
+	void onChannelAction(
52
+            @FakableSource IRCParser tParser,
53
+            @FakableSource ChannelInfo cChannel,
54
+            @FakableArgument ChannelClientInfo cChannelClient,
55
+            String sMessage,
56
+            @FakableSource String sHost);
57
+}

+ 57
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelCtcpListener.java View File

@@ -0,0 +1,57 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelClientInfo;
26
+import com.dmdirc.parser.irc.ChannelInfo;
27
+import com.dmdirc.parser.irc.IRCParser;
28
+import com.dmdirc.parser.irc.callbacks.FakableArgument;
29
+import com.dmdirc.parser.irc.callbacks.FakableSource;
30
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
31
+
32
+/**
33
+ * Called when a person sends a CTCP to a channel.
34
+ * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
35
+ * cChannelClient is null if user is a server.
36
+ */
37
+@SpecificCallback
38
+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 IRCParser tParser,
53
+            @FakableSource ChannelInfo cChannel,
54
+            @FakableArgument ChannelClientInfo cChannelClient,
55
+            String sType, String sMessage,
56
+            @FakableSource String sHost);
57
+}

+ 57
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelCtcpReplyListener.java View File

@@ -0,0 +1,57 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelClientInfo;
26
+import com.dmdirc.parser.irc.ChannelInfo;
27
+import com.dmdirc.parser.irc.IRCParser;
28
+import com.dmdirc.parser.irc.callbacks.FakableArgument;
29
+import com.dmdirc.parser.irc.callbacks.FakableSource;
30
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
31
+
32
+/**
33
+ * Called when a person sends a CTCPRReply to a channel.
34
+ * sHost is the hostname of the person sending the CTCPReply. (Can be a server or a person)<br>
35
+ * cChannelClient is null if user is a server.
36
+ */
37
+@SpecificCallback
38
+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 IRCParser tParser,
53
+            @FakableSource ChannelInfo cChannel,
54
+            @FakableArgument ChannelClientInfo cChannelClient,
55
+            String sType, String sMessage,
56
+            @FakableSource String sHost);
57
+}

+ 46
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelJoinListener.java View File

@@ -0,0 +1,46 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelClientInfo;
26
+import com.dmdirc.parser.irc.ChannelInfo;
27
+import com.dmdirc.parser.irc.IRCParser;
28
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
29
+
30
+/** 
31
+ * Called When we, or another client joins a channel.
32
+ * This is called AFTER client has been added to channel as a ChannelClientInfo
33
+ */
34
+@SpecificCallback
35
+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(IRCParser tParser, ChannelInfo cChannel, ChannelClientInfo cChannelClient);
46
+}

+ 56
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelKickListener.java View File

@@ -0,0 +1,56 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelClientInfo;
26
+import com.dmdirc.parser.irc.ChannelInfo;
27
+import com.dmdirc.parser.irc.IRCParser;
28
+import com.dmdirc.parser.irc.callbacks.FakableArgument;
29
+import com.dmdirc.parser.irc.callbacks.FakableSource;
30
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
31
+
32
+/**
33
+ * Called when a person is kicked.
34
+ * cKickedByClient can be null if kicked by a server. sKickedByHost is the hostname of the person/server doing the kicking.
35
+ */
36
+@SpecificCallback
37
+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 IRCParser tParser,
51
+            @FakableSource ChannelInfo cChannel,
52
+            ChannelClientInfo cKickedClient,
53
+            @FakableArgument ChannelClientInfo cKickedByClient,
54
+            String sReason,
55
+            @FakableSource String sKickedByHost);
56
+}

+ 44
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelListModeListener.java View File

@@ -0,0 +1,44 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelInfo;
26
+import com.dmdirc.parser.irc.IRCParser;
27
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
28
+
29
+/**
30
+ * Called when all requested ListModes have been sent.
31
+ * This is decided by ProcessListModes, and is called when an "end of list"
32
+ * reply is sent, and the listModeQueue is empty (or non-existant).
33
+ */
34
+@SpecificCallback
35
+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
+	 * @see com.dmdirc.parser.irc.ProcessListModes#callChannelGotListModes
42
+	 */
43
+	void onChannelGotListModes(IRCParser tParser, ChannelInfo cChannel);
44
+}

+ 56
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelMessageListener.java View File

@@ -0,0 +1,56 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelClientInfo;
26
+import com.dmdirc.parser.irc.ChannelInfo;
27
+import com.dmdirc.parser.irc.IRCParser;
28
+import com.dmdirc.parser.irc.callbacks.FakableArgument;
29
+import com.dmdirc.parser.irc.callbacks.FakableSource;
30
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
31
+
32
+/**
33
+ * Called when a person sends a message to a channel.
34
+ * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
35
+ * cChannelClient is null if user is a server, or not on the channel.
36
+ */
37
+@SpecificCallback
38
+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 IRCParser tParser,
52
+            @FakableSource ChannelInfo cChannel,
53
+            @FakableArgument ChannelClientInfo cChannelClient,
54
+            String sMessage,
55
+            @FakableSource String sHost);
56
+}

+ 56
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelModeChangeListener.java View File

@@ -0,0 +1,56 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelClientInfo;
26
+import com.dmdirc.parser.irc.ChannelInfo;
27
+import com.dmdirc.parser.irc.IRCParser;
28
+import com.dmdirc.parser.irc.callbacks.FakableArgument;
29
+import com.dmdirc.parser.irc.callbacks.FakableSource;
30
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
31
+
32
+/** 
33
+ * Called when the channel modes are changed or discovered.
34
+ * cChannelClient is null if the modes were found from raw 324 (/MODE #Chan reply) or if a server set the mode.<br>
35
+ * If a Server set the mode, sHost is the servers name, else it is the full host of the user who set it
36
+ */
37
+@SpecificCallback
38
+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 IRCParser tParser,
52
+            @FakableSource ChannelInfo cChannel,
53
+            @FakableArgument ChannelClientInfo cChannelClient,
54
+            @FakableSource String sHost,
55
+            String sModes);
56
+}

+ 42
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelNamesListener.java View File

@@ -0,0 +1,42 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelInfo;
26
+import com.dmdirc.parser.irc.IRCParser;
27
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
28
+
29
+/**
30
+ * Called when a names reply is parsed.
31
+ */
32
+@SpecificCallback
33
+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(IRCParser tParser, ChannelInfo cChannel);
42
+}

+ 47
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelNickChangeListener.java View File

@@ -0,0 +1,47 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelClientInfo;
26
+import com.dmdirc.parser.irc.ChannelInfo;
27
+import com.dmdirc.parser.irc.IRCParser;
28
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
29
+
30
+/** 
31
+ * Called when we or another user change nickname (Called once per channel the user is on).
32
+ * This is called after the nickname change has been done internally
33
+ */
34
+@SpecificCallback
35
+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(IRCParser tParser, ChannelInfo cChannel, ChannelClientInfo cChannelClient, String sOldNick);
47
+}

+ 56
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelNonUserModeChangeListener.java View File

@@ -0,0 +1,56 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelClientInfo;
26
+import com.dmdirc.parser.irc.ChannelInfo;
27
+import com.dmdirc.parser.irc.IRCParser;
28
+import com.dmdirc.parser.irc.callbacks.FakableArgument;
29
+import com.dmdirc.parser.irc.callbacks.FakableSource;
30
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
31
+
32
+/** 
33
+ * Called when the channel modes are changed or discovered.
34
+ * cChannelClient is null if the modes were found from raw 324 (/MODE #Chan reply) or if a server set the mode.<br>
35
+ * If a Server set the mode, sHost is the servers name, else it is the full host of the user who set it
36
+ */
37
+@SpecificCallback
38
+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 IRCParser tParser,
51
+            @FakableSource ChannelInfo cChannel,
52
+            @FakableArgument ChannelClientInfo cChannelClient,
53
+            @FakableSource String sHost,
54
+            String sModes);
55
+}
56
+

+ 56
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelNoticeListener.java View File

@@ -0,0 +1,56 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelClientInfo;
26
+import com.dmdirc.parser.irc.ChannelInfo;
27
+import com.dmdirc.parser.irc.IRCParser;
28
+import com.dmdirc.parser.irc.callbacks.FakableArgument;
29
+import com.dmdirc.parser.irc.callbacks.FakableSource;
30
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
31
+
32
+/**
33
+ * Called when a person sends a notice to a channel.
34
+ * sHost is the hostname of the person sending the notice. (Can be a server or a person)<br>
35
+ * cChannelClient is null if user is a server, or not on the channel.
36
+ */
37
+@SpecificCallback
38
+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 IRCParser tParser,
52
+            @FakableSource ChannelInfo cChannel,
53
+            @FakableArgument ChannelClientInfo cChannelClient,
54
+            String sMessage,
55
+            @FakableSource String sHost);
56
+}

+ 45
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelOtherAwayStateListener.java View File

@@ -0,0 +1,45 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+import com.dmdirc.parser.irc.ChannelClientInfo;
27
+import com.dmdirc.parser.irc.ChannelInfo;
28
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
29
+
30
+/**
31
+ * Called when we go away, or come back.
32
+ */
33
+@SpecificCallback
34
+public interface ChannelOtherAwayStateListener 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 channel Channel this is for
40
+	 * @param channelClient Client this is for
41
+	 * @param state Away State (true if away, false if here)
42
+	 * @see com.dmdirc.parser.irc.ProcessAway#callChannelAwayStateOther
43
+	 */
44
+	void onChannelAwayStateOther(IRCParser tParser, ChannelInfo channel, ChannelClientInfo channelClient, boolean state);
45
+}

+ 47
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelPartListener.java View File

@@ -0,0 +1,47 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelClientInfo;
26
+import com.dmdirc.parser.irc.ChannelInfo;
27
+import com.dmdirc.parser.irc.IRCParser;
28
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
29
+
30
+/** 
31
+ * Called When we, or another client parts a channel.
32
+ * This is called BEFORE client has been removed from the channel.
33
+ */
34
+@SpecificCallback
35
+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(IRCParser tParser, ChannelInfo cChannel, ChannelClientInfo cChannelClient, String sReason);
47
+}

+ 47
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelQuitListener.java View File

@@ -0,0 +1,47 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelClientInfo;
26
+import com.dmdirc.parser.irc.ChannelInfo;
27
+import com.dmdirc.parser.irc.IRCParser;
28
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
29
+
30
+/** 
31
+ * Called When we, or another client quits IRC (Called once per channel the user was on).
32
+ * This is called BEFORE client has been removed from the channel.
33
+ */
34
+@SpecificCallback
35
+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(IRCParser tParser, ChannelInfo cChannel, ChannelClientInfo cChannelClient, String sReason);
47
+}

+ 42
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelSelfJoinListener.java View File

@@ -0,0 +1,42 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelInfo;
26
+import com.dmdirc.parser.irc.IRCParser;
27
+
28
+/** 
29
+ * Called When we join a channel.
30
+ * We are NOT added as a channelclient until after the names reply
31
+ */
32
+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(IRCParser tParser, ChannelInfo cChannel);
42
+}

+ 56
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelSingleModeChangeListener.java View File

@@ -0,0 +1,56 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelClientInfo;
26
+import com.dmdirc.parser.irc.ChannelInfo;
27
+import com.dmdirc.parser.irc.IRCParser;
28
+import com.dmdirc.parser.irc.callbacks.FakableArgument;
29
+import com.dmdirc.parser.irc.callbacks.FakableSource;
30
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
31
+
32
+/** 
33
+ * Called when the channel modes are changed or discovered.
34
+ * cChannelClient is null if the modes were found from raw 324 (/MODE #Chan reply) or if a server set the mode.<br>
35
+ * If a Server set the mode, sHost is the servers name, else it is the full host of the user who set it
36
+ */
37
+@SpecificCallback
38
+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 IRCParser tParser,
51
+            @FakableSource ChannelInfo cChannel,
52
+            @FakableArgument ChannelClientInfo cChannelClient,
53
+            @FakableSource String sHost,
54
+            String sModes);
55
+}
56
+

+ 45
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelTopicListener.java View File

@@ -0,0 +1,45 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelInfo;
26
+import com.dmdirc.parser.irc.IRCParser;
27
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
28
+
29
+/** 
30
+ * Called when the topic is changed or discovered for the first time.
31
+ * bIsNewTopic is true if someone sets the topic, false if the topic is discovered on join
32
+ */
33
+@SpecificCallback
34
+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(IRCParser tParser, ChannelInfo cChannel, boolean bIsJoinTopic);
45
+}

+ 56
- 0
src/com/dmdirc/parser/interfaces/callbacks/ChannelUserModeChangeListener.java View File

@@ -0,0 +1,56 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ChannelClientInfo;
26
+import com.dmdirc.parser.irc.ChannelInfo;
27
+import com.dmdirc.parser.irc.IRCParser;
28
+import com.dmdirc.parser.irc.callbacks.FakableArgument;
29
+import com.dmdirc.parser.irc.callbacks.FakableSource;
30
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
31
+
32
+/** 
33
+ * Called when a users channel mode is changed.
34
+ */
35
+@SpecificCallback
36
+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 IRCParser tParser,
51
+            @FakableSource ChannelInfo cChannel,
52
+            ChannelClientInfo cChangedClient,
53
+            @FakableArgument ChannelClientInfo cSetByClient,
54
+            @FakableSource String sHost,
55
+            String sMode);
56
+}

+ 40
- 0
src/com/dmdirc/parser/interfaces/callbacks/ConnectErrorListener.java View File

@@ -0,0 +1,40 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+import com.dmdirc.parser.irc.ParserError;
27
+
28
+/**
29
+ * Called to give Error Information related to a connection attempt.
30
+ */
31
+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(IRCParser tParser, ParserError errorInfo);
40
+}

+ 39
- 0
src/com/dmdirc/parser/interfaces/callbacks/DataInListener.java View File

@@ -0,0 +1,39 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Interface Used on every incomming line BEFORE parsing.
29
+ */
30
+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(IRCParser tParser, String sData);
39
+}

+ 40
- 0
src/com/dmdirc/parser/interfaces/callbacks/DataOutListener.java View File

@@ -0,0 +1,40 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called on every incomming line BEFORE being sent.
29
+ */
30
+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(IRCParser tParser, String sData, boolean bFromParser);
40
+}

+ 40
- 0
src/com/dmdirc/parser/interfaces/callbacks/DebugInfoListener.java View File

@@ -0,0 +1,40 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Interface Used to give Debug Information.
29
+ */
30
+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(IRCParser tParser, int nLevel, String sData);
40
+}

+ 40
- 0
src/com/dmdirc/parser/interfaces/callbacks/ErrorInfoListener.java View File

@@ -0,0 +1,40 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+import com.dmdirc.parser.irc.ParserError;
27
+
28
+/**
29
+ * Called to give Error Information.
30
+ */
31
+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(IRCParser tParser, ParserError errorInfo);
40
+}

+ 40
- 0
src/com/dmdirc/parser/interfaces/callbacks/InviteListener.java View File

@@ -0,0 +1,40 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called when we are invited to a channel.
29
+ */
30
+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(IRCParser tParser, String userHost, String channel);
40
+}

+ 40
- 0
src/com/dmdirc/parser/interfaces/callbacks/MotdEndListener.java View File

@@ -0,0 +1,40 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called when "End of MOTD" or "No MOTD" is received.
29
+ */
30
+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(IRCParser tParser, boolean noMOTD, String sData);
40
+}

+ 39
- 0
src/com/dmdirc/parser/interfaces/callbacks/MotdLineListener.java View File

@@ -0,0 +1,39 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Interface Used to give MOTD Information.
29
+ */
30
+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(IRCParser tParser, String sData);
39
+}

+ 39
- 0
src/com/dmdirc/parser/interfaces/callbacks/MotdStartListener.java View File

@@ -0,0 +1,39 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Interface Used when the MOTD Starts.
29
+ */
30
+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(IRCParser tParser, String sData);
39
+}

+ 42
- 0
src/com/dmdirc/parser/interfaces/callbacks/NetworkDetectedListener.java View File

@@ -0,0 +1,42 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Interface Used when the Network=blah 005 token is recieved.
29
+ */
30
+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(IRCParser tParser, String networkName, String ircdVersion, String ircdType);
42
+}

+ 43
- 0
src/com/dmdirc/parser/interfaces/callbacks/NickChangeListener.java View File

@@ -0,0 +1,43 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ClientInfo;
26
+import com.dmdirc.parser.irc.IRCParser;
27
+
28
+/**
29
+ * Called when we or another user change nickname.
30
+ * This is called after the nickname change has been done internally
31
+ */
32
+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(IRCParser tParser, ClientInfo cClient, String sOldNick);
43
+}

+ 39
- 0
src/com/dmdirc/parser/interfaces/callbacks/NickInUseListener.java View File

@@ -0,0 +1,39 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called when requested nickname is in use.
29
+ */
30
+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(IRCParser tParser, String nickname);
39
+}

+ 40
- 0
src/com/dmdirc/parser/interfaces/callbacks/NumericListener.java View File

@@ -0,0 +1,40 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Interface Used to give numeric Information.
29
+ */
30
+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(IRCParser tParser, int numeric, String[] token);
40
+}

+ 43
- 0
src/com/dmdirc/parser/interfaces/callbacks/OtherAwayStateListener.java View File

@@ -0,0 +1,43 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+import com.dmdirc.parser.irc.ClientInfo;
27
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
28
+
29
+/**
30
+ * Called when we go away, or come back.
31
+ */
32
+@SpecificCallback
33
+public interface OtherAwayStateListener extends CallbackInterface {
34
+	/**
35
+	 * Called when we go away, or come back.
36
+	 *
37
+	 * @param tParser Reference to the parser object that made the callback.
38
+	 * @param client Client this is for
39
+	 * @param state Away State (true if away, false if here)
40
+	 * @see com.dmdirc.parser.irc.ProcessAway#callAwayStateOther
41
+	 */
42
+	void onAwayStateOther(IRCParser tParser, ClientInfo client, boolean state);
43
+}

+ 38
- 0
src/com/dmdirc/parser/interfaces/callbacks/PasswordRequiredListener.java View File

@@ -0,0 +1,38 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Interface Used when a raw 464 is recieved.
29
+ */
30
+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(IRCParser tParser);
38
+}

+ 38
- 0
src/com/dmdirc/parser/interfaces/callbacks/PingFailureListener.java View File

@@ -0,0 +1,38 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called when a Ping Failed.
29
+ */
30
+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(IRCParser tParser);
38
+}

+ 38
- 0
src/com/dmdirc/parser/interfaces/callbacks/PingSentListener.java View File

@@ -0,0 +1,38 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called when a Ping was Sent.
29
+ */
30
+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(IRCParser tParser);
38
+}

+ 38
- 0
src/com/dmdirc/parser/interfaces/callbacks/PingSuccessListener.java View File

@@ -0,0 +1,38 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called when a Ping was a Success.
29
+ */
30
+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(IRCParser tParser);
38
+}

+ 38
- 0
src/com/dmdirc/parser/interfaces/callbacks/Post005Listener.java View File

@@ -0,0 +1,38 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called after 001.
29
+ */
30
+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(IRCParser tParser);
38
+}

+ 46
- 0
src/com/dmdirc/parser/interfaces/callbacks/PrivateActionListener.java View File

@@ -0,0 +1,46 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
27
+
28
+/**
29
+ * Called when a person does an action to you (PM).
30
+ * sHost is the hostname of the person sending the action. (Can be a server or a person)<br>
31
+ * cClient is null if user is a server, or not on any common channel.
32
+ */
33
+@SpecificCallback
34
+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(IRCParser tParser, String sMessage, String sHost);
46
+}

+ 47
- 0
src/com/dmdirc/parser/interfaces/callbacks/PrivateCtcpListener.java View File

@@ -0,0 +1,47 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
27
+
28
+/**
29
+ * Called when a person sends a CTCP to you directly.
30
+ * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
31
+ * cClient is null if user is a server, or not on any common channels.
32
+ */
33
+@SpecificCallback
34
+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(IRCParser tParser, String sType, String sMessage, String sHost);
47
+}

+ 47
- 0
src/com/dmdirc/parser/interfaces/callbacks/PrivateCtcpReplyListener.java View File

@@ -0,0 +1,47 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
27
+
28
+/**
29
+ * Called when a person sends a CTCPRReply to you directly.
30
+ * sHost is the hostname of the person sending the CTCPRReply. (Can be a server or a person)<br>
31
+ * cClient is null if user is a server, or not on any common channels.
32
+ */
33
+@SpecificCallback
34
+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(IRCParser tParser, String sType, String sMessage, String sHost);
47
+}

+ 46
- 0
src/com/dmdirc/parser/interfaces/callbacks/PrivateMessageListener.java View File

@@ -0,0 +1,46 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
27
+
28
+/**
29
+ * Called when a person sends a message to you directly (PM). 
30
+ * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
31
+ * cClient is null if user is a server, or not on any common channel.
32
+ */
33
+@SpecificCallback
34
+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(IRCParser tParser, String sMessage, String sHost);
46
+}

+ 46
- 0
src/com/dmdirc/parser/interfaces/callbacks/PrivateNoticeListener.java View File

@@ -0,0 +1,46 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
27
+
28
+/**
29
+ * Called when a person sends a notice to you.
30
+ * sHost is the hostname of the person sending the notice. (Can be a server or a person)<br>
31
+ * cClient is null if user is a server, or not on any common channel.
32
+ */
33
+@SpecificCallback
34
+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(IRCParser tParser, String sMessage, String sHost);
46
+}

+ 42
- 0
src/com/dmdirc/parser/interfaces/callbacks/QuitListener.java View File

@@ -0,0 +1,42 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ClientInfo;
26
+import com.dmdirc.parser.irc.IRCParser;
27
+/** 
28
+ * Called When we, or another client quits IRC (Called once in total).
29
+ * This is called BEFORE client has been removed from the channel.
30
+ */
31
+public interface QuitListener extends CallbackInterface {
32
+	/**
33
+	 * Called When we, or another client quits IRC (Called once in total).
34
+	 * This is called BEFORE client has been removed from the channel.
35
+	 *
36
+	 * @param tParser Reference to the parser object that made the callback.
37
+	 * @param cClient Client Quitting
38
+	 * @param sReason Reason for quitting (may be "")
39
+	 * @see com.dmdirc.parser.irc.ProcessQuit#callQuit
40
+	 */
41
+	void onQuit(IRCParser tParser, ClientInfo cClient, String sReason);
42
+}

+ 39
- 0
src/com/dmdirc/parser/interfaces/callbacks/ServerErrorListener.java View File

@@ -0,0 +1,39 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Interface Used to give ServerError.
29
+ */
30
+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(IRCParser tParser, String sMessage);
39
+}

+ 38
- 0
src/com/dmdirc/parser/interfaces/callbacks/ServerReadyListener.java View File

@@ -0,0 +1,38 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called after 001.
29
+ */
30
+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(IRCParser tParser);
38
+}

+ 38
- 0
src/com/dmdirc/parser/interfaces/callbacks/SocketCloseListener.java View File

@@ -0,0 +1,38 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called when the socket is closed.
29
+ */
30
+public interface SocketCloseListener extends CallbackInterface {
31
+	/**
32
+	 * Called when the socket is closed.
33
+	 * 
34
+	 * @param tParser Reference to the parser object that made the callback.
35
+	 * @see IRCParser#callSocketClosed
36
+	 */
37
+	void onSocketClosed(IRCParser tParser);
38
+}

+ 45
- 0
src/com/dmdirc/parser/interfaces/callbacks/UnknownActionListener.java View File

@@ -0,0 +1,45 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called when a person sends an action not aimed specifically at you or a channel (ie $*).
29
+ * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
30
+ * cClient is null if user is a server, or not on any common channel.
31
+ */
32
+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(IRCParser tParser, String sMessage, String sTarget, String sHost);
45
+}

+ 46
- 0
src/com/dmdirc/parser/interfaces/callbacks/UnknownCtcpListener.java View File

@@ -0,0 +1,46 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called when a person sends a CTCP not aimed at you or a channel (ie $*).
29
+ * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
30
+ * cClient is null if user is a server, or not on any common channels.
31
+ */
32
+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(IRCParser tParser, String sType, String sMessage, String sTarget, String sHost);
46
+}

+ 46
- 0
src/com/dmdirc/parser/interfaces/callbacks/UnknownCtcpReplyListener.java View File

@@ -0,0 +1,46 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called when a person sends a CTCP not aimed at you or a channel (ie $*).
29
+ * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
30
+ * cClient is null if user is a server, or not on any common channels.
31
+ */
32
+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(IRCParser tParser, String sType, String sMessage, String sTarget, String sHost);
46
+}

+ 45
- 0
src/com/dmdirc/parser/interfaces/callbacks/UnknownMessageListener.java View File

@@ -0,0 +1,45 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called when a person sends a message not aimed specifically at you or a channel (ie $*).
29
+ * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
30
+ * cClient is null if user is a server, or not on any common channel.
31
+ */
32
+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(IRCParser tParser, String sMessage, String sTarget, String sHost);
45
+}

+ 45
- 0
src/com/dmdirc/parser/interfaces/callbacks/UnknownNoticeListener.java View File

@@ -0,0 +1,45 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+
27
+/**
28
+ * Called when a person sends a notice not aimed specifically at you or a channel (ie $*).
29
+ * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
30
+ * cClient is null if user is a server, or not on any common channel.
31
+ */
32
+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(IRCParser tParser, String sMessage, String sTarget, String sHost);
45
+}

+ 46
- 0
src/com/dmdirc/parser/interfaces/callbacks/UserModeChangeListener.java View File

@@ -0,0 +1,46 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ClientInfo;
26
+import com.dmdirc.parser.irc.IRCParser;
27
+
28
+/** 
29
+ * Called when user modes are changed.
30
+ * cClient represents the user who's modes were changed (should ALWAYS be us)<br>
31
+ * sSetby is the host of the person who set the mode (usually us, may be an oper or server in some cases)
32
+ */
33
+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(IRCParser tParser, ClientInfo cClient, String sSetBy, String sModes);
46
+}

+ 44
- 0
src/com/dmdirc/parser/interfaces/callbacks/UserModeDiscoveryListener.java View File

@@ -0,0 +1,44 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.ClientInfo;
26
+import com.dmdirc.parser.irc.IRCParser;
27
+
28
+/** 
29
+ * Called when user modes are Discovered.
30
+ * cClient represents the user who's modes were Discovered (should ALWAYS be us)<br>
31
+ * sSetby is the host of the person who set the mode (usually us, may be an oper or server in some cases)
32
+ */
33
+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(IRCParser tParser, ClientInfo cClient, String sModes);
44
+}

+ 44
- 0
src/com/dmdirc/parser/interfaces/callbacks/WallDesyncListener.java View File

@@ -0,0 +1,44 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
27
+
28
+/**
29
+ * Called when a Desync message is recieved over wallops.
30
+ * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
31
+ */
32
+@SpecificCallback
33
+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(IRCParser tParser, String sMessage, String sHost);
44
+}

+ 44
- 0
src/com/dmdirc/parser/interfaces/callbacks/WallopListener.java View File

@@ -0,0 +1,44 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
27
+
28
+/**
29
+ * Called when an oper-only message is recieved over wallops.
30
+ * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
31
+ */
32
+@SpecificCallback
33
+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(IRCParser tParser, String sMessage, String sHost);
44
+}

+ 44
- 0
src/com/dmdirc/parser/interfaces/callbacks/WalluserListener.java View File

@@ -0,0 +1,44 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+package com.dmdirc.parser.interfaces.callbacks;
24
+
25
+import com.dmdirc.parser.irc.IRCParser;
26
+import com.dmdirc.parser.irc.callbacks.SpecificCallback;
27
+
28
+/**
29
+ * Called when an all-users message is recieved over wallops.
30
+ * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
31
+ */
32
+@SpecificCallback
33
+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(IRCParser tParser, String sMessage, String sHost);
44
+}

+ 29
- 0
src/com/dmdirc/parser/interfaces/callbacks/package-info.java View File

@@ -0,0 +1,29 @@
1
+/*
2
+ * Copyright (c) 2006-2009 Chris Smith, Shane Mc Cormack, Gregory Holmes
3
+ *
4
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ * of this software and associated documentation files (the "Software"), to deal
6
+ * in the Software without restriction, including without limitation the rights
7
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ * copies of the Software, and to permit persons to whom the Software is
9
+ * furnished to do so, subject to the following conditions:
10
+ *
11
+ * The above copyright notice and this permission notice shall be included in
12
+ * all copies or substantial portions of the Software.
13
+ *
14
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
+ * SOFTWARE.
21
+ */
22
+
23
+/**
24
+ * Parser callback interfaces.  Classes wanting to use callbacks will be 
25
+ * required to implement the appropriate interface from this package.
26
+ *
27
+ * @since 0.6.3m2
28
+ */
29
+package com.dmdirc.parser.interfaces.callbacks;

Loading…
Cancel
Save