Package com.biglybt.pif.download
Interface DownloadListener
- All Known Implementing Classes:
DHTTrackerPlugin
,DownloadEventNotifierImpl.DownloadNotifier
,LocalTrackerPlugin
,RunEverythingPlugin
,StartStopRulesDefaultPlugin.StartStopDownloadListener
,TagPropertyConstraintHandler
public interface DownloadListener
A listener informed of changes to a Download's state and position
-
Method Summary
Modifier and TypeMethodDescriptionvoid
positionChanged
(Download download, int oldPosition, int newPosition) Position of download has changed.void
stateChanged
(Download download, int old_state, int new_state) The Download's state has changed.
-
Method Details
-
stateChanged
The Download's state has changed. This is also triggered if the user toggles the Force Start on/off. -
positionChanged
Position of download has changed.- Parameters:
download
- object in which the position has changedoldPosition
- position that the download used to be atnewPosition
- position that the download is now at
-