Преглед изворни кода

Merge pull request #74 from csmith/master

Delete callback interfaces.
pull/75/head
Greg Holmes пре 9 година
родитељ
комит
607902dc74
93 измењених фајлова са 10 додато и 3432 уклоњено
  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 Прегледај датотеку

@@ -1,43 +0,0 @@
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 Прегледај датотеку

@@ -1,46 +0,0 @@
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 Прегледај датотеку

@@ -1,28 +0,0 @@
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 Прегледај датотеку

@@ -1,61 +0,0 @@
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 Прегледај датотеку

@@ -1,61 +0,0 @@
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 Прегледај датотеку

@@ -1,61 +0,0 @@
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 Прегледај датотеку

@@ -1,50 +0,0 @@
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 Прегледај датотеку

@@ -1,60 +0,0 @@
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 Прегледај датотеку

@@ -1,49 +0,0 @@
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 Прегледај датотеку

@@ -1,59 +0,0 @@
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 Прегледај датотеку

@@ -1,59 +0,0 @@
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 Прегледај датотеку

@@ -1,62 +0,0 @@
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 Прегледај датотеку

@@ -1,62 +0,0 @@
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 Прегледај датотеку

@@ -1,46 +0,0 @@
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 Прегледај датотеку

@@ -1,51 +0,0 @@
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 Прегледај датотеку

@@ -1,60 +0,0 @@
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 Прегледај датотеку

@@ -1,59 +0,0 @@
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 Прегледај датотеку

@@ -1,52 +0,0 @@
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 Прегледај датотеку

@@ -1,52 +0,0 @@
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 Прегледај датотеку

@@ -1,52 +0,0 @@
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 Прегледај датотеку

@@ -1,46 +0,0 @@
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 Прегледај датотеку

@@ -1,61 +0,0 @@
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 Прегледај датотеку

@@ -1,48 +0,0 @@
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 Прегледај датотеку

@@ -1,60 +0,0 @@
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 Прегледај датотеку

@@ -1,47 +0,0 @@
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 Прегледај датотеку

@@ -1,44 +0,0 @@
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 Прегледај датотеку

@@ -1,43 +0,0 @@
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 Прегледај датотеку

@@ -1,44 +0,0 @@
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 Прегледај датотеку

@@ -1,44 +0,0 @@
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 Прегледај датотеку

@@ -1,44 +0,0 @@
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 Прегледај датотеку

@@ -1,43 +0,0 @@
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 Прегледај датотеку

@@ -1,47 +0,0 @@
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 Прегледај датотеку

@@ -1,43 +0,0 @@
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 Прегледај датотеку

@@ -1,44 +0,0 @@
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 Прегледај датотеку

@@ -1,44 +0,0 @@
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 Прегледај датотеку

@@ -1,43 +0,0 @@
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 Прегледај датотеку

@@ -1,43 +0,0 @@
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 Прегледај датотеку

@@ -1,47 +0,0 @@
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 Прегледај датотеку

@@ -1,47 +0,0 @@
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 Прегледај датотеку

@@ -1,43 +0,0 @@
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 Прегледај датотеку

@@ -1,44 +0,0 @@
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 Прегледај датотеку

@@ -1,50 +0,0 @@
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 Прегледај датотеку

@@ -1,42 +0,0 @@
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 Прегледај датотеку

@@ -1,42 +0,0 @@
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 Прегледај датотеку

@@ -1,42 +0,0 @@
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 Прегледај датотеку

@@ -1,42 +0,0 @@
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 Прегледај датотеку

@@ -1,48 +0,0 @@
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 Прегледај датотеку

@@ -1,51 +0,0 @@
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 Прегледај датотеку

@@ -1,50 +0,0 @@
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 Прегледај датотеку

@@ -1,50 +0,0 @@
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 Прегледај датотеку

@@ -1,49 +0,0 @@
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 Прегледај датотеку

@@ -1,47 +0,0 @@
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 Прегледај датотеку

@@ -1,43 +0,0 @@
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 Прегледај датотеку

@@ -1,48 +0,0 @@
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 Прегледај датотеку

@@ -1,42 +0,0 @@
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 Прегледај датотеку

@@ -1,41 +0,0 @@
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 Прегледај датотеку

@@ -1,45 +0,0 @@
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 Прегледај датотеку

@@ -1,51 +0,0 @@
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 Прегледај датотеку

@@ -1,50 +0,0 @@
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 Прегледај датотеку

@@ -1,45 +0,0 @@
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 Прегледај датотеку

@@ -1,49 +0,0 @@
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 Прегледај датотеку

@@ -1,46 +0,0 @@
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 Прегледај датотеку

@@ -1,50 +0,0 @@
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 Прегледај датотеку

@@ -1,47 +0,0 @@
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 Прегледај датотеку

@@ -1,46 +0,0 @@
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 Прегледај датотеку

@@ -1,46 +0,0 @@
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 Прегледај датотеку

@@ -1,47 +0,0 @@
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 Прегледај датотеку

@@ -1,29 +0,0 @@
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 Прегледај датотеку

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

+ 0
- 2
irc/src/com/dmdirc/parser/irc/ProcessingManager.java Прегледај датотеку

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

+ 2
- 3
irc/src/com/dmdirc/parser/irc/SimpleNickInUseHandler.java Прегледај датотеку

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

+ 2
- 3
irc/src/com/dmdirc/parser/irc/SimplePingFailureHandler.java Прегледај датотеку

@@ -23,16 +23,15 @@
23 23
 package com.dmdirc.parser.irc;
24 24
 
25 25
 import com.dmdirc.parser.interfaces.Parser;
26
-import com.dmdirc.parser.interfaces.callbacks.PingFailureListener;
27 26
 
28 27
 import java.util.Date;
29 28
 
30 29
 /**
31 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 35
     public void onPingFailed(final Parser parser, final Date date) {
37 36
         final IRCParser ircParser = (IRCParser) parser;
38 37
         if (ircParser.getPingNeeded()) {

+ 0
- 5
irc/src/com/dmdirc/parser/irc/processors/IRCProcessor.java Прегледај датотеку

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

+ 0
- 3
irc/src/com/dmdirc/parser/irc/processors/Process004005.java Прегледај датотеку

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

+ 0
- 3
irc/src/com/dmdirc/parser/irc/processors/Process464.java Прегледај датотеку

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

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessAway.java Прегледај датотеку

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

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessInvite.java Прегледај датотеку

@@ -23,7 +23,6 @@
23 23
 package com.dmdirc.parser.irc.processors;
24 24
 
25 25
 import com.dmdirc.parser.events.InviteEvent;
26
-import com.dmdirc.parser.interfaces.callbacks.InviteListener;
27 26
 import com.dmdirc.parser.irc.IRCParser;
28 27
 import com.dmdirc.parser.irc.ProcessingManager;
29 28
 
@@ -61,7 +60,6 @@ public class ProcessInvite extends IRCProcessor {
61 60
     /**
62 61
      * Callback to all objects implementing the Invite Callback.
63 62
      *
64
-     * @see InviteListener
65 63
      * @param userHost The hostname of the person who invited us
66 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 Прегледај датотеку

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

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessKick.java Прегледај датотеку

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

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessListModes.java Прегледај датотеку

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

+ 0
- 6
irc/src/com/dmdirc/parser/irc/processors/ProcessMOTD.java Прегледај датотеку

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

+ 0
- 38
irc/src/com/dmdirc/parser/irc/processors/ProcessMessage.java Прегледај датотеку

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

+ 0
- 8
irc/src/com/dmdirc/parser/irc/processors/ProcessMode.java Прегледај датотеку

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

+ 0
- 4
irc/src/com/dmdirc/parser/irc/processors/ProcessNames.java Прегледај датотеку

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

+ 0
- 4
irc/src/com/dmdirc/parser/irc/processors/ProcessNick.java Прегледај датотеку

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

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessNickInUse.java Прегледај датотеку

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

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessNoticeAuth.java Прегледај датотеку

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

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessPart.java Прегледај датотеку

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

+ 0
- 4
irc/src/com/dmdirc/parser/irc/processors/ProcessQuit.java Прегледај датотеку

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

+ 0
- 2
irc/src/com/dmdirc/parser/irc/processors/ProcessTopic.java Прегледај датотеку

@@ -24,7 +24,6 @@ package com.dmdirc.parser.irc.processors;
24 24
 
25 25
 import com.dmdirc.parser.events.ChannelTopicEvent;
26 26
 import com.dmdirc.parser.interfaces.ChannelInfo;
27
-import com.dmdirc.parser.interfaces.callbacks.ChannelTopicListener;
28 27
 import com.dmdirc.parser.irc.IRCChannelInfo;
29 28
 import com.dmdirc.parser.irc.IRCClientInfo;
30 29
 import com.dmdirc.parser.irc.IRCParser;
@@ -99,7 +98,6 @@ public class ProcessTopic extends IRCProcessor {
99 98
     /**
100 99
      * Callback to all objects implementing the ChannelTopic Callback.
101 100
      *
102
-     * @see ChannelTopicListener
103 101
      * @param cChannel Channel that topic was set on
104 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 Прегледај датотеку

@@ -25,9 +25,6 @@ package com.dmdirc.parser.irc.processors;
25 25
 import com.dmdirc.parser.events.WallDesyncEvent;
26 26
 import com.dmdirc.parser.events.WallopEvent;
27 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 28
 import com.dmdirc.parser.irc.IRCParser;
32 29
 import com.dmdirc.parser.irc.ProcessingManager;
33 30
 
@@ -82,7 +79,6 @@ public class ProcessWallops extends IRCProcessor {
82 79
     /**
83 80
      * Callback to all objects implementing the Wallop Callback.
84 81
      *
85
-     * @see WallopListener
86 82
      * @param message The message
87 83
      * @param host Host of the user who sent the wallop
88 84
      */
@@ -93,7 +89,6 @@ public class ProcessWallops extends IRCProcessor {
93 89
     /**
94 90
      * Callback to all objects implementing the Walluser Callback.
95 91
      *
96
-     * @see WalluserListener
97 92
      * @param message The message
98 93
      * @param host Host of the user who sent the walluser
99 94
      */
@@ -104,7 +99,6 @@ public class ProcessWallops extends IRCProcessor {
104 99
     /**
105 100
      * Callback to all objects implementing the WallDesync Callback.
106 101
      *
107
-     * @see WallDesyncListener
108 102
      * @param message The message
109 103
      * @param host Host of the user who sent the WallDesync
110 104
      */

+ 0
- 6
irc/src/com/dmdirc/parser/irc/processors/ProcessWho.java Прегледај датотеку

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

+ 6
- 9
xmpp/src/com/dmdirc/parser/xmpp/XmppParser.java Прегледај датотеку

@@ -46,9 +46,6 @@ import com.dmdirc.parser.interfaces.ChannelInfo;
46 46
 import com.dmdirc.parser.interfaces.ClientInfo;
47 47
 import com.dmdirc.parser.interfaces.LocalClientInfo;
48 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 50
 import java.net.URI;
54 51
 import java.util.Collection;
@@ -433,9 +430,9 @@ public class XmppParser extends BaseSocketAwareParser {
433 430
             connection.connect();
434 431
 
435 432
             connection.addConnectionListener(new ConnectionListenerImpl());
436
-            connection.addPacketListener(new PacketListenerImpl(DataInListener.class),
433
+            connection.addPacketListener(new PacketListenerImpl(false),
437 434
                     new AcceptAllPacketFilter());
438
-            connection.addPacketSendingListener(new PacketListenerImpl(DataOutListener.class),
435
+            connection.addPacketSendingListener(new PacketListenerImpl(true),
439 436
                     new AcceptAllPacketFilter());
440 437
             connection.getChatManager().addChatListener(new ChatManagerListenerImpl());
441 438
 
@@ -685,15 +682,15 @@ public class XmppParser extends BaseSocketAwareParser {
685 682
 
686 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 691
         @Override
695 692
         public void processPacket(final Packet packet) {
696
-            if (callback.equals(DataOutListener.class)) {
693
+            if (dataOut) {
697 694
                 getCallbackManager().publish(
698 695
                         new DataOutEvent(XmppParser.this, new Date(), packet.toXML()));
699 696
             } else {

Loading…
Откажи
Сачувај