Implement the “ReceivedBookmarkFeed” message.
[jFCPlib.git] / src / net / pterodactylus / fcp / FcpListener.java
index 90860e5..151fcfe 100644 (file)
@@ -25,7 +25,6 @@ import java.util.EventListener;
  * Interface for objects that want to be notified on certain FCP events.
  * 
  * @author David ‘Bombe’ Roden <bombe@freenetproject.org>
- * @version $Id$
  */
 public interface FcpListener extends EventListener {
 
@@ -228,7 +227,7 @@ public interface FcpListener extends EventListener {
         * @param finishedCompression
         *            The “FinishedCompression” message
         */
-       public void receviedFinishedCompression(FcpConnection fcpConnection, FinishedCompression finishedCompression);
+       public void receivedFinishedCompression(FcpConnection fcpConnection, FinishedCompression finishedCompression);
 
        /**
         * Notifies a listener that an “UnknownPeerNoteType” was received.
@@ -373,6 +372,16 @@ public interface FcpListener extends EventListener {
        public void receivedPutFetchable(FcpConnection fcpConnection, PutFetchable putFetchable);
 
        /**
+        * Notifies a listener that a bookmark was updated.
+        *
+        * @param fcpConnection
+        *            The connection that received the message
+        * @param receivedBookmarkFeed
+        *            The “ReceivedBookmarkFeed” message
+        */
+       public void receivedBookmarkFeed(FcpConnection fcpConnection, ReceivedBookmarkFeed receivedBookmarkFeed);
+
+       /**
         * Notifies a listener that a “ProtocolError” was received.
         * 
         * @param fcpConnection
@@ -401,7 +410,10 @@ public interface FcpListener extends EventListener {
         * 
         * @param fcpConnection
         *            The connection that was closed.
+        * @param throwable
+        *            The exception that caused the disconnect, or <code>null</code>
+        *            if there was no exception
         */
-       public void connectionClosed(FcpConnection fcpConnection);
+       public void connectionClosed(FcpConnection fcpConnection, Throwable throwable);
 
 }