Package com.biglybt.core.download
Interface DownloadManagerListener
-
- All Known Implementing Classes:
DownloadImpl
,DownloadManagerAdapter
,FilesView
,GlobalManagerImpl
,GlobalManagerImpl.DownloadStateTagger
,MyTorrentsSubView
,MyTorrentsView
,MyTorrentsView_Big
,MyTorrentsView_Small
,SBC_TorrentDetailsView
public interface DownloadManagerListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description 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 completeddefault void
fileLocationChanged(DownloadManager download, DiskManagerFileInfo file)
void
filePriorityChanged(DownloadManager download, DiskManagerFileInfo file)
void
positionChanged(DownloadManager download, int oldPosition, int newPosition)
void
stateChanged(DownloadManager manager, int state)
-
-
-
Method Detail
-
stateChanged
void stateChanged(DownloadManager manager, int state)
-
downloadComplete
void downloadComplete(DownloadManager manager)
Notification that we were downloading and the download has completed
-
completionChanged
void completionChanged(DownloadManager manager, boolean bCompleted)
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.
-
positionChanged
void positionChanged(DownloadManager download, int oldPosition, int newPosition)
-
filePriorityChanged
void filePriorityChanged(DownloadManager download, DiskManagerFileInfo file)
-
fileLocationChanged
default void fileLocationChanged(DownloadManager download, DiskManagerFileInfo file)
- Parameters:
download
-file
- null - overall location change (e.g. move download)
-
-