add emitting client to progress event
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 14 May 2008 13:00:48 +0000 (13:00 +0000)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Wed, 14 May 2008 13:00:48 +0000 (13:00 +0000)
git-svn-id: http://trooper/svn/projects/jFCPlib/branch/high-level-client@875 c3eda9e8-030b-0410-8277-bc7414b0a119

src/net/pterodactylus/fcp/highlevel/HighLevelClient.java
src/net/pterodactylus/fcp/highlevel/HighLevelProgressListener.java

index b64601d..a347e68 100644 (file)
@@ -226,7 +226,7 @@ public class HighLevelClient {
         */
        private void fireProgressReceived(String identifier, HighLevelProgress highLevelProgress) {
                for (HighLevelProgressListener highLevelProgressListener: highLevelProgressListeners) {
-                       highLevelProgressListener.progressReceived(identifier, highLevelProgress);
+                       highLevelProgressListener.progressReceived(this, identifier, highLevelProgress);
                }
        }
 
index 926ea32..179a083 100644 (file)
@@ -33,11 +33,13 @@ public interface HighLevelProgressListener extends EventListener {
         * Notifies a listener that the request with the given identifier has made
         * some progress.
         * 
+        * @param highLevelClient
+        *            The high-level client that emitted this event
         * @param identifier
         *            The identifier of the request
         * @param highLevelProgress
         *            The progress of the request
         */
-       public void progressReceived(String identifier, HighLevelProgress highLevelProgress);
+       public void progressReceived(HighLevelClient highLevelClient, String identifier, HighLevelProgress highLevelProgress);
 
 }