Class DownloadEventNotifierImpl.DownloadActivationNotifier
- java.lang.Object
-
- com.biglybt.pifimpl.local.download.DownloadEventNotifierImpl.BaseDownloadListener
-
- com.biglybt.pifimpl.local.download.DownloadEventNotifierImpl.DownloadActivationNotifier
-
- All Implemented Interfaces:
DownloadActivationListener
,DownloadManagerListener
- Enclosing class:
- DownloadEventNotifierImpl
public class DownloadEventNotifierImpl.DownloadActivationNotifier extends DownloadEventNotifierImpl.BaseDownloadListener implements DownloadActivationListener
-
-
Field Summary
-
Fields inherited from class com.biglybt.pifimpl.local.download.DownloadEventNotifierImpl.BaseDownloadListener
listeners
-
-
Constructor Summary
Constructors Constructor Description DownloadActivationNotifier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
activationRequested(DownloadActivationEvent event)
A request has been made to activate the download.void
downloadAdded(Download download)
void
downloadRemoved(Download download)
-
Methods inherited from class com.biglybt.pifimpl.local.download.DownloadEventNotifierImpl.BaseDownloadListener
addListener, removeListener
-
-
-
-
Method Detail
-
downloadAdded
public void downloadAdded(Download download)
- Specified by:
downloadAdded
in interfaceDownloadManagerListener
-
downloadRemoved
public void downloadRemoved(Download download)
- Specified by:
downloadRemoved
in interfaceDownloadManagerListener
-
activationRequested
public boolean activationRequested(DownloadActivationEvent event)
Description copied from interface:DownloadActivationListener
A request has been made to activate the download. Not this is only fired on an increase in the activation request count, not on a decrease. To get a current snapshot of this use the method getActivationState in Download- Specified by:
activationRequested
in interfaceDownloadActivationListener
- Returns:
- return true if the download will be activated, false otherwise
-
-