/*
- * 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,
* 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;
*/
public void receivedPersistentRequestRemoved(FcpConnection fcpConnection, PersistentRequestRemoved persistentRequestRemoved);
+ void receivedSubscribedUSK(FcpConnection fcpConnection, SubscribedUSK subscribedUSK);
+
/**
* Notifies a listener that a “SubscribedUSKUpdate” message was received.
*
*/
public void receivedPluginInfo(FcpConnection fcpConnection, PluginInfo pluginInfo);
+ void receivedPluginRemoved(FcpConnection fcpConnection, PluginRemoved pluginRemoved);
+
/**
* Notifies a listener that an “FCPPluginReply“ message was received.
*
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
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);