Class StartStopRulesDefaultPlugin.StartStopDownloadListener
java.lang.Object
com.biglybt.plugin.startstoprules.defaultplugin.StartStopRulesDefaultPlugin.StartStopDownloadListener
- All Implemented Interfaces:
DownloadListener
- Enclosing class:
StartStopRulesDefaultPlugin
private class StartStopRulesDefaultPlugin.StartStopDownloadListener
extends Object
implements DownloadListener
Listen to Download changes and recalc SR if needed
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpositionChanged(Download download, int oldPosition, int newPosition) Position of download has changed.voidstateChanged(Download download, int old_state, int new_state) The Download's state has changed.
-
Constructor Details
-
StartStopDownloadListener
private StartStopDownloadListener()
-
-
Method Details
-
stateChanged
Description copied from interface:DownloadListenerThe Download's state has changed. This is also triggered if the user toggles the Force Start on/off.- Specified by:
stateChangedin interfaceDownloadListener
-
positionChanged
Description copied from interface:DownloadListenerPosition of download has changed.- Specified by:
positionChangedin interfaceDownloadListener- Parameters:
download- object in which the position has changedoldPosition- position that the download used to be atnewPosition- position that the download is now at
-