/*
- * 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
}
/**
+ * 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)