org.gudy.azureus2.core3.download.impl
Class DownloadManagerAdapter

java.lang.Object
  extended by org.gudy.azureus2.core3.download.impl.DownloadManagerAdapter
All Implemented Interfaces:
DownloadManagerListener
Direct Known Subclasses:
GlobalManagerImpl

public class DownloadManagerAdapter
extends Object
implements DownloadManagerListener

Adapter for DownloadManagerListener


Constructor Summary
DownloadManagerAdapter()
           
 
Method Summary
 void completionChanged(DownloadManager manager, boolean bCompleted)
          Notification that the completion state has changed.
 void downloadComplete(DownloadManager manager)
          Notification that we were downloading and the download has completed
 void filePriorityChanged(DownloadManager download, DiskManagerFileInfo file)
           
 void positionChanged(DownloadManager download, int oldPosition, int newPosition)
           
 void stateChanged(DownloadManager manager, int state)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DownloadManagerAdapter

public DownloadManagerAdapter()
Method Detail

stateChanged

public void stateChanged(DownloadManager manager,
                         int state)
Specified by:
stateChanged in interface DownloadManagerListener

downloadComplete

public void downloadComplete(DownloadManager manager)
Description copied from interface: DownloadManagerListener
Notification that we were downloading and the download has completed

Specified by:
downloadComplete in interface DownloadManagerListener

completionChanged

public void completionChanged(DownloadManager manager,
                              boolean bCompleted)
Description copied from interface: DownloadManagerListener
Notification that the completion state has changed. Tells you when we switched from Completed to Incompleted (or visa versa) Does not get called when diskManager goes into CHECKING, but does when it goes out of CHECKING, to avoid torrents jumping momentarily from Completed to Incompleted to Completed again.

Specified by:
completionChanged in interface DownloadManagerListener

positionChanged

public void positionChanged(DownloadManager download,
                            int oldPosition,
                            int newPosition)
Specified by:
positionChanged in interface DownloadManagerListener

filePriorityChanged

public void filePriorityChanged(DownloadManager download,
                                DiskManagerFileInfo file)
Specified by:
filePriorityChanged in interface DownloadManagerListener