FileDocCategorySizeDatePackage
DownloadEventNotifierImpl.javaAPI DocAzureus 3.0.3.410800Thu May 31 16:28:44 BST 2007org.gudy.azureus2.pluginsimpl.local.download

DownloadEventNotifierImpl

public class DownloadEventNotifierImpl extends Object implements org.gudy.azureus2.plugins.download.DownloadEventNotifier
This is an implementation of DownloadEventNotifier to be simplify life for plugins if they want to register event listeners across all downloads managed by Azureus.

Fields Summary
private DownloadActivationNotifier
download_activation_notifier
private DownloadNotifier
download_notifier
private DownloadPeerNotifier
download_peer_notifier
private DownloadPropertyNotifier
download_property_notifier
private DownloadTrackerNotifier
download_tracker_notifier
private DownloadTrackerNotifier
download_tracker_notifier_instant
private DownloadWillBeRemovedNotifier
download_will_be_removed_notifier
private org.gudy.azureus2.plugins.download.DownloadManager
dm
Constructors Summary
public DownloadEventNotifierImpl(org.gudy.azureus2.plugins.download.DownloadManager dm)

		this.dm = dm;
		this.download_activation_notifier = new DownloadActivationNotifier();
		this.download_notifier = new DownloadNotifier();
		this.download_peer_notifier = new DownloadPeerNotifier();
		this.download_property_notifier = new DownloadPropertyNotifier();
		this.download_tracker_notifier = new DownloadTrackerNotifier(false);
		this.download_tracker_notifier_instant = new DownloadTrackerNotifier(true);
		this.download_will_be_removed_notifier = new DownloadWillBeRemovedNotifier();
	
Methods Summary
public voidaddActivationListener(org.gudy.azureus2.plugins.download.DownloadActivationListener l)

		this.download_activation_notifier.addListener(l);
	
public voidaddDownloadWillBeRemovedListener(org.gudy.azureus2.plugins.download.DownloadWillBeRemovedListener l)

		this.download_will_be_removed_notifier.addListener(l);
	
public voidaddListener(org.gudy.azureus2.plugins.download.DownloadListener l)

		this.download_notifier.addListener(l);
	
public voidaddPeerListener(org.gudy.azureus2.plugins.download.DownloadPeerListener l)

		this.download_peer_notifier.addListener(l);
	
public voidaddPropertyListener(org.gudy.azureus2.plugins.download.DownloadPropertyListener l)

		this.download_property_notifier.addListener(l);
	
public voidaddTrackerListener(org.gudy.azureus2.plugins.download.DownloadTrackerListener l)

		this.download_tracker_notifier.addListener(l);
	
public voidaddTrackerListener(org.gudy.azureus2.plugins.download.DownloadTrackerListener l, boolean immediateTrigger)

		(immediateTrigger ? this.download_tracker_notifier_instant : this.download_tracker_notifier).addListener(l);
	
public voidremoveActivationListener(org.gudy.azureus2.plugins.download.DownloadActivationListener l)

		this.download_activation_notifier.removeListener(l);
	
public voidremoveDownloadWillBeRemovedListener(org.gudy.azureus2.plugins.download.DownloadWillBeRemovedListener l)

		this.download_will_be_removed_notifier.removeListener(l);
	
public voidremoveListener(org.gudy.azureus2.plugins.download.DownloadListener l)

		this.download_notifier.removeListener(l);
	
public voidremovePeerListener(org.gudy.azureus2.plugins.download.DownloadPeerListener l)

		this.download_peer_notifier.removeListener(l);
	
public voidremovePropertyListener(org.gudy.azureus2.plugins.download.DownloadPropertyListener l)

		this.download_property_notifier.removeListener(l);
	
public voidremoveTrackerListener(org.gudy.azureus2.plugins.download.DownloadTrackerListener l)

		// We don't know which notifier we added it to, so remove it from both.
		this.download_tracker_notifier.removeListener(l);
		this.download_tracker_notifier_instant.removeListener(l);