Class DownloadEventNotifierImpl.DownloadAttributeNotifier
- java.lang.Object
-
- com.biglybt.pifimpl.local.download.DownloadEventNotifierImpl.BaseDownloadListener
-
- com.biglybt.pifimpl.local.download.DownloadEventNotifierImpl.DownloadAttributeNotifier
-
- All Implemented Interfaces:
DownloadAttributeListener
,DownloadManagerListener
- Enclosing class:
- DownloadEventNotifierImpl
public class DownloadEventNotifierImpl.DownloadAttributeNotifier extends DownloadEventNotifierImpl.BaseDownloadListener implements DownloadAttributeListener
-
-
Field Summary
Fields Modifier and Type Field Description private int
event_type
private TorrentAttribute
ta
-
Fields inherited from class com.biglybt.pifimpl.local.download.DownloadEventNotifierImpl.BaseDownloadListener
listeners
-
Fields inherited from interface com.biglybt.pif.download.DownloadAttributeListener
WILL_BE_READ, WRITTEN
-
-
Constructor Summary
Constructors Constructor Description DownloadAttributeNotifier(TorrentAttribute ta, int event_type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
attributeEventOccurred(Download d, TorrentAttribute ta, int event_type)
This method will be called when an attribute event occurs.void
downloadAdded(Download d)
void
downloadRemoved(Download d)
-
Methods inherited from class com.biglybt.pifimpl.local.download.DownloadEventNotifierImpl.BaseDownloadListener
addListener, removeListener
-
-
-
-
Field Detail
-
ta
private TorrentAttribute ta
-
event_type
private int event_type
-
-
Constructor Detail
-
DownloadAttributeNotifier
public DownloadAttributeNotifier(TorrentAttribute ta, int event_type)
-
-
Method Detail
-
downloadAdded
public void downloadAdded(Download d)
- Specified by:
downloadAdded
in interfaceDownloadManagerListener
-
downloadRemoved
public void downloadRemoved(Download d)
- Specified by:
downloadRemoved
in interfaceDownloadManagerListener
-
attributeEventOccurred
public void attributeEventOccurred(Download d, TorrentAttribute ta, int event_type)
Description copied from interface:DownloadAttributeListener
This method will be called when an attribute event occurs.- Specified by:
attributeEventOccurred
in interfaceDownloadAttributeListener
- Parameters:
d
- The download object involved.ta
- The attribute involved.event_type
- Either WRITTEN or WILL_BE_READ.
-
-