Browse Source

Delete callback interfaces.

pull/74/head
Chris Smith 9 years ago
parent
commit
861b7f4e33
93 changed files with 10 additions and 3432 deletions
  1. 0
    43
      common/src/com/dmdirc/parser/interfaces/callbacks/AuthNoticeListener.java
  2. 0
    46
      common/src/com/dmdirc/parser/interfaces/callbacks/AwayStateListener.java
  3. 0
    28
      common/src/com/dmdirc/parser/interfaces/callbacks/CallbackInterface.java
  4. 0
    61
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelActionListener.java
  5. 0
    61
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelCtcpListener.java
  6. 0
    61
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelCtcpReplyListener.java
  7. 0
    50
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelJoinListener.java
  8. 0
    60
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelKickListener.java
  9. 0
    49
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelListModeListener.java
  10. 0
    59
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelMessageListener.java
  11. 0
    59
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelModeChangeListener.java
  12. 0
    62
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelModeMessageListener.java
  13. 0
    62
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelModeNoticeListener.java
  14. 0
    46
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelNamesListener.java
  15. 0
    51
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelNickChangeListener.java
  16. 0
    60
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelNonUserModeChangeListener.java
  17. 0
    59
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelNoticeListener.java
  18. 0
    52
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelOtherAwayStateListener.java
  19. 0
    52
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelPartListener.java
  20. 0
    52
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelQuitListener.java
  21. 0
    46
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelSelfJoinListener.java
  22. 0
    61
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelSingleModeChangeListener.java
  23. 0
    48
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelTopicListener.java
  24. 0
    60
      common/src/com/dmdirc/parser/interfaces/callbacks/ChannelUserModeChangeListener.java
  25. 0
    47
      common/src/com/dmdirc/parser/interfaces/callbacks/CompositionStateChangeListener.java
  26. 0
    44
      common/src/com/dmdirc/parser/interfaces/callbacks/ConnectErrorListener.java
  27. 0
    43
      common/src/com/dmdirc/parser/interfaces/callbacks/DataInListener.java
  28. 0
    44
      common/src/com/dmdirc/parser/interfaces/callbacks/DataOutListener.java
  29. 0
    44
      common/src/com/dmdirc/parser/interfaces/callbacks/DebugInfoListener.java
  30. 0
    44
      common/src/com/dmdirc/parser/interfaces/callbacks/ErrorInfoListener.java
  31. 0
    43
      common/src/com/dmdirc/parser/interfaces/callbacks/GroupListEndListener.java
  32. 0
    47
      common/src/com/dmdirc/parser/interfaces/callbacks/GroupListEntryListener.java
  33. 0
    43
      common/src/com/dmdirc/parser/interfaces/callbacks/GroupListStartListener.java
  34. 0
    44
      common/src/com/dmdirc/parser/interfaces/callbacks/InviteListener.java
  35. 0
    44
      common/src/com/dmdirc/parser/interfaces/callbacks/MotdEndListener.java
  36. 0
    43
      common/src/com/dmdirc/parser/interfaces/callbacks/MotdLineListener.java
  37. 0
    43
      common/src/com/dmdirc/parser/interfaces/callbacks/MotdStartListener.java
  38. 0
    47
      common/src/com/dmdirc/parser/interfaces/callbacks/NetworkDetectedListener.java
  39. 0
    47
      common/src/com/dmdirc/parser/interfaces/callbacks/NickChangeListener.java
  40. 0
    43
      common/src/com/dmdirc/parser/interfaces/callbacks/NickInUseListener.java
  41. 0
    44
      common/src/com/dmdirc/parser/interfaces/callbacks/NumericListener.java
  42. 0
    50
      common/src/com/dmdirc/parser/interfaces/callbacks/OtherAwayStateListener.java
  43. 0
    42
      common/src/com/dmdirc/parser/interfaces/callbacks/PasswordRequiredListener.java
  44. 0
    42
      common/src/com/dmdirc/parser/interfaces/callbacks/PingFailureListener.java
  45. 0
    42
      common/src/com/dmdirc/parser/interfaces/callbacks/PingSentListener.java
  46. 0
    42
      common/src/com/dmdirc/parser/interfaces/callbacks/PingSuccessListener.java
  47. 0
    48
      common/src/com/dmdirc/parser/interfaces/callbacks/PrivateActionListener.java
  48. 0
    51
      common/src/com/dmdirc/parser/interfaces/callbacks/PrivateCtcpListener.java
  49. 0
    50
      common/src/com/dmdirc/parser/interfaces/callbacks/PrivateCtcpReplyListener.java
  50. 0
    50
      common/src/com/dmdirc/parser/interfaces/callbacks/PrivateMessageListener.java
  51. 0
    49
      common/src/com/dmdirc/parser/interfaces/callbacks/PrivateNoticeListener.java
  52. 0
    47
      common/src/com/dmdirc/parser/interfaces/callbacks/QuitListener.java
  53. 0
    43
      common/src/com/dmdirc/parser/interfaces/callbacks/ServerErrorListener.java
  54. 0
    48
      common/src/com/dmdirc/parser/interfaces/callbacks/ServerNoticeListener.java
  55. 0
    42
      common/src/com/dmdirc/parser/interfaces/callbacks/ServerReadyListener.java
  56. 0
    41
      common/src/com/dmdirc/parser/interfaces/callbacks/SocketCloseListener.java
  57. 0
    45
      common/src/com/dmdirc/parser/interfaces/callbacks/UnknownActionListener.java
  58. 0
    51
      common/src/com/dmdirc/parser/interfaces/callbacks/UnknownCtcpListener.java
  59. 0
    50
      common/src/com/dmdirc/parser/interfaces/callbacks/UnknownCtcpReplyListener.java
  60. 0
    45
      common/src/com/dmdirc/parser/interfaces/callbacks/UnknownMessageListener.java
  61. 0
    49
      common/src/com/dmdirc/parser/interfaces/callbacks/UnknownNoticeListener.java
  62. 0
    46
      common/src/com/dmdirc/parser/interfaces/callbacks/UnknownServerNoticeListener.java
  63. 0
    50
      common/src/com/dmdirc/parser/interfaces/callbacks/UserModeChangeListener.java
  64. 0
    47
      common/src/com/dmdirc/parser/interfaces/callbacks/UserModeDiscoveryListener.java
  65. 0
    46
      common/src/com/dmdirc/parser/interfaces/callbacks/WallDesyncListener.java
  66. 0
    46
      common/src/com/dmdirc/parser/interfaces/callbacks/WallopListener.java
  67. 0
    47
      common/src/com/dmdirc/parser/interfaces/callbacks/WalluserListener.java
  68. 0
    29
      common/src/com/dmdirc/parser/interfaces/callbacks/package-info.java
  69. 0
    28
      irc/src/com/dmdirc/parser/irc/IRCParser.java
  70. 0
    2
      irc/src/com/dmdirc/parser/irc/ProcessingManager.java
  71. 2
    3
      irc/src/com/dmdirc/parser/irc/SimpleNickInUseHandler.java
  72. 2
    3
      irc/src/com/dmdirc/parser/irc/SimplePingFailureHandler.java
  73. 0
    5
      irc/src/com/dmdirc/parser/irc/processors/IRCProcessor.java
  74. 0
    3
      irc/src/com/dmdirc/parser/irc/processors/Process004005.java
  75. 0
    3
      irc/src/com/dmdirc/parser/irc/processors/Process464.java
  76. 0
    2
      irc/src/com/dmdirc/parser/irc/processors/ProcessAway.java
  77. 0
    2
      irc/src/com/dmdirc/parser/irc/processors/ProcessInvite.java
  78. 0
    4
      irc/src/com/dmdirc/parser/irc/processors/ProcessJoin.java
  79. 0
    2
      irc/src/com/dmdirc/parser/irc/processors/ProcessKick.java
  80. 0
    2
      irc/src/com/dmdirc/parser/irc/processors/ProcessListModes.java
  81. 0
    6
      irc/src/com/dmdirc/parser/irc/processors/ProcessMOTD.java
  82. 0
    38
      irc/src/com/dmdirc/parser/irc/processors/ProcessMessage.java
  83. 0
    8
      irc/src/com/dmdirc/parser/irc/processors/ProcessMode.java
  84. 0
    4
      irc/src/com/dmdirc/parser/irc/processors/ProcessNames.java
  85. 0
    4
      irc/src/com/dmdirc/parser/irc/processors/ProcessNick.java
  86. 0
    2
      irc/src/com/dmdirc/parser/irc/processors/ProcessNickInUse.java
  87. 0
    2
      irc/src/com/dmdirc/parser/irc/processors/ProcessNoticeAuth.java
  88. 0
    2
      irc/src/com/dmdirc/parser/irc/processors/ProcessPart.java
  89. 0
    4
      irc/src/com/dmdirc/parser/irc/processors/ProcessQuit.java
  90. 0
    2
      irc/src/com/dmdirc/parser/irc/processors/ProcessTopic.java
  91. 0
    6
      irc/src/com/dmdirc/parser/irc/processors/ProcessWallops.java
  92. 0
    6
      irc/src/com/dmdirc/parser/irc/processors/ProcessWho.java
  93. 6
    9
      xmpp/src/com/dmdirc/parser/xmpp/XmppParser.java

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Interface Used on every incomming line before 001.
31
- */
32
-public interface AuthNoticeListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called on every incomming line before 001.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     * @param data Incomming Line.
40
-     */
41
-    void onNoticeAuth(Parser parser, Date date, String data);
42
-
43
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.common.AwayState;
26
-import com.dmdirc.parser.interfaces.Parser;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called when we go away, or come back.
32
- */
33
-public interface AwayStateListener extends CallbackInterface {
34
-
35
-    /**
36
-     * Called when we go away, or come back.
37
-     *
38
-     * @param parser Reference to the parser object that made the callback.
39
-     * @param date The date/time at which the event occured
40
-     * @param oldState Old Away State
41
-     * @param currentState Current Away State
42
-     * @param reason Best guess at away reason
43
-     */
44
-    void onAwayState(Parser parser, Date date, AwayState oldState,
45
-            AwayState currentState, String reason);
46
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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 { }

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

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

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

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

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

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

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ChannelClientInfo;
26
-import com.dmdirc.parser.interfaces.ChannelInfo;
27
-import com.dmdirc.parser.interfaces.Parser;
28
-import com.dmdirc.parser.interfaces.SpecificCallback;
29
-
30
-import java.util.Date;
31
-
32
-/**
33
- * Called When we, or another client joins a channel.
34
- * This is called AFTER client has been added to channel as a ChannelClientInfo
35
- */
36
-@SpecificCallback
37
-public interface ChannelJoinListener extends CallbackInterface {
38
-
39
-    /**
40
-     * Called When another client joins a channel.
41
-     * This is called AFTER client has been added to channel as a ChannelClientInfo
42
-     *
43
-     * @param parser Reference to the parser object that made the callback.
44
-     * @param date The date/time at which the event occured
45
-     * @param channel Channel Object
46
-     * @param client ChannelClient object for new person
47
-     */
48
-    void onChannelJoin(Parser parser, Date date, ChannelInfo channel, ChannelClientInfo client);
49
-
50
-}

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

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

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ChannelInfo;
26
-import com.dmdirc.parser.interfaces.Parser;
27
-import com.dmdirc.parser.interfaces.SpecificCallback;
28
-
29
-import java.util.Date;
30
-
31
-/**
32
- * Called when all requested ListModes have been sent.
33
- * This is decided by ProcessListModes, and is called when an "end of list"
34
- * reply is sent, and the listModeQueue is empty (or non-existant).
35
- */
36
-@SpecificCallback
37
-public interface ChannelListModeListener extends CallbackInterface {
38
-
39
-    /**
40
-     * Called when a ListModes reply is parsed.
41
-     *
42
-     * @param parser Reference to the parser object that made the callback.
43
-     * @param date The date/time at which the event occured
44
-     * @param channel Channel which the ListModes reply is for
45
-     * @param mode the Mode the ListMOdes reply is for.
46
-     */
47
-    void onChannelGotListModes(Parser parser, Date date, ChannelInfo channel, char mode);
48
-
49
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ChannelClientInfo;
26
-import com.dmdirc.parser.interfaces.ChannelInfo;
27
-import com.dmdirc.parser.interfaces.FakableArgument;
28
-import com.dmdirc.parser.interfaces.FakableSource;
29
-import com.dmdirc.parser.interfaces.Parser;
30
-import com.dmdirc.parser.interfaces.SpecificCallback;
31
-
32
-import java.util.Date;
33
-
34
-/**
35
- * Called when a person sends a message to a channel.
36
- * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
37
- * cChannelClient is null if user is a server, or not on the channel.
38
- */
39
-@SpecificCallback
40
-public interface ChannelMessageListener extends CallbackInterface {
41
-
42
-    /**
43
-     * Called when a person sends a message to a channel.
44
-     * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
45
-     * cChannelClient is null if user is a server, or not on the channel.
46
-     *
47
-     * @param parser Reference to the parser object that made the callback.
48
-     * @param date The date/time at which the event occured
49
-     * @param channel Channel where the message was sent to
50
-     * @param client ChannelClient who sent the message (may be null if server)
51
-     * @param message Message contents
52
-     * @param host Hostname of sender (or servername)
53
-     */
54
-    void onChannelMessage(@FakableSource Parser parser, Date date,
55
-            @FakableSource ChannelInfo channel,
56
-            @FakableArgument ChannelClientInfo client,
57
-            String message,
58
-            @FakableSource String host);
59
-}

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

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

+ 0
- 62
common/src/com/dmdirc/parser/interfaces/callbacks/ChannelModeMessageListener.java View File

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

+ 0
- 62
common/src/com/dmdirc/parser/interfaces/callbacks/ChannelModeNoticeListener.java View File

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

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ChannelInfo;
26
-import com.dmdirc.parser.interfaces.Parser;
27
-import com.dmdirc.parser.interfaces.SpecificCallback;
28
-
29
-import java.util.Date;
30
-
31
-/**
32
- * Called when a names reply is parsed.
33
- */
34
-@SpecificCallback
35
-public interface ChannelNamesListener extends CallbackInterface {
36
-
37
-    /**
38
-     * Called when a names reply is parsed.
39
-     *
40
-     * @param parser Reference to the parser object that made the callback.
41
-     * @param date The date/time at which the event occured
42
-     * @param channel Channel which the names reply is for
43
-     */
44
-    void onChannelGotNames(Parser parser, Date date, ChannelInfo channel);
45
-
46
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ChannelClientInfo;
26
-import com.dmdirc.parser.interfaces.ChannelInfo;
27
-import com.dmdirc.parser.interfaces.Parser;
28
-import com.dmdirc.parser.interfaces.SpecificCallback;
29
-
30
-import java.util.Date;
31
-
32
-/**
33
- * Called when we or another user change nickname (Called once per channel the user is on).
34
- * This is called after the nickname change has been done internally
35
- */
36
-@SpecificCallback
37
-public interface ChannelNickChangeListener extends CallbackInterface {
38
-
39
-    /**
40
-     * Called when we or another user change nickname (Called once per channel the user is on).
41
-     * This is called after the nickname change has been done internally
42
-     *
43
-     * @param parser Reference to the parser object that made the callback.
44
-     * @param date The date/time at which the event occured
45
-     * @param channel One of the channels that the user is on
46
-     * @param client Client changing nickname
47
-     * @param oldNick Nickname before change
48
-     */
49
-    void onChannelNickChanged(Parser parser, Date date, ChannelInfo channel,
50
-            ChannelClientInfo client, String oldNick);
51
-}

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

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

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ChannelClientInfo;
26
-import com.dmdirc.parser.interfaces.ChannelInfo;
27
-import com.dmdirc.parser.interfaces.FakableArgument;
28
-import com.dmdirc.parser.interfaces.FakableSource;
29
-import com.dmdirc.parser.interfaces.Parser;
30
-import com.dmdirc.parser.interfaces.SpecificCallback;
31
-
32
-import java.util.Date;
33
-
34
-/**
35
- * Called when a person sends a notice to a channel.
36
- * sHost is the hostname of the person sending the notice. (Can be a server or a person)<br>
37
- * cChannelClient is null if user is a server, or not on the channel.
38
- */
39
-@SpecificCallback
40
-public interface ChannelNoticeListener extends CallbackInterface {
41
-
42
-    /**
43
-     * Called when a person sends a notice to a channel.
44
-     * sHost is the hostname of the person sending the notice. (Can be a server or a person)<br>
45
-     * cChannelClient is null if user is a server, or not on the channel.
46
-     *
47
-     * @param parser Reference to the parser object that made the callback.
48
-     * @param date The date/time at which the event occured
49
-     * @param channel Channel where the notice was sent to
50
-     * @param client ChannelClient who sent the notice (may be null if server)
51
-     * @param message notice contents
52
-     * @param host Hostname of sender (or servername)
53
-     */
54
-    void onChannelNotice(@FakableSource Parser parser, Date date,
55
-            @FakableSource ChannelInfo channel,
56
-            @FakableArgument ChannelClientInfo client,
57
-            String message,
58
-            @FakableSource String host);
59
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.common.AwayState;
26
-import com.dmdirc.parser.interfaces.ChannelClientInfo;
27
-import com.dmdirc.parser.interfaces.ChannelInfo;
28
-import com.dmdirc.parser.interfaces.Parser;
29
-import com.dmdirc.parser.interfaces.SpecificCallback;
30
-
31
-import java.util.Date;
32
-
33
-/**
34
- * Called when we go away, or come back.
35
- */
36
-@SpecificCallback
37
-public interface ChannelOtherAwayStateListener extends CallbackInterface {
38
-
39
-    /**
40
-     * Called when we go away, or come back.
41
-     *
42
-     * @param parser Reference to the parser object that made the callback.
43
-     * @param date The date/time at which the event occured
44
-     * @param channel Channel this is for
45
-     * @param client Client this is for
46
-     * @param oldState Old Away State
47
-     * @param state Current Away State
48
-     */
49
-    void onChannelAwayStateOther(Parser parser, Date date, ChannelInfo channel,
50
-            ChannelClientInfo client, AwayState oldState, AwayState state);
51
-
52
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ChannelClientInfo;
26
-import com.dmdirc.parser.interfaces.ChannelInfo;
27
-import com.dmdirc.parser.interfaces.Parser;
28
-import com.dmdirc.parser.interfaces.SpecificCallback;
29
-
30
-import java.util.Date;
31
-
32
-/**
33
- * Called When we, or another client parts a channel.
34
- * This is called BEFORE client has been removed from the channel.
35
- */
36
-@SpecificCallback
37
-public interface ChannelPartListener extends CallbackInterface {
38
-
39
-    /**
40
-     * Called When we, or another client parts a channel.
41
-     * This is called BEFORE client has been removed from the channel.
42
-     *
43
-     * @param parser Reference to the parser object that made the callback.
44
-     * @param date The date/time at which the event occured
45
-     * @param channel Channel that the user parted
46
-     * @param client Client that parted
47
-     * @param reason Reason given for parting (May be "")
48
-     */
49
-    void onChannelPart(Parser parser, Date date, ChannelInfo channel,
50
-            ChannelClientInfo client, String reason);
51
-
52
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ChannelClientInfo;
26
-import com.dmdirc.parser.interfaces.ChannelInfo;
27
-import com.dmdirc.parser.interfaces.Parser;
28
-import com.dmdirc.parser.interfaces.SpecificCallback;
29
-
30
-import java.util.Date;
31
-
32
-/**
33
- * Called When we, or another client quits IRC (Called once per channel the user was on).
34
- * This is called BEFORE client has been removed from the channel.
35
- */
36
-@SpecificCallback
37
-public interface ChannelQuitListener extends CallbackInterface {
38
-
39
-    /**
40
-     * Called When we, or another client quits IRC (Called once per channel the user was on).
41
-     * This is called BEFORE client has been removed from the channel.
42
-     *
43
-     * @param parser Reference to the parser object that made the callback.
44
-     * @param date The date/time at which the event occured
45
-     * @param channel Channel that user was on
46
-     * @param client User thats quitting
47
-     * @param reason Quit reason
48
-     */
49
-    void onChannelQuit(Parser parser, Date date, ChannelInfo channel,
50
-            ChannelClientInfo client, String reason);
51
-
52
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ChannelInfo;
26
-import com.dmdirc.parser.interfaces.Parser;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called When we join a channel.
32
- * We are NOT added as a channelclient until after the names reply
33
- */
34
-public interface ChannelSelfJoinListener extends CallbackInterface {
35
-
36
-    /**
37
-     * Called When we join a channel.
38
-     * We are NOT added as a channelclient until after the names reply
39
-     *
40
-     * @param parser Reference to the parser object that made the callback.
41
-     * @param date The date/time at which the event occured
42
-     * @param channel Channel Object
43
-     */
44
-    void onChannelSelfJoin(Parser parser, Date date, ChannelInfo channel);
45
-
46
-}

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

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

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ChannelInfo;
26
-import com.dmdirc.parser.interfaces.Parser;
27
-import com.dmdirc.parser.interfaces.SpecificCallback;
28
-
29
-import java.util.Date;
30
-
31
-/**
32
- * Called when the topic is changed or discovered for the first time.
33
- */
34
-@SpecificCallback
35
-public interface ChannelTopicListener extends CallbackInterface {
36
-
37
-    /**
38
-     * Called when the topic is changed or discovered for the first time.
39
-     * bIsNewTopic is true if someone sets the topic, false if the topic is discovered on join
40
-     *
41
-     * @param parser Reference to the parser object that made the callback.
42
-     * @param date The date/time at which the event occured
43
-     * @param channel Channel that topic was set on
44
-     * @param isJoinTopic True when getting topic on join, false if set by user/server
45
-     */
46
-    void onChannelTopic(Parser parser, Date date, ChannelInfo channel, boolean isJoinTopic);
47
-
48
-}

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

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

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.common.CompositionState;
26
-import com.dmdirc.parser.interfaces.Parser;
27
-import com.dmdirc.parser.interfaces.SpecificCallback;
28
-
29
-import java.util.Date;
30
-
31
-/**
32
- * Called when a person's composition state canes.
33
- */
34
-@SpecificCallback
35
-public interface CompositionStateChangeListener extends CallbackInterface {
36
-
37
-    /**
38
-     * Called when a person's composition state changes
39
-     *
40
-     * @param parser Reference to the parser object that made the callback.
41
-     * @param date The date/time at which the event occurred
42
-     * @param state The new composition state
43
-     * @param host Hostname of sender (or servername)
44
-     */
45
-    void onCompositionStateChanged(Parser parser, Date date, CompositionState state, String host);
46
-
47
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.common.ParserError;
26
-import com.dmdirc.parser.interfaces.Parser;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called to give Error Information related to a connection attempt.
32
- */
33
-public interface ConnectErrorListener extends CallbackInterface {
34
-
35
-    /**
36
-     * Called to give Error Information related to a connection attempt.
37
-     *
38
-     * @param parser Reference to the parser object that made the callback.
39
-     * @param date The date/time at which the event occured
40
-     * @param errorInfo ParserError object representing the error.
41
-     */
42
-    void onConnectError(Parser parser, Date date, ParserError errorInfo);
43
-
44
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Interface Used on every incomming line BEFORE parsing.
31
- */
32
-public interface DataInListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called on every incomming line BEFORE parsing.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     * @param data Incomming Line.
40
-     */
41
-    void onDataIn(Parser parser, Date date, String data);
42
-
43
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called on every incomming line BEFORE being sent.
31
- */
32
-public interface DataOutListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called on every incomming line BEFORE being sent.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     * @param data Outgoing Data
40
-     * @param fromParser True if parser sent the data, false if sent using .sendLine
41
-     */
42
-    void onDataOut(Parser parser, Date date, String data, boolean fromParser);
43
-
44
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Interface Used to give Debug Information.
31
- */
32
-public interface DebugInfoListener extends CallbackInterface {
33
-
34
-    /**
35
-     * This callback is used to provide occasional debug information from the parser.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     * @param level Debugging Level (ndInfo, ndSocket etc)
40
-     * @param data Debugging Information
41
-     */
42
-    void onDebugInfo(Parser parser, Date date, int level, String data);
43
-
44
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.common.ParserError;
26
-import com.dmdirc.parser.interfaces.Parser;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called to give Error Information.
32
- */
33
-public interface ErrorInfoListener extends CallbackInterface {
34
-
35
-    /**
36
-     * Called to give Error Information.
37
-     *
38
-     * @param parser Reference to the parser object that made the callback.
39
-     * @param date The date/time at which the event occured
40
-     * @param errorInfo ParserError object representing the error.
41
-     */
42
-    void onErrorInfo(Parser parser, Date date, ParserError errorInfo);
43
-
44
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Callback interface for when the parser receives the end of a group list
31
- * response.
32
- */
33
-public interface GroupListEndListener extends CallbackInterface {
34
-
35
-    /**
36
-     * Called when the end of a group list has been received.
37
-     *
38
-     * @param parser The parser raising the event
39
-     * @param date The date at which the event occurred
40
-     */
41
-    void onGroupListEnd(Parser parser, Date date);
42
-
43
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Callback interface for when the parser receives an entry during a group
31
- * list response.
32
- */
33
-public interface GroupListEntryListener extends CallbackInterface {
34
-
35
-    /**
36
-     * Called when a single group entry has been received.
37
-     *
38
-     * @param parser The parser raising the event
39
-     * @param date The date at which the event occurred
40
-     * @param name The name of the channel
41
-     * @param users The number of users in the channel
42
-     * @param topic The topic of the channel
43
-     */
44
-    void onGroupListEntry(Parser parser, Date date, String name, int users,
45
-            String topic);
46
-
47
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Callback interface for when the parser receives the start of a group list
31
- * response.
32
- */
33
-public interface GroupListStartListener extends CallbackInterface {
34
-
35
-    /**
36
-     * Called when the start of a group list has been received.
37
-     *
38
-     * @param parser The parser raising the event
39
-     * @param date The date at which the event occurred
40
-     */
41
-    void onGroupListStart(Parser parser, Date date);
42
-
43
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called when we are invited to a channel.
31
- */
32
-public interface InviteListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called when we are invited to a channel.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     * @param userHost Hostname of user who invited us
40
-     * @param channel Channel we were invited to
41
-     */
42
-    void onInvite(Parser parser, Date date, String userHost, String channel);
43
-
44
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called when "End of MOTD" or "No MOTD" is received.
31
- */
32
-public interface MotdEndListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called when "End of MOTD" or "No MOTD".
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     * @param noMOTD Set to true if this was a "No MOTD Found" message rather than an "End of MOTD"
40
-     * @param data The contents of the line (incase of language changes or so)
41
-     */
42
-    void onMOTDEnd(Parser parser, Date date, boolean noMOTD, String data);
43
-
44
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Interface Used to give MOTD Information.
31
- */
32
-public interface MotdLineListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called on every incomming line from the MOTD.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     * @param data Incomming Line.
40
-     */
41
-    void onMOTDLine(Parser parser, Date date, String data);
42
-
43
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Interface Used when the MOTD Starts.
31
- */
32
-public interface MotdStartListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called on MOTD Start.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     * @param data Incomming Line.
40
-     */
41
-    void onMOTDStart(Parser parser, Date date, String data);
42
-
43
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Interface Used when the Network=blah 005 token is recieved.
31
- */
32
-public interface NetworkDetectedListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called when the Network=blah 005 token is recieved.
36
-     * if NETWORK= is not sent in 005, this will not be called.
37
-     *
38
-     * @param parser Reference to the parser object that made the callback.
39
-     * @param date The date/time at which the event occured
40
-     * @param networkName The name of the network.
41
-     * @param ircdVersion The version of the ircd.
42
-     * @param ircdType The Guessed type of the ircd based on the name.
43
-     */
44
-    void onGotNetwork(Parser parser, Date date, String networkName,
45
-            String ircdVersion, String ircdType);
46
-
47
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ClientInfo;
26
-import com.dmdirc.parser.interfaces.Parser;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called when we or another user change nickname.
32
- * This is called after the nickname change has been done internally
33
- */
34
-public interface NickChangeListener extends CallbackInterface {
35
-
36
-    /**
37
-     * Called when we or another user change nickname.
38
-     * This is called after the nickname change has been done internally
39
-     *
40
-     * @param parser Reference to the parser object that made the callback.
41
-     * @param date The date/time at which the event occured
42
-     * @param client Client changing nickname
43
-     * @param oldNick Nickname before change
44
-     */
45
-    void onNickChanged(Parser parser, Date date, ClientInfo client, String oldNick);
46
-
47
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called when requested nickname is in use.
31
- */
32
-public interface NickInUseListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called when requested nickname is in use.
36
-     *
37
-     * @param nickname Nickname that was wanted.
38
-     * @param date The date/time at which the event occured
39
-     * @param parser Reference to the parser object that made the callback.
40
-     */
41
-    void onNickInUse(Parser parser, Date date, String nickname);
42
-
43
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Interface Used to give numeric Information.
31
- */
32
-public interface NumericListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called on every incomming line with a numerical type.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     * @param numeric What numeric is this for
40
-     * @param token IRC Tokenised line
41
-     */
42
-    void onNumeric(Parser parser, Date date, int numeric, String[] token);
43
-
44
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.common.AwayState;
26
-import com.dmdirc.parser.interfaces.ClientInfo;
27
-import com.dmdirc.parser.interfaces.Parser;
28
-import com.dmdirc.parser.interfaces.SpecificCallback;
29
-
30
-import java.util.Date;
31
-
32
-/**
33
- * Called when we go away, or come back.
34
- */
35
-@SpecificCallback
36
-public interface OtherAwayStateListener extends CallbackInterface {
37
-
38
-    /**
39
-     * Called when we go away, or come back.
40
-     *
41
-     * @param parser Reference to the parser object that made the callback.
42
-     * @param date The date/time at which the event occurred
43
-     * @param client Client this is for
44
-     * @param oldState Old Away State
45
-     * @param state Current Away State
46
-     */
47
-    void onAwayStateOther(Parser parser, Date date, ClientInfo client,
48
-            AwayState oldState, AwayState state);
49
-
50
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Interface Used when a raw 464 is recieved.
31
- */
32
-public interface PasswordRequiredListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called when a raw 464 is recieved.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     */
40
-    void onPasswordRequired(Parser parser, Date date);
41
-
42
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called when a Ping Failed.
31
- */
32
-public interface PingFailureListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called when a ping failed.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occurred
39
-     */
40
-    void onPingFailed(Parser parser, Date date);
41
-
42
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called when a Ping was Sent.
31
- */
32
-public interface PingSentListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called when a ping was Sent.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occurred
39
-     */
40
-    void onPingSent(Parser parser, Date date);
41
-
42
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called when a Ping was a Success.
31
- */
32
-public interface PingSuccessListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called when a ping was a Success.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occurred
39
-     */
40
-    void onPingSuccess(Parser parser, Date date);
41
-
42
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-import com.dmdirc.parser.interfaces.SpecificCallback;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called when a person does an action to you (PM).
32
- */
33
-@SpecificCallback
34
-public interface PrivateActionListener extends CallbackInterface {
35
-
36
-    /**
37
-     * Called when a person does an action to you (PM).
38
-     * sHost is the hostname of the person sending the action. (Can be a server or a person)<br>
39
-     * cClient is null if user is a server, or not on any common channel.
40
-     *
41
-     * @param parser Reference to the parser object that made the callback.
42
-     * @param date The date/time at which the event occured
43
-     * @param message action contents
44
-     * @param host Hostname of sender (or servername)
45
-     */
46
-    void onPrivateAction(Parser parser, Date date, String message, String host);
47
-
48
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-import com.dmdirc.parser.interfaces.SpecificCallback;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called when a person sends a CTCP to you directly.
32
- * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
33
- * cClient is null if user is a server, or not on any common channels.
34
- */
35
-@SpecificCallback
36
-public interface PrivateCtcpListener extends CallbackInterface {
37
-
38
-    /**
39
-     * Called when a person sends a CTCP to you directly.
40
-     * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
41
-     * cClient is null if user is a server, or not on any common channels.
42
-     *
43
-     * @param parser Reference to the parser object that made the callback.
44
-     * @param date The date/time at which the event occured
45
-     * @param type Type of CTCP (VERSION, TIME etc)
46
-     * @param message Additional contents
47
-     * @param host Hostname of sender (or servername)
48
-     */
49
-    void onPrivateCTCP(Parser parser, Date date, String type, String message, String host);
50
-
51
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-import com.dmdirc.parser.interfaces.SpecificCallback;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called when a person sends a CTCPRReply to you directly.
32
- * sHost is the hostname of the person sending the CTCPRReply. (Can be a server or a person)<br>
33
- * cClient is null if user is a server, or not on any common channels.
34
- */
35
-@SpecificCallback
36
-public interface PrivateCtcpReplyListener extends CallbackInterface {
37
-
38
-    /**
39
-     * Called when a person sends a CTCPRReply to you directly.
40
-     * sHost is the hostname of the person sending the CTCPRReply. (Can be a server or a person)<br>
41
-     * cClient is null if user is a server, or not on any common channels.
42
-     *
43
-     * @param parser Reference to the parser object that made the callback.
44
-     * @param date The date/time at which the event occured
45
-     * @param type Type of CTCPRReply (VERSION, TIME etc)
46
-     * @param message Reply Contents
47
-     * @param host Hostname of sender (or servername)
48
-     */
49
-    void onPrivateCTCPReply(Parser parser, Date date, String type, String message, String host);
50
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-import com.dmdirc.parser.interfaces.SpecificCallback;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called when a person sends a message to you directly (PM).
32
- * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
33
- * cClient is null if user is a server, or not on any common channel.
34
- */
35
-@SpecificCallback
36
-public interface PrivateMessageListener extends CallbackInterface {
37
-
38
-    /**
39
-     * Called when a person sends a message to you directly (PM).
40
-     * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
41
-     * cClient is null if user is a server, or not on any common channel.
42
-     *
43
-     * @param parser Reference to the parser object that made the callback.
44
-     * @param date The date/time at which the event occured
45
-     * @param message Message contents
46
-     * @param host Hostname of sender (or servername)
47
-     */
48
-    void onPrivateMessage(Parser parser, Date date, String message, String host);
49
-
50
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-import com.dmdirc.parser.interfaces.SpecificCallback;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called when a person sends a notice to you.
32
- * sHost is the hostname of the person sending the notice. (Can be a server or a person)<br>
33
- * cClient is null if user is a server, or not on any common channel.
34
- */
35
-@SpecificCallback
36
-public interface PrivateNoticeListener extends CallbackInterface {
37
-
38
-    /**
39
-     * Called when a person sends a notice to you.
40
-     * sHost is the hostname of the person sending the notice. (Can be a server or a person)<br>
41
-     * cClient is null if user is a server, or not on any common channel.
42
-     *
43
-     * @param parser Reference to the parser object that made the callback.
44
-     * @param date The date/time at which the event occured
45
-     * @param message Notice contents
46
-     * @param host Hostname of sender (or servername)
47
-     */
48
-    void onPrivateNotice(Parser parser, Date date, String message, String host);
49
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ClientInfo;
26
-import com.dmdirc.parser.interfaces.Parser;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called When we, or another client quits IRC (Called once in total).
32
- * This is called BEFORE client has been removed from the channel.
33
- */
34
-public interface QuitListener extends CallbackInterface {
35
-
36
-    /**
37
-     * Called When we, or another client quits IRC (Called once in total).
38
-     * This is called BEFORE client has been removed from the channel.
39
-     *
40
-     * @param parser Reference to the parser object that made the callback.
41
-     * @param date The date/time at which the event occured
42
-     * @param client Client Quitting
43
-     * @param reason Reason for quitting (may be "")
44
-     */
45
-    void onQuit(Parser parser, Date date, ClientInfo client, String reason);
46
-
47
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Interface Used to give ServerError.
31
- */
32
-public interface ServerErrorListener extends CallbackInterface {
33
-
34
-    /**
35
-     * This callback is used to give messages the server sends as an ERROR.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     * @param message Error Information
40
-     */
41
-    void onServerError(Parser parser, Date date, String message);
42
-
43
-}

+ 0
- 48
common/src/com/dmdirc/parser/interfaces/callbacks/ServerNoticeListener.java View File

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-import com.dmdirc.parser.interfaces.SpecificCallback;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called when a server sends a notice to you.
32
- * sHost is the hostname of the server sending the notice.<br>
33
- */
34
-@SpecificCallback
35
-public interface ServerNoticeListener extends CallbackInterface {
36
-
37
-    /**
38
-     * Called when a server sends a notice to you.
39
-     * sHost is the hostname of the server sending the notice.<br>
40
-     *
41
-     * @param parser Reference to the parser object that made the callback.
42
-     * @param date The date/time at which the event occured
43
-     * @param message Notice contents
44
-     * @param host Hostname of sender
45
-     */
46
-    void onServerNotice(Parser parser, Date date, String message, String host);
47
-
48
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called after 001.
31
- */
32
-public interface ServerReadyListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called after 001.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occurred
39
-     */
40
-    void onServerReady(Parser parser, Date date);
41
-
42
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called when the socket is closed.
31
- */
32
-public interface SocketCloseListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called when the socket is closed.
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     */
40
-    void onSocketClosed(Parser parser, Date date);
41
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called when a person sends an action not aimed specifically at you or a channel (ie $*).
31
- */
32
-public interface UnknownActionListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called when a person sends an action not aimed specifically at you or a channel (ie $*).
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     * @param message Action contents
40
-     * @param target Actual target of action
41
-     * @param host Hostname of sender (or servername)
42
-     */
43
-    void onUnknownAction(Parser parser, Date date, String message,
44
-            String target, String host);
45
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called when a person sends a CTCP not aimed at you or a channel (ie $*).
31
- * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
32
- * cClient is null if user is a server, or not on any common channels.
33
- */
34
-public interface UnknownCtcpListener extends CallbackInterface {
35
-
36
-    /**
37
-     * Called when a person sends a CTCP not aimed at you or a channel (ie $*).
38
-     * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
39
-     * cClient is null if user is a server, or not on any common channels.
40
-     *
41
-     * @param parser Reference to the parser object that made the callback.
42
-     * @param date The date/time at which the event occured
43
-     * @param type Type of CTCP (VERSION, TIME etc)
44
-     * @param message Additional contents
45
-     * @param target Actual Target of CTCP
46
-     * @param host Hostname of sender (or servername)
47
-     */
48
-    void onUnknownCTCP(Parser parser, Date date, String type, String message,
49
-            String target, String host);
50
-
51
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called when a person sends a CTCP not aimed at you or a channel (ie $*).
31
- * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
32
- * cClient is null if user is a server, or not on any common channels.
33
- */
34
-public interface UnknownCtcpReplyListener extends CallbackInterface {
35
-
36
-    /**
37
-     * Called when a person sends a CTCP not aimed at you or a channel (ie $*).
38
-     * sHost is the hostname of the person sending the CTCP. (Can be a server or a person)<br>
39
-     * cClient is null if user is a server, or not on any common channels.
40
-     *
41
-     * @param parser Reference to the parser object that made the callback.
42
-     * @param date The date/time at which the event occured
43
-     * @param type Type of CTCPRReply (VERSION, TIME etc)
44
-     * @param message Reply Contents
45
-     * @param target Actual Target of CTCPReply
46
-     * @param host Hostname of sender (or servername)
47
-     */
48
-    void onUnknownCTCPReply(Parser parser, Date date, String type,
49
-            String message, String target, String host);
50
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called when a person sends a message not aimed specifically at you or a channel (ie $*).
31
- */
32
-public interface UnknownMessageListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called when a person sends a message not aimed specifically at you or a channel (ie $*).
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     * @param message Message contents
40
-     * @param target Actual target of message
41
-     * @param host Hostname of sender (or servername)
42
-     */
43
-    void onUnknownMessage(Parser parser, Date date, String message, String target, String host);
44
-
45
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called when a person sends a notice not aimed specifically at you or a channel (ie $*).
31
- * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
32
- * cClient is null if user is a server, or not on any common channel.
33
- */
34
-public interface UnknownNoticeListener extends CallbackInterface {
35
-
36
-    /**
37
-     * Called when a person sends a notice not aimed specifically at you or a channel (ie $*).
38
-     * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
39
-     * cClient is null if user is a server, or not on any common channel.
40
-     *
41
-     * @param parser Reference to the parser object that made the callback.
42
-     * @param date The date/time at which the event occured
43
-     * @param message Notice contents
44
-     * @param target Actual target of notice
45
-     * @param host Hostname of sender (or servername)
46
-     */
47
-    void onUnknownNotice(Parser parser, Date date, String message, String target, String host);
48
-
49
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-
27
-import java.util.Date;
28
-
29
-/**
30
- * Called when a server sends a notice not aimed specifically at you or a channel (ie $*).
31
- */
32
-public interface UnknownServerNoticeListener extends CallbackInterface {
33
-
34
-    /**
35
-     * Called when a server sends a notice not aimed specifically at you or a channel (ie $*).
36
-     *
37
-     * @param parser Reference to the parser object that made the callback.
38
-     * @param date The date/time at which the event occured
39
-     * @param message Notice contents
40
-     * @param target Actual target of notice
41
-     * @param host Hostname of sender
42
-     */
43
-    void onUnknownServerNotice(Parser parser, Date date, String message,
44
-            String target, String host);
45
-
46
-}

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

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

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.ClientInfo;
26
-import com.dmdirc.parser.interfaces.Parser;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called when user modes are Discovered.
32
- * cClient represents the user who's modes were Discovered (should ALWAYS be us)<br>
33
- * sSetby is the host of the person who set the mode (usually us, may be an oper or server in some cases)
34
- */
35
-public interface UserModeDiscoveryListener extends CallbackInterface {
36
-
37
-    /**
38
-     * Called when user modes are Discovered.
39
-     * cClient represents the user who's modes were Discovered (should ALWAYS be us)
40
-     *
41
-     * @param parser Reference to the parser object that made the callback.
42
-     * @param date The date/time at which the event occured
43
-     * @param client Client that had the mode changed (almost always us)
44
-     * @param modes The modes set.
45
-     */
46
-    void onUserModeDiscovered(Parser parser, Date date, ClientInfo client, String modes);
47
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-import com.dmdirc.parser.interfaces.SpecificCallback;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called when a Desync message is recieved over wallops.
32
- */
33
-@SpecificCallback
34
-public interface WallDesyncListener extends CallbackInterface {
35
-
36
-    /**
37
-     * Called when a Desync message is recieved over wallops.
38
-     *
39
-     * @param parser Reference to the parser object that made the callback.
40
-     * @param date The date/time at which the event occured
41
-     * @param message Message contents
42
-     * @param host Hostname of sender (or servername)
43
-     */
44
-    void onWallDesync(Parser parser, Date date, String message, String host);
45
-
46
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-import com.dmdirc.parser.interfaces.SpecificCallback;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called when an oper-only message is recieved over wallops.
32
- */
33
-@SpecificCallback
34
-public interface WallopListener extends CallbackInterface {
35
-
36
-    /**
37
-     * Called when an oper-only message is recieved over wallops.
38
-     *
39
-     * @param parser Reference to the parser object that made the callback.
40
-     * @param date The date/time at which the event occured
41
-     * @param message Message contents
42
-     * @param host Hostname of sender (or servername)
43
-     */
44
-    void onWallop(Parser parser, Date date, String message, String host);
45
-
46
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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.interfaces.Parser;
26
-import com.dmdirc.parser.interfaces.SpecificCallback;
27
-
28
-import java.util.Date;
29
-
30
-/**
31
- * Called when an all-users message is recieved over wallops.
32
- * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
33
- */
34
-@SpecificCallback
35
-public interface WalluserListener extends CallbackInterface {
36
-
37
-    /**
38
-     * Called when an all-users message is recieved over wallops.
39
-     * sHost is the hostname of the person sending the message. (Can be a server or a person)<br>
40
-     *
41
-     * @param parser Reference to the parser object that made the callback.
42
-     * @param date The date/time at which the event occured
43
-     * @param message Message contents
44
-     * @param host Hostname of sender (or servername)
45
-     */
46
-    void onWalluser(Parser parser, Date date, String message, String host);
47
-}

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

1
-/*
2
- * Copyright (c) 2006-2015 DMDirc Developers
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;

+ 0
- 28
irc/src/com/dmdirc/parser/irc/IRCParser.java View File

46
 import com.dmdirc.parser.interfaces.Encoder;
46
 import com.dmdirc.parser.interfaces.Encoder;
47
 import com.dmdirc.parser.interfaces.EncodingParser;
47
 import com.dmdirc.parser.interfaces.EncodingParser;
48
 import com.dmdirc.parser.interfaces.SecureParser;
48
 import com.dmdirc.parser.interfaces.SecureParser;
49
-import com.dmdirc.parser.interfaces.callbacks.ConnectErrorListener;
50
-import com.dmdirc.parser.interfaces.callbacks.DataInListener;
51
-import com.dmdirc.parser.interfaces.callbacks.DataOutListener;
52
-import com.dmdirc.parser.interfaces.callbacks.DebugInfoListener;
53
-import com.dmdirc.parser.interfaces.callbacks.ErrorInfoListener;
54
-import com.dmdirc.parser.interfaces.callbacks.PingFailureListener;
55
-import com.dmdirc.parser.interfaces.callbacks.PingSentListener;
56
-import com.dmdirc.parser.interfaces.callbacks.PingSuccessListener;
57
-import com.dmdirc.parser.interfaces.callbacks.ServerErrorListener;
58
-import com.dmdirc.parser.interfaces.callbacks.ServerReadyListener;
59
-import com.dmdirc.parser.interfaces.callbacks.SocketCloseListener;
60
 import com.dmdirc.parser.irc.IRCReader.ReadLine;
49
 import com.dmdirc.parser.irc.IRCReader.ReadLine;
61
 import com.dmdirc.parser.irc.outputqueue.OutputQueue;
50
 import com.dmdirc.parser.irc.outputqueue.OutputQueue;
62
 
51
 
542
     /**
531
     /**
543
      * Callback to all objects implementing the ServerError Callback.
532
      * Callback to all objects implementing the ServerError Callback.
544
      *
533
      *
545
-     * @see ServerErrorListener
546
      * @param message The error message
534
      * @param message The error message
547
      */
535
      */
548
     protected void callServerError(final String message) {
536
     protected void callServerError(final String message) {
552
     /**
540
     /**
553
      * Callback to all objects implementing the DataIn Callback.
541
      * Callback to all objects implementing the DataIn Callback.
554
      *
542
      *
555
-     * @see DataInListener
556
      * @param data Incoming Line.
543
      * @param data Incoming Line.
557
      */
544
      */
558
     protected void callDataIn(final String data) {
545
     protected void callDataIn(final String data) {
564
      *
551
      *
565
      * @param data Outgoing Data
552
      * @param data Outgoing Data
566
      * @param fromParser True if parser sent the data, false if sent using .sendLine
553
      * @param fromParser True if parser sent the data, false if sent using .sendLine
567
-     * @see DataOutListener
568
      */
554
      */
569
     protected void callDataOut(final String data, final boolean fromParser) {
555
     protected void callDataOut(final String data, final boolean fromParser) {
570
         getCallbackManager().publish(new DataOutEvent(this, new Date(), data));
556
         getCallbackManager().publish(new DataOutEvent(this, new Date(), data));
573
     /**
559
     /**
574
      * Callback to all objects implementing the DebugInfo Callback.
560
      * Callback to all objects implementing the DebugInfo Callback.
575
      *
561
      *
576
-     * @see DebugInfoListener
577
      * @param level Debugging Level (DEBUG_INFO, DEBUG_SOCKET etc)
562
      * @param level Debugging Level (DEBUG_INFO, DEBUG_SOCKET etc)
578
      * @param data Debugging Information as a format string
563
      * @param data Debugging Information as a format string
579
      * @param args Formatting String Options
564
      * @param args Formatting String Options
585
     /**
570
     /**
586
      * Callback to all objects implementing the DebugInfo Callback.
571
      * Callback to all objects implementing the DebugInfo Callback.
587
      *
572
      *
588
-     * @see DebugInfoListener
589
      * @param level Debugging Level (DEBUG_INFO, DEBUG_SOCKET etc)
573
      * @param level Debugging Level (DEBUG_INFO, DEBUG_SOCKET etc)
590
      * @param data Debugging Information
574
      * @param data Debugging Information
591
      */
575
      */
596
     /**
580
     /**
597
      * Callback to all objects implementing the IErrorInfo Interface.
581
      * Callback to all objects implementing the IErrorInfo Interface.
598
      *
582
      *
599
-     * @see ErrorInfoListener
600
      * @param errorInfo ParserError object representing the error.
583
      * @param errorInfo ParserError object representing the error.
601
      */
584
      */
602
     public void callErrorInfo(final ParserError errorInfo) {
585
     public void callErrorInfo(final ParserError errorInfo) {
606
     /**
589
     /**
607
      * Callback to all objects implementing the IConnectError Interface.
590
      * Callback to all objects implementing the IConnectError Interface.
608
      *
591
      *
609
-     * @see ConnectErrorListener
610
      * @param errorInfo ParserError object representing the error.
592
      * @param errorInfo ParserError object representing the error.
611
      */
593
      */
612
     protected void callConnectError(final ParserError errorInfo) {
594
     protected void callConnectError(final ParserError errorInfo) {
615
 
597
 
616
     /**
598
     /**
617
      * Callback to all objects implementing the SocketClosed Callback.
599
      * Callback to all objects implementing the SocketClosed Callback.
618
-     *
619
-     * @see SocketCloseListener
620
      */
600
      */
621
     protected void callSocketClosed() {
601
     protected void callSocketClosed() {
622
         getCallbackManager().publish(new SocketCloseEvent(this, new Date()));
602
         getCallbackManager().publish(new SocketCloseEvent(this, new Date()));
624
 
604
 
625
     /**
605
     /**
626
      * Callback to all objects implementing the PingFailed Callback.
606
      * Callback to all objects implementing the PingFailed Callback.
627
-     *
628
-     * @see PingFailureListener
629
      */
607
      */
630
     protected void callPingFailed() {
608
     protected void callPingFailed() {
631
         getCallbackManager().publish(new PingFailureEvent(this, new Date()));
609
         getCallbackManager().publish(new PingFailureEvent(this, new Date()));
633
 
611
 
634
     /**
612
     /**
635
      * Callback to all objects implementing the PingSent Callback.
613
      * Callback to all objects implementing the PingSent Callback.
636
-     *
637
-     * @see PingSentListener
638
      */
614
      */
639
     protected void callPingSent() {
615
     protected void callPingSent() {
640
         getCallbackManager().publish(new PingSentEvent(this, new Date()));
616
         getCallbackManager().publish(new PingSentEvent(this, new Date()));
642
 
618
 
643
     /**
619
     /**
644
      * Callback to all objects implementing the PingSuccess Callback.
620
      * Callback to all objects implementing the PingSuccess Callback.
645
-     *
646
-     * @see PingSuccessListener
647
      */
621
      */
648
     protected void callPingSuccess() {
622
     protected void callPingSuccess() {
649
         getCallbackManager().publish(new PingSuccessEvent(this, new Date()));
623
         getCallbackManager().publish(new PingSuccessEvent(this, new Date()));
651
 
625
 
652
     /**
626
     /**
653
      * Callback to all objects implementing the Post005 Callback.
627
      * Callback to all objects implementing the Post005 Callback.
654
-     *
655
-     * @see ServerReadyListener
656
      */
628
      */
657
     protected synchronized void callPost005() {
629
     protected synchronized void callPost005() {
658
         if (post005) {
630
         if (post005) {

+ 0
- 2
irc/src/com/dmdirc/parser/irc/ProcessingManager.java View File

24
 
24
 
25
 import com.dmdirc.parser.common.ParserError;
25
 import com.dmdirc.parser.common.ParserError;
26
 import com.dmdirc.parser.events.NumericEvent;
26
 import com.dmdirc.parser.events.NumericEvent;
27
-import com.dmdirc.parser.interfaces.callbacks.NumericListener;
28
 import com.dmdirc.parser.irc.processors.IRCProcessor;
27
 import com.dmdirc.parser.irc.processors.IRCProcessor;
29
 import com.dmdirc.parser.irc.processors.Process001;
28
 import com.dmdirc.parser.irc.processors.Process001;
30
 import com.dmdirc.parser.irc.processors.Process004005;
29
 import com.dmdirc.parser.irc.processors.Process004005;
268
     /**
267
     /**
269
      * Callback to all objects implementing the onNumeric Callback.
268
      * Callback to all objects implementing the onNumeric Callback.
270
      *
269
      *
271
-     * @see NumericListener
272
      * @param numeric What numeric is this for
270
      * @param numeric What numeric is this for
273
      * @param token IRC Tokenised line
271
      * @param token IRC Tokenised line
274
      */
272
      */

+ 2
- 3
irc/src/com/dmdirc/parser/irc/SimpleNickInUseHandler.java View File

24
 
24
 
25
 import com.dmdirc.parser.events.DebugInfoEvent;
25
 import com.dmdirc.parser.events.DebugInfoEvent;
26
 import com.dmdirc.parser.interfaces.Parser;
26
 import com.dmdirc.parser.interfaces.Parser;
27
-import com.dmdirc.parser.interfaces.callbacks.NickInUseListener;
28
 
27
 
29
 import java.util.Date;
28
 import java.util.Date;
30
 
29
 
32
  * Simple nick in use handler that tries the alternative nickname, then prepends a character until
31
  * Simple nick in use handler that tries the alternative nickname, then prepends a character until
33
  * it gets a nickname.
32
  * it gets a nickname.
34
  */
33
  */
35
-public class SimpleNickInUseHandler implements NickInUseListener {
34
+public class SimpleNickInUseHandler {
36
 
35
 
37
     private final String altNickname;
36
     private final String altNickname;
38
     private final char prependChar;
37
     private final char prependChar;
43
         this.prependChar = prependChar;
42
         this.prependChar = prependChar;
44
     }
43
     }
45
 
44
 
46
-    @Override
45
+    // TODO: Subscribe
47
     public void onNickInUse(final Parser parser, final Date date, final String nickname) {
46
     public void onNickInUse(final Parser parser, final Date date, final String nickname) {
48
         final IRCParser ircParser = (IRCParser) parser;
47
         final IRCParser ircParser = (IRCParser) parser;
49
         callDebugInfo(parser, IRCParser.DEBUG_INFO, "No Nick in use Handler.");
48
         callDebugInfo(parser, IRCParser.DEBUG_INFO, "No Nick in use Handler.");

+ 2
- 3
irc/src/com/dmdirc/parser/irc/SimplePingFailureHandler.java View File

23
 package com.dmdirc.parser.irc;
23
 package com.dmdirc.parser.irc;
24
 
24
 
25
 import com.dmdirc.parser.interfaces.Parser;
25
 import com.dmdirc.parser.interfaces.Parser;
26
-import com.dmdirc.parser.interfaces.callbacks.PingFailureListener;
27
 
26
 
28
 import java.util.Date;
27
 import java.util.Date;
29
 
28
 
30
 /**
29
 /**
31
  * Simple ping failure listener that disconnects on missed pings.
30
  * Simple ping failure listener that disconnects on missed pings.
32
  */
31
  */
33
-public class SimplePingFailureHandler implements PingFailureListener {
32
+public class SimplePingFailureHandler {
34
 
33
 
35
-    @Override
34
+    // TODO: Subscribe
36
     public void onPingFailed(final Parser parser, final Date date) {
35
     public void onPingFailed(final Parser parser, final Date date) {
37
         final IRCParser ircParser = (IRCParser) parser;
36
         final IRCParser ircParser = (IRCParser) parser;
38
         if (ircParser.getPingNeeded()) {
37
         if (ircParser.getPingNeeded()) {

+ 0
- 5
irc/src/com/dmdirc/parser/irc/processors/IRCProcessor.java View File

25
 import com.dmdirc.parser.common.CallbackManager;
25
 import com.dmdirc.parser.common.CallbackManager;
26
 import com.dmdirc.parser.common.ParserError;
26
 import com.dmdirc.parser.common.ParserError;
27
 import com.dmdirc.parser.common.QueuePriority;
27
 import com.dmdirc.parser.common.QueuePriority;
28
-import com.dmdirc.parser.interfaces.callbacks.DebugInfoListener;
29
-import com.dmdirc.parser.interfaces.callbacks.ErrorInfoListener;
30
 import com.dmdirc.parser.irc.IRCChannelInfo;
28
 import com.dmdirc.parser.irc.IRCChannelInfo;
31
 import com.dmdirc.parser.irc.IRCClientInfo;
29
 import com.dmdirc.parser.irc.IRCClientInfo;
32
 import com.dmdirc.parser.irc.IRCParser;
30
 import com.dmdirc.parser.irc.IRCParser;
65
     /**
63
     /**
66
      * Callback to all objects implementing the IErrorInfo Interface.
64
      * Callback to all objects implementing the IErrorInfo Interface.
67
      *
65
      *
68
-     * @see ErrorInfoListener
69
      * @param errorInfo ParserError object representing the error.
66
      * @param errorInfo ParserError object representing the error.
70
      */
67
      */
71
     protected final void callErrorInfo(final ParserError errorInfo) {
68
     protected final void callErrorInfo(final ParserError errorInfo) {
75
     /**
72
     /**
76
      * Callback to all objects implementing the DebugInfo Callback.
73
      * Callback to all objects implementing the DebugInfo Callback.
77
      *
74
      *
78
-     * @see DebugInfoListener
79
      * @param level Debugging Level (DEBUG_INFO, ndSocket etc)
75
      * @param level Debugging Level (DEBUG_INFO, ndSocket etc)
80
      * @param data Debugging Information
76
      * @param data Debugging Information
81
      * @param args Formatting String Options
77
      * @param args Formatting String Options
87
     /**
83
     /**
88
      * Callback to all objects implementing the DebugInfo Callback.
84
      * Callback to all objects implementing the DebugInfo Callback.
89
      *
85
      *
90
-     * @see DebugInfoListener
91
      * @param level Debugging Level (DEBUG_INFO, ndSocket etc)
86
      * @param level Debugging Level (DEBUG_INFO, ndSocket etc)
92
      * @param data Debugging Information
87
      * @param data Debugging Information
93
      */
88
      */

+ 0
- 3
irc/src/com/dmdirc/parser/irc/processors/Process004005.java View File

25
 import com.dmdirc.parser.common.ParserError;
25
 import com.dmdirc.parser.common.ParserError;
26
 import com.dmdirc.parser.common.QueuePriority;
26
 import com.dmdirc.parser.common.QueuePriority;
27
 import com.dmdirc.parser.events.NetworkDetectedEvent;
27
 import com.dmdirc.parser.events.NetworkDetectedEvent;
28
-import com.dmdirc.parser.interfaces.callbacks.NetworkDetectedListener;
29
 import com.dmdirc.parser.irc.CapabilityState;
28
 import com.dmdirc.parser.irc.CapabilityState;
30
 import com.dmdirc.parser.irc.IRCEncoding;
29
 import com.dmdirc.parser.irc.IRCEncoding;
31
 import com.dmdirc.parser.irc.IRCParser;
30
 import com.dmdirc.parser.irc.IRCParser;
78
     /**
77
     /**
79
      * Callback to all objects implementing the GotNetwork Callback.
78
      * Callback to all objects implementing the GotNetwork Callback.
80
      * This takes no params of its own, but works them out itself.
79
      * This takes no params of its own, but works them out itself.
81
-     *
82
-     * @see NetworkDetectedListener
83
      */
80
      */
84
     private void callGotNetwork() {
81
     private void callGotNetwork() {
85
         final String networkName = parser.networkName;
82
         final String networkName = parser.networkName;

+ 0
- 3
irc/src/com/dmdirc/parser/irc/processors/Process464.java View File

23
 package com.dmdirc.parser.irc.processors;
23
 package com.dmdirc.parser.irc.processors;
24
 
24
 
25
 import com.dmdirc.parser.events.PasswordRequiredEvent;
25
 import com.dmdirc.parser.events.PasswordRequiredEvent;
26
-import com.dmdirc.parser.interfaces.callbacks.PasswordRequiredListener;
27
 import com.dmdirc.parser.irc.IRCParser;
26
 import com.dmdirc.parser.irc.IRCParser;
28
 import com.dmdirc.parser.irc.ProcessingManager;
27
 import com.dmdirc.parser.irc.ProcessingManager;
29
 
28
 
57
 
56
 
58
     /**
57
     /**
59
      * Callback to all objects implementing the PasswordRequired Callback.
58
      * Callback to all objects implementing the PasswordRequired Callback.
60
-     *
61
-     * @see PasswordRequiredListener
62
      */
59
      */
63
     protected void callPasswordRequired() {
60
     protected void callPasswordRequired() {
64
         getCallbackManager().publish(new PasswordRequiredEvent(parser, new Date()));
61
         getCallbackManager().publish(new PasswordRequiredEvent(parser, new Date()));

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessAway.java View File

23
 
23
 
24
 import com.dmdirc.parser.common.AwayState;
24
 import com.dmdirc.parser.common.AwayState;
25
 import com.dmdirc.parser.events.AwayStateEvent;
25
 import com.dmdirc.parser.events.AwayStateEvent;
26
-import com.dmdirc.parser.interfaces.callbacks.AwayStateListener;
27
 import com.dmdirc.parser.irc.IRCClientInfo;
26
 import com.dmdirc.parser.irc.IRCClientInfo;
28
 import com.dmdirc.parser.irc.IRCParser;
27
 import com.dmdirc.parser.irc.IRCParser;
29
 import com.dmdirc.parser.irc.ProcessingManager;
28
 import com.dmdirc.parser.irc.ProcessingManager;
86
     /**
85
     /**
87
      * Callback to all objects implementing the onAwayState Callback.
86
      * Callback to all objects implementing the onAwayState Callback.
88
      *
87
      *
89
-     * @see AwayStateListener
90
      * @param oldState Old Away State
88
      * @param oldState Old Away State
91
      * @param currentState Current Away State
89
      * @param currentState Current Away State
92
      * @param reason Best guess at away reason
90
      * @param reason Best guess at away reason

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessInvite.java View File

23
 package com.dmdirc.parser.irc.processors;
23
 package com.dmdirc.parser.irc.processors;
24
 
24
 
25
 import com.dmdirc.parser.events.InviteEvent;
25
 import com.dmdirc.parser.events.InviteEvent;
26
-import com.dmdirc.parser.interfaces.callbacks.InviteListener;
27
 import com.dmdirc.parser.irc.IRCParser;
26
 import com.dmdirc.parser.irc.IRCParser;
28
 import com.dmdirc.parser.irc.ProcessingManager;
27
 import com.dmdirc.parser.irc.ProcessingManager;
29
 
28
 
61
     /**
60
     /**
62
      * Callback to all objects implementing the Invite Callback.
61
      * Callback to all objects implementing the Invite Callback.
63
      *
62
      *
64
-     * @see InviteListener
65
      * @param userHost The hostname of the person who invited us
63
      * @param userHost The hostname of the person who invited us
66
      * @param channel The name of the channel we were invited to
64
      * @param channel The name of the channel we were invited to
67
      */
65
      */

+ 0
- 4
irc/src/com/dmdirc/parser/irc/processors/ProcessJoin.java View File

28
 import com.dmdirc.parser.events.ChannelSelfJoinEvent;
28
 import com.dmdirc.parser.events.ChannelSelfJoinEvent;
29
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
29
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
30
 import com.dmdirc.parser.interfaces.ChannelInfo;
30
 import com.dmdirc.parser.interfaces.ChannelInfo;
31
-import com.dmdirc.parser.interfaces.callbacks.ChannelJoinListener;
32
-import com.dmdirc.parser.interfaces.callbacks.ChannelSelfJoinListener;
33
 import com.dmdirc.parser.irc.CapabilityState;
31
 import com.dmdirc.parser.irc.CapabilityState;
34
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
32
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
35
 import com.dmdirc.parser.irc.IRCChannelInfo;
33
 import com.dmdirc.parser.irc.IRCChannelInfo;
179
     /**
177
     /**
180
      * Callback to all objects implementing the ChannelJoin Callback.
178
      * Callback to all objects implementing the ChannelJoin Callback.
181
      *
179
      *
182
-     * @see ChannelJoinListener
183
      * @param cChannel Channel Object
180
      * @param cChannel Channel Object
184
      * @param cChannelClient ChannelClient object for new person
181
      * @param cChannelClient ChannelClient object for new person
185
      */
182
      */
192
     /**
189
     /**
193
      * Callback to all objects implementing the ChannelSelfJoin Callback.
190
      * Callback to all objects implementing the ChannelSelfJoin Callback.
194
      *
191
      *
195
-     * @see ChannelSelfJoinListener
196
      * @param cChannel Channel Object
192
      * @param cChannel Channel Object
197
      */
193
      */
198
     protected void callChannelSelfJoin(final ChannelInfo cChannel) {
194
     protected void callChannelSelfJoin(final ChannelInfo cChannel) {

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessKick.java View File

26
 import com.dmdirc.parser.events.ChannelKickEvent;
26
 import com.dmdirc.parser.events.ChannelKickEvent;
27
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
27
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
28
 import com.dmdirc.parser.interfaces.ChannelInfo;
28
 import com.dmdirc.parser.interfaces.ChannelInfo;
29
-import com.dmdirc.parser.interfaces.callbacks.ChannelKickListener;
30
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
29
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
31
 import com.dmdirc.parser.irc.IRCChannelInfo;
30
 import com.dmdirc.parser.irc.IRCChannelInfo;
32
 import com.dmdirc.parser.irc.IRCClientInfo;
31
 import com.dmdirc.parser.irc.IRCClientInfo;
112
     /**
111
     /**
113
      * Callback to all objects implementing the ChannelKick Callback.
112
      * Callback to all objects implementing the ChannelKick Callback.
114
      *
113
      *
115
-     * @see ChannelKickListener
116
      * @param cChannel Channel where the kick took place
114
      * @param cChannel Channel where the kick took place
117
      * @param cKickedClient ChannelClient that got kicked
115
      * @param cKickedClient ChannelClient that got kicked
118
      * @param cKickedByClient ChannelClient that did the kicking (may be null if server)
116
      * @param cKickedByClient ChannelClient that did the kicking (may be null if server)

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessListModes.java View File

25
 import com.dmdirc.parser.common.ParserError;
25
 import com.dmdirc.parser.common.ParserError;
26
 import com.dmdirc.parser.events.ChannelListModeEvent;
26
 import com.dmdirc.parser.events.ChannelListModeEvent;
27
 import com.dmdirc.parser.interfaces.ChannelInfo;
27
 import com.dmdirc.parser.interfaces.ChannelInfo;
28
-import com.dmdirc.parser.interfaces.callbacks.ChannelListModeListener;
29
 import com.dmdirc.parser.irc.IRCChannelInfo;
28
 import com.dmdirc.parser.irc.IRCChannelInfo;
30
 import com.dmdirc.parser.irc.IRCParser;
29
 import com.dmdirc.parser.irc.IRCParser;
31
 import com.dmdirc.parser.irc.ProcessingManager;
30
 import com.dmdirc.parser.irc.ProcessingManager;
283
     /**
282
     /**
284
      * Callback to all objects implementing the ChannelGotListModes Callback.
283
      * Callback to all objects implementing the ChannelGotListModes Callback.
285
      *
284
      *
286
-     * @see ChannelListModeListener
287
      * @param cChannel Channel which the ListModes reply is for
285
      * @param cChannel Channel which the ListModes reply is for
288
      * @param mode the mode that we got list modes for.
286
      * @param mode the mode that we got list modes for.
289
      */
287
      */

+ 0
- 6
irc/src/com/dmdirc/parser/irc/processors/ProcessMOTD.java View File

25
 import com.dmdirc.parser.events.MOTDEndEvent;
25
 import com.dmdirc.parser.events.MOTDEndEvent;
26
 import com.dmdirc.parser.events.MOTDLineEvent;
26
 import com.dmdirc.parser.events.MOTDLineEvent;
27
 import com.dmdirc.parser.events.MOTDStartEvent;
27
 import com.dmdirc.parser.events.MOTDStartEvent;
28
-import com.dmdirc.parser.interfaces.callbacks.MotdEndListener;
29
-import com.dmdirc.parser.interfaces.callbacks.MotdLineListener;
30
-import com.dmdirc.parser.interfaces.callbacks.MotdStartListener;
31
 import com.dmdirc.parser.irc.IRCParser;
28
 import com.dmdirc.parser.irc.IRCParser;
32
 import com.dmdirc.parser.irc.ProcessingManager;
29
 import com.dmdirc.parser.irc.ProcessingManager;
33
 
30
 
74
      *
71
      *
75
      * @param noMOTD Was this an MOTDEnd or NoMOTD
72
      * @param noMOTD Was this an MOTDEnd or NoMOTD
76
      * @param data The contents of the line (incase of language changes or so)
73
      * @param data The contents of the line (incase of language changes or so)
77
-     * @see MotdEndListener
78
      */
74
      */
79
     protected void callMOTDEnd(final boolean noMOTD, final String data) {
75
     protected void callMOTDEnd(final boolean noMOTD, final String data) {
80
         getCallbackManager().publish(new MOTDEndEvent(parser, new Date(), noMOTD, data));
76
         getCallbackManager().publish(new MOTDEndEvent(parser, new Date(), noMOTD, data));
83
     /**
79
     /**
84
      * Callback to all objects implementing the MOTDLine Callback.
80
      * Callback to all objects implementing the MOTDLine Callback.
85
      *
81
      *
86
-     * @see MotdLineListener
87
      * @param data Incomming Line.
82
      * @param data Incomming Line.
88
      */
83
      */
89
     protected void callMOTDLine(final String data) {
84
     protected void callMOTDLine(final String data) {
93
     /**
88
     /**
94
      * Callback to all objects implementing the MOTDStart Callback.
89
      * Callback to all objects implementing the MOTDStart Callback.
95
      *
90
      *
96
-     * @see MotdStartListener
97
      * @param data Incomming Line.
91
      * @param data Incomming Line.
98
      */
92
      */
99
     protected void callMOTDStart(final String data) {
93
     protected void callMOTDStart(final String data) {

+ 0
- 38
irc/src/com/dmdirc/parser/irc/processors/ProcessMessage.java View File

44
 import com.dmdirc.parser.events.UnknownServerNoticeEvent;
44
 import com.dmdirc.parser.events.UnknownServerNoticeEvent;
45
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
45
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
46
 import com.dmdirc.parser.interfaces.ChannelInfo;
46
 import com.dmdirc.parser.interfaces.ChannelInfo;
47
-import com.dmdirc.parser.interfaces.callbacks.ChannelActionListener;
48
-import com.dmdirc.parser.interfaces.callbacks.ChannelCtcpListener;
49
-import com.dmdirc.parser.interfaces.callbacks.ChannelCtcpReplyListener;
50
-import com.dmdirc.parser.interfaces.callbacks.ChannelMessageListener;
51
-import com.dmdirc.parser.interfaces.callbacks.ChannelModeMessageListener;
52
-import com.dmdirc.parser.interfaces.callbacks.ChannelModeNoticeListener;
53
-import com.dmdirc.parser.interfaces.callbacks.ChannelNoticeListener;
54
-import com.dmdirc.parser.interfaces.callbacks.PrivateActionListener;
55
-import com.dmdirc.parser.interfaces.callbacks.PrivateCtcpListener;
56
-import com.dmdirc.parser.interfaces.callbacks.PrivateCtcpReplyListener;
57
-import com.dmdirc.parser.interfaces.callbacks.PrivateMessageListener;
58
-import com.dmdirc.parser.interfaces.callbacks.PrivateNoticeListener;
59
-import com.dmdirc.parser.interfaces.callbacks.ServerNoticeListener;
60
-import com.dmdirc.parser.interfaces.callbacks.UnknownActionListener;
61
-import com.dmdirc.parser.interfaces.callbacks.UnknownCtcpListener;
62
-import com.dmdirc.parser.interfaces.callbacks.UnknownCtcpReplyListener;
63
-import com.dmdirc.parser.interfaces.callbacks.UnknownMessageListener;
64
-import com.dmdirc.parser.interfaces.callbacks.UnknownNoticeListener;
65
-import com.dmdirc.parser.interfaces.callbacks.UnknownServerNoticeListener;
66
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
47
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
67
 import com.dmdirc.parser.irc.IRCChannelInfo;
48
 import com.dmdirc.parser.irc.IRCChannelInfo;
68
 import com.dmdirc.parser.irc.IRCClientInfo;
49
 import com.dmdirc.parser.irc.IRCClientInfo;
312
     /**
293
     /**
313
      * Callback to all objects implementing the ChannelAction Callback.
294
      * Callback to all objects implementing the ChannelAction Callback.
314
      *
295
      *
315
-     * @see ChannelActionListener
316
      * @param date The date of this line
296
      * @param date The date of this line
317
      * @param cChannel Channel where the action was sent to
297
      * @param cChannel Channel where the action was sent to
318
      * @param cChannelClient ChannelClient who sent the action (may be null if server)
298
      * @param cChannelClient ChannelClient who sent the action (may be null if server)
328
     /**
308
     /**
329
      * Callback to all objects implementing the ChannelCTCP Callback.
309
      * Callback to all objects implementing the ChannelCTCP Callback.
330
      *
310
      *
331
-     * @see ChannelCtcpListener
332
      * @param date The date of this line
311
      * @param date The date of this line
333
      * @param cChannel Channel where CTCP was sent
312
      * @param cChannel Channel where CTCP was sent
334
      * @param cChannelClient ChannelClient who sent the message (may be null if server)
313
      * @param cChannelClient ChannelClient who sent the message (may be null if server)
347
     /**
326
     /**
348
      * Callback to all objects implementing the ChannelCTCPReply Callback.
327
      * Callback to all objects implementing the ChannelCTCPReply Callback.
349
      *
328
      *
350
-     * @see ChannelCtcpReplyListener
351
      * @param date The date of this line
329
      * @param date The date of this line
352
      * @param cChannel Channel where CTCPReply was sent
330
      * @param cChannel Channel where CTCPReply was sent
353
      * @param cChannelClient ChannelClient who sent the message (may be null if server)
331
      * @param cChannelClient ChannelClient who sent the message (may be null if server)
366
     /**
344
     /**
367
      * Callback to all objects implementing the ChannelMessage Callback.
345
      * Callback to all objects implementing the ChannelMessage Callback.
368
      *
346
      *
369
-     * @see ChannelMessageListener
370
      * @param date The date of this line
347
      * @param date The date of this line
371
      * @param cChannel Channel where the message was sent to
348
      * @param cChannel Channel where the message was sent to
372
      * @param cChannelClient ChannelClient who sent the message (may be null if server)
349
      * @param cChannelClient ChannelClient who sent the message (may be null if server)
382
     /**
359
     /**
383
      * Callback to all objects implementing the ChannelNotice Callback.
360
      * Callback to all objects implementing the ChannelNotice Callback.
384
      *
361
      *
385
-     * @see ChannelNoticeListener
386
      * @param date The date of this line
362
      * @param date The date of this line
387
      * @param cChannel Channel where the notice was sent to
363
      * @param cChannel Channel where the notice was sent to
388
      * @param cChannelClient ChannelClient who sent the notice (may be null if server)
364
      * @param cChannelClient ChannelClient who sent the notice (may be null if server)
398
     /**
374
     /**
399
      * Callback to all objects implementing the ChannelModeNotice Callback.
375
      * Callback to all objects implementing the ChannelModeNotice Callback.
400
      *
376
      *
401
-     * @see ChannelModeNoticeListener
402
      * @param date The date of this line
377
      * @param date The date of this line
403
      * @param prefix Prefix that was used to send this notice.
378
      * @param prefix Prefix that was used to send this notice.
404
      * @param cChannel Channel where the notice was sent to
379
      * @param cChannel Channel where the notice was sent to
417
     /**
392
     /**
418
      * Callback to all objects implementing the ChannelModeMessage Callback.
393
      * Callback to all objects implementing the ChannelModeMessage Callback.
419
      *
394
      *
420
-     * @see ChannelModeMessageListener
421
      * @param date The date of this line
395
      * @param date The date of this line
422
      * @param prefix Prefix that was used to send this notice.
396
      * @param prefix Prefix that was used to send this notice.
423
      * @param cChannel Channel where the notice was sent to
397
      * @param cChannel Channel where the notice was sent to
436
     /**
410
     /**
437
      * Callback to all objects implementing the PrivateAction Callback.
411
      * Callback to all objects implementing the PrivateAction Callback.
438
      *
412
      *
439
-     * @see PrivateActionListener
440
      * @param date The date of this line
413
      * @param date The date of this line
441
      * @param sMessage action contents
414
      * @param sMessage action contents
442
      * @param sHost Hostname of sender (or servername)
415
      * @param sHost Hostname of sender (or servername)
448
     /**
421
     /**
449
      * Callback to all objects implementing the PrivateCTCP Callback.
422
      * Callback to all objects implementing the PrivateCTCP Callback.
450
      *
423
      *
451
-     * @see PrivateCtcpListener
452
      * @param date The date of this line
424
      * @param date The date of this line
453
      * @param sType Type of CTCP (VERSION, TIME etc)
425
      * @param sType Type of CTCP (VERSION, TIME etc)
454
      * @param sMessage Additional contents
426
      * @param sMessage Additional contents
462
     /**
434
     /**
463
      * Callback to all objects implementing the PrivateCTCPReply Callback.
435
      * Callback to all objects implementing the PrivateCTCPReply Callback.
464
      *
436
      *
465
-     * @see PrivateCtcpReplyListener
466
      * @param date The date of this line
437
      * @param date The date of this line
467
      * @param sType Type of CTCPRReply (VERSION, TIME etc)
438
      * @param sType Type of CTCPRReply (VERSION, TIME etc)
468
      * @param sMessage Reply Contents
439
      * @param sMessage Reply Contents
477
     /**
448
     /**
478
      * Callback to all objects implementing the PrivateMessage Callback.
449
      * Callback to all objects implementing the PrivateMessage Callback.
479
      *
450
      *
480
-     * @see PrivateMessageListener
481
      * @param date The date of this line
451
      * @param date The date of this line
482
      * @param sMessage Message contents
452
      * @param sMessage Message contents
483
      * @param sHost Hostname of sender (or servername)
453
      * @param sHost Hostname of sender (or servername)
489
     /**
459
     /**
490
      * Callback to all objects implementing the PrivateNotice Callback.
460
      * Callback to all objects implementing the PrivateNotice Callback.
491
      *
461
      *
492
-     * @see PrivateNoticeListener
493
      * @param date The date of this line
462
      * @param date The date of this line
494
      * @param sMessage Notice contents
463
      * @param sMessage Notice contents
495
      * @param sHost Hostname of sender (or servername)
464
      * @param sHost Hostname of sender (or servername)
501
     /**
470
     /**
502
      * Callback to all objects implementing the ServerNotice Callback.
471
      * Callback to all objects implementing the ServerNotice Callback.
503
      *
472
      *
504
-     * @see ServerNoticeListener
505
      * @param date The date of this line
473
      * @param date The date of this line
506
      * @param sMessage Notice contents
474
      * @param sMessage Notice contents
507
      * @param sHost Hostname of sender (or servername)
475
      * @param sHost Hostname of sender (or servername)
513
     /**
481
     /**
514
      * Callback to all objects implementing the UnknownAction Callback.
482
      * Callback to all objects implementing the UnknownAction Callback.
515
      *
483
      *
516
-     * @see UnknownActionListener
517
      * @param date The date of this line
484
      * @param date The date of this line
518
      * @param sMessage Action contents
485
      * @param sMessage Action contents
519
      * @param sTarget Actual target of action
486
      * @param sTarget Actual target of action
527
     /**
494
     /**
528
      * Callback to all objects implementing the UnknownCTCP Callback.
495
      * Callback to all objects implementing the UnknownCTCP Callback.
529
      *
496
      *
530
-     * @see UnknownCtcpListener
531
      * @param date The date of this line
497
      * @param date The date of this line
532
      * @param sType Type of CTCP (VERSION, TIME etc)
498
      * @param sType Type of CTCP (VERSION, TIME etc)
533
      * @param sMessage Additional contents
499
      * @param sMessage Additional contents
543
     /**
509
     /**
544
      * Callback to all objects implementing the UnknownCTCPReply Callback.
510
      * Callback to all objects implementing the UnknownCTCPReply Callback.
545
      *
511
      *
546
-     * @see UnknownCtcpReplyListener
547
      * @param date The date of this line
512
      * @param date The date of this line
548
      * @param sType Type of CTCPRReply (VERSION, TIME etc)
513
      * @param sType Type of CTCPRReply (VERSION, TIME etc)
549
      * @param sMessage Reply Contents
514
      * @param sMessage Reply Contents
559
     /**
524
     /**
560
      * Callback to all objects implementing the UnknownMessage Callback.
525
      * Callback to all objects implementing the UnknownMessage Callback.
561
      *
526
      *
562
-     * @see UnknownMessageListener
563
      * @param date The date of this line
527
      * @param date The date of this line
564
      * @param sMessage Message contents
528
      * @param sMessage Message contents
565
      * @param sTarget Actual target of message
529
      * @param sTarget Actual target of message
574
     /**
538
     /**
575
      * Callback to all objects implementing the UnknownNotice Callback.
539
      * Callback to all objects implementing the UnknownNotice Callback.
576
      *
540
      *
577
-     * @see UnknownNoticeListener
578
      * @param date The date of this line
541
      * @param date The date of this line
579
      * @param sMessage Notice contents
542
      * @param sMessage Notice contents
580
      * @param sTarget Actual target of notice
543
      * @param sTarget Actual target of notice
588
     /**
551
     /**
589
      * Callback to all objects implementing the UnknownNotice Callback.
552
      * Callback to all objects implementing the UnknownNotice Callback.
590
      *
553
      *
591
-     * @see UnknownServerNoticeListener
592
      * @param date The date of this line
554
      * @param date The date of this line
593
      * @param sMessage Notice contents
555
      * @param sMessage Notice contents
594
      * @param sTarget Actual target of notice
556
      * @param sTarget Actual target of notice

+ 0
- 8
irc/src/com/dmdirc/parser/irc/processors/ProcessMode.java View File

33
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
33
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
34
 import com.dmdirc.parser.interfaces.ChannelInfo;
34
 import com.dmdirc.parser.interfaces.ChannelInfo;
35
 import com.dmdirc.parser.interfaces.ClientInfo;
35
 import com.dmdirc.parser.interfaces.ClientInfo;
36
-import com.dmdirc.parser.interfaces.callbacks.ChannelModeChangeListener;
37
-import com.dmdirc.parser.interfaces.callbacks.ChannelUserModeChangeListener;
38
-import com.dmdirc.parser.interfaces.callbacks.UserModeChangeListener;
39
-import com.dmdirc.parser.interfaces.callbacks.UserModeDiscoveryListener;
40
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
36
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
41
 import com.dmdirc.parser.irc.IRCChannelInfo;
37
 import com.dmdirc.parser.irc.IRCChannelInfo;
42
 import com.dmdirc.parser.irc.IRCClientInfo;
38
 import com.dmdirc.parser.irc.IRCClientInfo;
347
     /**
343
     /**
348
      * Callback to all objects implementing the ChannelModeChanged Callback.
344
      * Callback to all objects implementing the ChannelModeChanged Callback.
349
      *
345
      *
350
-     * @see ChannelModeChangeListener
351
      * @param cChannel Channel where modes were changed
346
      * @param cChannel Channel where modes were changed
352
      * @param cChannelClient Client chaning the modes (null if server)
347
      * @param cChannelClient Client chaning the modes (null if server)
353
      * @param sHost Host doing the mode changing (User host or server name)
348
      * @param sHost Host doing the mode changing (User host or server name)
363
     /**
358
     /**
364
      * Callback to all objects implementing the ChannelUserModeChanged Callback.
359
      * Callback to all objects implementing the ChannelUserModeChanged Callback.
365
      *
360
      *
366
-     * @see ChannelUserModeChangeListener
367
      * @param cChannel Channel where modes were changed
361
      * @param cChannel Channel where modes were changed
368
      * @param cChangedClient Client being changed
362
      * @param cChangedClient Client being changed
369
      * @param cSetByClient Client chaning the modes (null if server)
363
      * @param cSetByClient Client chaning the modes (null if server)
381
     /**
375
     /**
382
      * Callback to all objects implementing the UserModeChanged Callback.
376
      * Callback to all objects implementing the UserModeChanged Callback.
383
      *
377
      *
384
-     * @see UserModeChangeListener
385
      * @param cClient Client that had the mode changed (almost always us)
378
      * @param cClient Client that had the mode changed (almost always us)
386
      * @param sSetby Host that set the mode (us or servername)
379
      * @param sSetby Host that set the mode (us or servername)
387
      * @param sModes The modes set.
380
      * @param sModes The modes set.
395
     /**
388
     /**
396
      * Callback to all objects implementing the UserModeDiscovered Callback.
389
      * Callback to all objects implementing the UserModeDiscovered Callback.
397
      *
390
      *
398
-     * @see UserModeDiscoveryListener
399
      * @param cClient Client that had the mode changed (almost always us)
391
      * @param cClient Client that had the mode changed (almost always us)
400
      * @param sModes The modes set.
392
      * @param sModes The modes set.
401
      */
393
      */

+ 0
- 4
irc/src/com/dmdirc/parser/irc/processors/ProcessNames.java View File

25
 import com.dmdirc.parser.events.ChannelNamesEvent;
25
 import com.dmdirc.parser.events.ChannelNamesEvent;
26
 import com.dmdirc.parser.events.ChannelTopicEvent;
26
 import com.dmdirc.parser.events.ChannelTopicEvent;
27
 import com.dmdirc.parser.interfaces.ChannelInfo;
27
 import com.dmdirc.parser.interfaces.ChannelInfo;
28
-import com.dmdirc.parser.interfaces.callbacks.ChannelNamesListener;
29
-import com.dmdirc.parser.interfaces.callbacks.ChannelTopicListener;
30
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
28
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
31
 import com.dmdirc.parser.irc.IRCChannelInfo;
29
 import com.dmdirc.parser.irc.IRCChannelInfo;
32
 import com.dmdirc.parser.irc.IRCClientInfo;
30
 import com.dmdirc.parser.irc.IRCClientInfo;
143
     /**
141
     /**
144
      * Callback to all objects implementing the ChannelTopic Callback.
142
      * Callback to all objects implementing the ChannelTopic Callback.
145
      *
143
      *
146
-     * @see ChannelTopicListener
147
      * @param cChannel Channel that topic was set on
144
      * @param cChannel Channel that topic was set on
148
      * @param bIsJoinTopic True when getting topic on join, false if set by user/server
145
      * @param bIsJoinTopic True when getting topic on join, false if set by user/server
149
      */
146
      */
156
     /**
153
     /**
157
      * Callback to all objects implementing the ChannelGotNames Callback.
154
      * Callback to all objects implementing the ChannelGotNames Callback.
158
      *
155
      *
159
-     * @see ChannelNamesListener
160
      * @param cChannel Channel which the names reply is for
156
      * @param cChannel Channel which the names reply is for
161
      */
157
      */
162
     protected void callChannelGotNames(final ChannelInfo cChannel) {
158
     protected void callChannelGotNames(final ChannelInfo cChannel) {

+ 0
- 4
irc/src/com/dmdirc/parser/irc/processors/ProcessNick.java View File

28
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
28
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
29
 import com.dmdirc.parser.interfaces.ChannelInfo;
29
 import com.dmdirc.parser.interfaces.ChannelInfo;
30
 import com.dmdirc.parser.interfaces.ClientInfo;
30
 import com.dmdirc.parser.interfaces.ClientInfo;
31
-import com.dmdirc.parser.interfaces.callbacks.ChannelNickChangeListener;
32
-import com.dmdirc.parser.interfaces.callbacks.NickChangeListener;
33
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
31
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
34
 import com.dmdirc.parser.irc.IRCChannelInfo;
32
 import com.dmdirc.parser.irc.IRCChannelInfo;
35
 import com.dmdirc.parser.irc.IRCClientInfo;
33
 import com.dmdirc.parser.irc.IRCClientInfo;
104
     /**
102
     /**
105
      * Callback to all objects implementing the ChannelNickChanged Callback.
103
      * Callback to all objects implementing the ChannelNickChanged Callback.
106
      *
104
      *
107
-     * @see ChannelNickChangeListener
108
      * @param cChannel One of the channels that the user is on
105
      * @param cChannel One of the channels that the user is on
109
      * @param cChannelClient Client changing nickname
106
      * @param cChannelClient Client changing nickname
110
      * @param sOldNick Nickname before change
107
      * @param sOldNick Nickname before change
118
     /**
115
     /**
119
      * Callback to all objects implementing the NickChanged Callback.
116
      * Callback to all objects implementing the NickChanged Callback.
120
      *
117
      *
121
-     * @see NickChangeListener
122
      * @param cClient Client changing nickname
118
      * @param cClient Client changing nickname
123
      * @param sOldNick Nickname before change
119
      * @param sOldNick Nickname before change
124
      */
120
      */

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessNickInUse.java View File

23
 package com.dmdirc.parser.irc.processors;
23
 package com.dmdirc.parser.irc.processors;
24
 
24
 
25
 import com.dmdirc.parser.events.NickInUseEvent;
25
 import com.dmdirc.parser.events.NickInUseEvent;
26
-import com.dmdirc.parser.interfaces.callbacks.NickInUseListener;
27
 import com.dmdirc.parser.irc.IRCParser;
26
 import com.dmdirc.parser.irc.IRCParser;
28
 import com.dmdirc.parser.irc.ProcessingManager;
27
 import com.dmdirc.parser.irc.ProcessingManager;
29
 
28
 
71
      * Callback to all objects implementing the NickInUse Callback.
70
      * Callback to all objects implementing the NickInUse Callback.
72
      *
71
      *
73
      * @param nickname Nickname that was wanted.
72
      * @param nickname Nickname that was wanted.
74
-     * @see NickInUseListener
75
      */
73
      */
76
     protected void callNickInUse(final String nickname) {
74
     protected void callNickInUse(final String nickname) {
77
         getCallbackManager().publish(new NickInUseEvent(parser, new Date(), nickname));
75
         getCallbackManager().publish(new NickInUseEvent(parser, new Date(), nickname));

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessNoticeAuth.java View File

23
 package com.dmdirc.parser.irc.processors;
23
 package com.dmdirc.parser.irc.processors;
24
 
24
 
25
 import com.dmdirc.parser.events.AuthNoticeEvent;
25
 import com.dmdirc.parser.events.AuthNoticeEvent;
26
-import com.dmdirc.parser.interfaces.callbacks.AuthNoticeListener;
27
 import com.dmdirc.parser.irc.IRCParser;
26
 import com.dmdirc.parser.irc.IRCParser;
28
 import com.dmdirc.parser.irc.ProcessingManager;
27
 import com.dmdirc.parser.irc.ProcessingManager;
29
 
28
 
58
     /**
57
     /**
59
      * Callback to all objects implementing the NoticeAuth Callback.
58
      * Callback to all objects implementing the NoticeAuth Callback.
60
      *
59
      *
61
-     * @see AuthNoticeListener
62
      * @param data Incomming Line.
60
      * @param data Incomming Line.
63
      */
61
      */
64
     protected void callNoticeAuth(final String data) {
62
     protected void callNoticeAuth(final String data) {

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessPart.java View File

26
 import com.dmdirc.parser.events.ChannelPartEvent;
26
 import com.dmdirc.parser.events.ChannelPartEvent;
27
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
27
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
28
 import com.dmdirc.parser.interfaces.ChannelInfo;
28
 import com.dmdirc.parser.interfaces.ChannelInfo;
29
-import com.dmdirc.parser.interfaces.callbacks.ChannelPartListener;
30
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
29
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
31
 import com.dmdirc.parser.irc.IRCChannelInfo;
30
 import com.dmdirc.parser.irc.IRCChannelInfo;
32
 import com.dmdirc.parser.irc.IRCClientInfo;
31
 import com.dmdirc.parser.irc.IRCClientInfo;
108
     /**
107
     /**
109
      * Callback to all objects implementing the ChannelPart Callback.
108
      * Callback to all objects implementing the ChannelPart Callback.
110
      *
109
      *
111
-     * @see ChannelPartListener
112
      * @param cChannel Channel that the user parted
110
      * @param cChannel Channel that the user parted
113
      * @param cChannelClient Client that parted
111
      * @param cChannelClient Client that parted
114
      * @param sReason Reason given for parting (May be "")
112
      * @param sReason Reason given for parting (May be "")

+ 0
- 4
irc/src/com/dmdirc/parser/irc/processors/ProcessQuit.java View File

27
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
27
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
28
 import com.dmdirc.parser.interfaces.ChannelInfo;
28
 import com.dmdirc.parser.interfaces.ChannelInfo;
29
 import com.dmdirc.parser.interfaces.ClientInfo;
29
 import com.dmdirc.parser.interfaces.ClientInfo;
30
-import com.dmdirc.parser.interfaces.callbacks.ChannelQuitListener;
31
-import com.dmdirc.parser.interfaces.callbacks.QuitListener;
32
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
30
 import com.dmdirc.parser.irc.IRCChannelClientInfo;
33
 import com.dmdirc.parser.irc.IRCChannelInfo;
31
 import com.dmdirc.parser.irc.IRCChannelInfo;
34
 import com.dmdirc.parser.irc.IRCClientInfo;
32
 import com.dmdirc.parser.irc.IRCClientInfo;
116
     /**
114
     /**
117
      * Callback to all objects implementing the ChannelQuit Callback.
115
      * Callback to all objects implementing the ChannelQuit Callback.
118
      *
116
      *
119
-     * @see ChannelQuitListener
120
      * @param cChannel Channel that user was on
117
      * @param cChannel Channel that user was on
121
      * @param cChannelClient User thats quitting
118
      * @param cChannelClient User thats quitting
122
      * @param sReason Quit reason
119
      * @param sReason Quit reason
130
     /**
127
     /**
131
      * Callback to all objects implementing the Quit Callback.
128
      * Callback to all objects implementing the Quit Callback.
132
      *
129
      *
133
-     * @see QuitListener
134
      * @param cClient Client Quitting
130
      * @param cClient Client Quitting
135
      * @param sReason Reason for quitting (may be "")
131
      * @param sReason Reason for quitting (may be "")
136
      */
132
      */

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessTopic.java View File

24
 
24
 
25
 import com.dmdirc.parser.events.ChannelTopicEvent;
25
 import com.dmdirc.parser.events.ChannelTopicEvent;
26
 import com.dmdirc.parser.interfaces.ChannelInfo;
26
 import com.dmdirc.parser.interfaces.ChannelInfo;
27
-import com.dmdirc.parser.interfaces.callbacks.ChannelTopicListener;
28
 import com.dmdirc.parser.irc.IRCChannelInfo;
27
 import com.dmdirc.parser.irc.IRCChannelInfo;
29
 import com.dmdirc.parser.irc.IRCClientInfo;
28
 import com.dmdirc.parser.irc.IRCClientInfo;
30
 import com.dmdirc.parser.irc.IRCParser;
29
 import com.dmdirc.parser.irc.IRCParser;
99
     /**
98
     /**
100
      * Callback to all objects implementing the ChannelTopic Callback.
99
      * Callback to all objects implementing the ChannelTopic Callback.
101
      *
100
      *
102
-     * @see ChannelTopicListener
103
      * @param cChannel Channel that topic was set on
101
      * @param cChannel Channel that topic was set on
104
      * @param bIsJoinTopic True when getting topic on join, false if set by user/server
102
      * @param bIsJoinTopic True when getting topic on join, false if set by user/server
105
      */
103
      */

+ 0
- 6
irc/src/com/dmdirc/parser/irc/processors/ProcessWallops.java View File

25
 import com.dmdirc.parser.events.WallDesyncEvent;
25
 import com.dmdirc.parser.events.WallDesyncEvent;
26
 import com.dmdirc.parser.events.WallopEvent;
26
 import com.dmdirc.parser.events.WallopEvent;
27
 import com.dmdirc.parser.events.WalluserEvent;
27
 import com.dmdirc.parser.events.WalluserEvent;
28
-import com.dmdirc.parser.interfaces.callbacks.WallDesyncListener;
29
-import com.dmdirc.parser.interfaces.callbacks.WallopListener;
30
-import com.dmdirc.parser.interfaces.callbacks.WalluserListener;
31
 import com.dmdirc.parser.irc.IRCParser;
28
 import com.dmdirc.parser.irc.IRCParser;
32
 import com.dmdirc.parser.irc.ProcessingManager;
29
 import com.dmdirc.parser.irc.ProcessingManager;
33
 
30
 
82
     /**
79
     /**
83
      * Callback to all objects implementing the Wallop Callback.
80
      * Callback to all objects implementing the Wallop Callback.
84
      *
81
      *
85
-     * @see WallopListener
86
      * @param message The message
82
      * @param message The message
87
      * @param host Host of the user who sent the wallop
83
      * @param host Host of the user who sent the wallop
88
      */
84
      */
93
     /**
89
     /**
94
      * Callback to all objects implementing the Walluser Callback.
90
      * Callback to all objects implementing the Walluser Callback.
95
      *
91
      *
96
-     * @see WalluserListener
97
      * @param message The message
92
      * @param message The message
98
      * @param host Host of the user who sent the walluser
93
      * @param host Host of the user who sent the walluser
99
      */
94
      */
104
     /**
99
     /**
105
      * Callback to all objects implementing the WallDesync Callback.
100
      * Callback to all objects implementing the WallDesync Callback.
106
      *
101
      *
107
-     * @see WallDesyncListener
108
      * @param message The message
102
      * @param message The message
109
      * @param host Host of the user who sent the WallDesync
103
      * @param host Host of the user who sent the WallDesync
110
      */
104
      */

+ 0
- 6
irc/src/com/dmdirc/parser/irc/processors/ProcessWho.java View File

29
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
29
 import com.dmdirc.parser.interfaces.ChannelClientInfo;
30
 import com.dmdirc.parser.interfaces.ChannelInfo;
30
 import com.dmdirc.parser.interfaces.ChannelInfo;
31
 import com.dmdirc.parser.interfaces.ClientInfo;
31
 import com.dmdirc.parser.interfaces.ClientInfo;
32
-import com.dmdirc.parser.interfaces.callbacks.AwayStateListener;
33
-import com.dmdirc.parser.interfaces.callbacks.ChannelOtherAwayStateListener;
34
-import com.dmdirc.parser.interfaces.callbacks.OtherAwayStateListener;
35
 import com.dmdirc.parser.irc.IRCClientInfo;
32
 import com.dmdirc.parser.irc.IRCClientInfo;
36
 import com.dmdirc.parser.irc.IRCParser;
33
 import com.dmdirc.parser.irc.IRCParser;
37
 import com.dmdirc.parser.irc.ProcessingManager;
34
 import com.dmdirc.parser.irc.ProcessingManager;
104
     /**
101
     /**
105
      * Callback to all objects implementing the onAwayState Callback.
102
      * Callback to all objects implementing the onAwayState Callback.
106
      *
103
      *
107
-     * @see AwayStateListener
108
      * @param oldState Old Away State
104
      * @param oldState Old Away State
109
      * @param currentState Current Away State
105
      * @param currentState Current Away State
110
      * @param reason Best guess at away reason
106
      * @param reason Best guess at away reason
118
     /**
114
     /**
119
      * Callback to all objects implementing the onAwayStateOther Callback.
115
      * Callback to all objects implementing the onAwayStateOther Callback.
120
      *
116
      *
121
-     * @see OtherAwayStateListener
122
      * @param client Client this is for
117
      * @param client Client this is for
123
      * @param oldState Old Away State
118
      * @param oldState Old Away State
124
      * @param state Current Away State
119
      * @param state Current Away State
132
     /**
127
     /**
133
      * Callback to all objects implementing the onChannelAwayStateOther Callback.
128
      * Callback to all objects implementing the onChannelAwayStateOther Callback.
134
      *
129
      *
135
-     * @see ChannelOtherAwayStateListener
136
      * @param channel Channel this is for
130
      * @param channel Channel this is for
137
      * @param channelClient ChannelClient this is for
131
      * @param channelClient ChannelClient this is for
138
      * @param oldState Old Away State
132
      * @param oldState Old Away State

+ 6
- 9
xmpp/src/com/dmdirc/parser/xmpp/XmppParser.java View File

46
 import com.dmdirc.parser.interfaces.ClientInfo;
46
 import com.dmdirc.parser.interfaces.ClientInfo;
47
 import com.dmdirc.parser.interfaces.LocalClientInfo;
47
 import com.dmdirc.parser.interfaces.LocalClientInfo;
48
 import com.dmdirc.parser.interfaces.StringConverter;
48
 import com.dmdirc.parser.interfaces.StringConverter;
49
-import com.dmdirc.parser.interfaces.callbacks.CallbackInterface;
50
-import com.dmdirc.parser.interfaces.callbacks.DataInListener;
51
-import com.dmdirc.parser.interfaces.callbacks.DataOutListener;
52
 
49
 
53
 import java.net.URI;
50
 import java.net.URI;
54
 import java.util.Collection;
51
 import java.util.Collection;
433
             connection.connect();
430
             connection.connect();
434
 
431
 
435
             connection.addConnectionListener(new ConnectionListenerImpl());
432
             connection.addConnectionListener(new ConnectionListenerImpl());
436
-            connection.addPacketListener(new PacketListenerImpl(DataInListener.class),
433
+            connection.addPacketListener(new PacketListenerImpl(false),
437
                     new AcceptAllPacketFilter());
434
                     new AcceptAllPacketFilter());
438
-            connection.addPacketSendingListener(new PacketListenerImpl(DataOutListener.class),
435
+            connection.addPacketSendingListener(new PacketListenerImpl(true),
439
                     new AcceptAllPacketFilter());
436
                     new AcceptAllPacketFilter());
440
             connection.getChatManager().addChatListener(new ChatManagerListenerImpl());
437
             connection.getChatManager().addChatListener(new ChatManagerListenerImpl());
441
 
438
 
685
 
682
 
686
     private class PacketListenerImpl implements PacketListener {
683
     private class PacketListenerImpl implements PacketListener {
687
 
684
 
688
-        private final Class<? extends CallbackInterface> callback;
685
+        private final boolean dataOut;
689
 
686
 
690
-        public PacketListenerImpl(final Class<? extends CallbackInterface> callback) {
691
-            this.callback = callback;
687
+        public PacketListenerImpl(final boolean dataOut) {
688
+            this.dataOut = dataOut;
692
         }
689
         }
693
 
690
 
694
         @Override
691
         @Override
695
         public void processPacket(final Packet packet) {
692
         public void processPacket(final Packet packet) {
696
-            if (callback.equals(DataOutListener.class)) {
693
+            if (dataOut) {
697
                 getCallbackManager().publish(
694
                 getCallbackManager().publish(
698
                         new DataOutEvent(XmppParser.this, new Date(), packet.toXML()));
695
                         new DataOutEvent(XmppParser.this, new Date(), packet.toXML()));
699
             } else {
696
             } else {

Loading…
Cancel
Save