projects
/
jFCPlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update license to GPLv3, fix header comments
[jFCPlib.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
fcp
/
FcpListener.java
diff --git
a/src/main/java/net/pterodactylus/fcp/FcpListener.java
b/src/main/java/net/pterodactylus/fcp/FcpListener.java
index
4f0c77a
..
7ff3f96
100644
(file)
--- a/
src/main/java/net/pterodactylus/fcp/FcpListener.java
+++ b/
src/main/java/net/pterodactylus/fcp/FcpListener.java
@@
-1,9
+1,9
@@
/*
/*
- * jFCPlib - F
pcListener.java - Copyright © 2008
David Roden
+ * jFCPlib - F
cpListener.java - Copyright © 2008–2016
David Roden
*
*
- * This program is free software
;
you can redistribute it and/or modify
+ * This program is free software
:
you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* it under the terms of the GNU General Public License as published by
- * the Free Software Foundation
; either version 2
of the License, or
+ * the Free Software Foundation
, either version 3
of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@@
-12,8
+12,7
@@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package net.pterodactylus.fcp;
*/
package net.pterodactylus.fcp;
@@
-309,6
+308,8
@@
public interface FcpListener extends EventListener {
*/
public void receivedPersistentRequestRemoved(FcpConnection fcpConnection, PersistentRequestRemoved persistentRequestRemoved);
*/
public void receivedPersistentRequestRemoved(FcpConnection fcpConnection, PersistentRequestRemoved persistentRequestRemoved);
+ void receivedSubscribedUSK(FcpConnection fcpConnection, SubscribedUSK subscribedUSK);
+
/**
* Notifies a listener that a “SubscribedUSKUpdate” message was received.
*
/**
* Notifies a listener that a “SubscribedUSKUpdate” message was received.
*
@@
-329,6
+330,8
@@
public interface FcpListener extends EventListener {
*/
public void receivedPluginInfo(FcpConnection fcpConnection, PluginInfo pluginInfo);
*/
public void receivedPluginInfo(FcpConnection fcpConnection, PluginInfo pluginInfo);
+ void receivedPluginRemoved(FcpConnection fcpConnection, PluginRemoved pluginRemoved);
+
/**
* Notifies a listener that an “FCPPluginReply“ message was received.
*
/**
* Notifies a listener that an “FCPPluginReply“ message was received.
*
@@
-401,9
+404,10
@@
public interface FcpListener extends EventListener {
public void receivedProtocolError(FcpConnection fcpConnection, ProtocolError protocolError);
/**
public void receivedProtocolError(FcpConnection fcpConnection, ProtocolError protocolError);
/**
- * Notifies a listener that a message has been received. This method is only
- * called if {@link FcpConnection#handleMessage(FcpMessage)} does not
- * recognize the message. Should that ever happen, please file a bug report!
+ * Notifies a listener that a message has been received. This method is
+ * only called if {@link FcpConnection#handleMessage(FcpMessage)} does not
+ * recognize the message. Should that ever happen, please file a bug
+ * report!
*
* @param fcpConnection
* The connection that received the message
*
* @param fcpConnection
* The connection that received the message
@@
-413,15
+417,15
@@
public interface FcpListener extends EventListener {
public void receivedMessage(FcpConnection fcpConnection, FcpMessage fcpMessage);
/**
public void receivedMessage(FcpConnection fcpConnection, FcpMessage fcpMessage);
/**
- * Notifies a listener that a connection was closed. A closed connection
can
- *
be reestablished by calling {@link FcpConnection#connect()} on the sam
e
- * object again.
+ * Notifies a listener that a connection was closed. A closed connection
+ *
can be reestablished by calling {@link FcpConnection#connect()} on th
e
+ *
same
object again.
*
* @param fcpConnection
* The connection that was closed.
* @param throwable
*
* @param fcpConnection
* The connection that was closed.
* @param throwable
- * The exception that caused the disconnect, or
<code>null</code>
- * if there was no exception
+ * The exception that caused the disconnect, or
+ *
<code>null</code>
if there was no exception
*/
public void connectionClosed(FcpConnection fcpConnection, Throwable throwable);
*/
public void connectionClosed(FcpConnection fcpConnection, Throwable throwable);