Update license to GPLv3, fix header comments
[jFCPlib.git] / src / main / java / net / pterodactylus / fcp / FcpListener.java
index 4f0c77a..7ff3f96 100644 (file)
@@ -1,9 +1,9 @@
 /*
- * jFCPlib - FpcListener.java - Copyright © 2008 David Roden
+ * jFCPlib - FcpListener.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
- * 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,
@@ -12,8 +12,7 @@
  * 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;
@@ -309,6 +308,8 @@ public interface FcpListener extends EventListener {
         */
        public void receivedPersistentRequestRemoved(FcpConnection fcpConnection, PersistentRequestRemoved persistentRequestRemoved);
 
+       void receivedSubscribedUSK(FcpConnection fcpConnection, SubscribedUSK subscribedUSK);
+
        /**
         * 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);
 
+       void receivedPluginRemoved(FcpConnection fcpConnection, PluginRemoved pluginRemoved);
+
        /**
         * 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);
 
        /**
-        * 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
@@ -413,15 +417,15 @@ public interface FcpListener extends EventListener {
        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 same
-        * object again.
+        * Notifies a listener that a connection was closed. A closed connection
+        * can be reestablished by calling {@link FcpConnection#connect()} on the
+        * same object again.
         *
         * @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);