LimeWire Consolidated API

com.limegroup.gnutella
Interface DownloadCallback

All Known Subinterfaces:
ActivityCallback
All Known Implementing Classes:
ActivityCallbackAdapter, InNetworkCallback

public interface DownloadCallback

A callback for download information.


Method Summary
 void addDownload(Downloader d)
          Add a file to the download window
 void downloadCompleted(Downloader d)
          Remove a downloader from the download window.
 void downloadsComplete()
          Notifies the GUI that all active downloads have been completed.
 void promptAboutCorruptDownload(Downloader dloader)
          Shows the user a message informing her that a file being downloaded is corrupt.
 

Method Detail

addDownload

void addDownload(Downloader d)
Add a file to the download window


downloadCompleted

void downloadCompleted(Downloader d)
Remove a downloader from the download window.


downloadsComplete

void downloadsComplete()
Notifies the GUI that all active downloads have been completed.


promptAboutCorruptDownload

void promptAboutCorruptDownload(Downloader dloader)
Shows the user a message informing her that a file being downloaded is corrupt.

This method MUST call dloader.discardCorruptDownload(boolean b) otherwise there will be threads piling up waiting for a notification


LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.