Implement “SentFeed” response message.
[jFCPlib.git] / src / net / pterodactylus / fcp / FcpListenerManager.java
index 1a8a13c..4e1cce6 100644 (file)
@@ -1,6 +1,5 @@
 /*
- * jFCPlib - FcpListenerManager.java -
- * Copyright © 2009 David Roden
+ * jFCPlib - FcpListenerManager.java - Copyright © 2009 David Roden
  *
  * 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
@@ -512,6 +511,34 @@ public class FcpListenerManager extends AbstractListenerManager<FcpConnection, F
        }
 
        /**
+        * Notifies all listeners that a “SentFeed” message was received.
+        *
+        * @see FcpListener#receivedSentFeed(FcpConnection, SentFeed)
+        * @param sentFeed
+        *            The “SentFeed” message.
+        */
+       public void fireSentFeed(SentFeed sentFeed) {
+               for (FcpListener fcpListener : getListeners()) {
+                       fcpListener.receivedSentFeed(getSource(), sentFeed);
+               }
+       }
+
+       /**
+        * Notifies all listeners that a “ReceivedBookmarkFeed” message was
+        * received.
+        *
+        * @see FcpListener#receivedBookmarkFeed(FcpConnection,
+        *      ReceivedBookmarkFeed)
+        * @param receivedBookmarkFeed
+        *            The “ReceivedBookmarkFeed” message
+        */
+       public void fireReceivedBookmarkFeed(ReceivedBookmarkFeed receivedBookmarkFeed) {
+               for (FcpListener fcpListener : getListeners()) {
+                       fcpListener.receivedBookmarkFeed(getSource(), receivedBookmarkFeed);
+               }
+       }
+
+       /**
         * Notifies all registered listeners that a message has been received.
         *
         * @see FcpListener#receivedMessage(FcpConnection, FcpMessage)