From 5f2cf2dc2269c59ad3fbcc0e8bdf822bbb6aed23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 14 May 2008 13:00:48 +0000 Subject: [PATCH] add emitting client to progress event 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 | 2 +- src/net/pterodactylus/fcp/highlevel/HighLevelProgressListener.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java b/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java index b64601d..a347e68 100644 --- a/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java +++ b/src/net/pterodactylus/fcp/highlevel/HighLevelClient.java @@ -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); } } diff --git a/src/net/pterodactylus/fcp/highlevel/HighLevelProgressListener.java b/src/net/pterodactylus/fcp/highlevel/HighLevelProgressListener.java index 926ea32..179a083 100644 --- a/src/net/pterodactylus/fcp/highlevel/HighLevelProgressListener.java +++ b/src/net/pterodactylus/fcp/highlevel/HighLevelProgressListener.java @@ -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); } -- 2.7.4