Package com.biglybt.core.global.impl
Class GlobalManagerImpl.DownloadStateTagger
- java.lang.Object
-
- com.biglybt.core.tag.impl.TagTypeBase
-
- com.biglybt.core.tag.impl.TagTypeWithState
-
- com.biglybt.core.global.impl.GlobalManagerImpl.DownloadStateTagger
-
- All Implemented Interfaces:
DownloadManagerListener
,TagListener
,TagType
- Enclosing class:
- GlobalManagerImpl
private class GlobalManagerImpl.DownloadStateTagger extends TagTypeWithState implements DownloadManagerListener
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private class
GlobalManagerImpl.DownloadStateTagger.MyTag
-
Nested classes/interfaces inherited from class com.biglybt.core.tag.impl.TagTypeBase
TagTypeBase.TagGroupImpl
-
-
Field Summary
Fields Modifier and Type Field Description private int[]
color_default
private java.lang.Object
comp_tag_key
private TagDownloadWithState[]
derived_tags
private java.lang.Object
main_tag_key
private TagDownloadWithState
tag_active
private TagDownloadWithState
tag_checking
private TagDownloadWithState
tag_complete
private TagDownloadWithState
tag_deleting
private TagDownloadWithState
tag_downloading
private TagDownloadWithState
tag_error
private TagDownloadWithState
tag_inactive
private TagDownloadWithState
tag_incomplete
private TagDownloadWithState
tag_initialising
private TagDownloadWithState
tag_moving
private TagDownloadWithState
tag_paused
private TagDownloadWithState
tag_queued_downloading
private TagDownloadWithState
tag_queued_seeding
private TagDownloadWithState
tag_seeding
private TagDownloadWithState
tag_stopped
(package private) int
user_mode
-
Fields inherited from class com.biglybt.core.tag.impl.TagTypeBase
AT_COLOR_ID
-
Fields inherited from interface com.biglybt.core.tag.TagType
TT_DOWNLOAD_CATEGORY, TT_DOWNLOAD_INTERNAL, TT_DOWNLOAD_MANUAL, TT_DOWNLOAD_STATE, TT_PEER_IPSET, TT_TAG_SUGGESTION
-
-
Constructor Summary
Constructors Constructor Description DownloadStateTagger(Core core)
-
Method Summary
All Methods Instance Methods Concrete 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 completedvoid
filePriorityChanged(DownloadManager download, DiskManagerFileInfo file)
int[]
getColorDefault()
private void
initialise()
void
positionChanged(DownloadManager download, int oldPosition, int newPosition)
(package private) void
remove(DownloadManager manager)
(package private) void
removeInitiated(DownloadManager manager)
void
stateChanged(DownloadManager manager, int state)
(package private) void
updateActive()
-
Methods inherited from class com.biglybt.core.tag.impl.TagTypeWithState
addTag, getResolver, getTagCount, getTags, removeTag, removeTaggable, resolveTaggable
-
Methods inherited from class com.biglybt.core.tag.impl.TagTypeBase
addTagListener, addTagType, addTagTypeListener, closing, createTag, fireChanged, fireMembershipChanged, fireMetadataChanged, generate, generateConfig, getTag, getTag, getTagGroup, getTagManager, getTagsForTaggable, getTagType, getTagTypeFeatures, getTagTypeName, hasTagTypeFeature, isTagTypeAuto, isTagTypePersistent, readBooleanAttribute, readLongAttribute, readLongListAttribute, readMapAttribute, readStringAttribute, readStringListAttribute, removeTagListener, removeTagType, removeTagTypeListener, requestAttention, setTagGroup, sync, taggableAdded, taggableRemoved, taggableSync, writeBooleanAttribute, writeLongAttribute, writeLongListAttribute, writeMapAttribute, writeStringAttribute, writeStringListAttribute
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.biglybt.core.download.DownloadManagerListener
fileLocationChanged
-
-
-
-
Field Detail
-
color_default
private final int[] color_default
-
main_tag_key
private final java.lang.Object main_tag_key
-
comp_tag_key
private final java.lang.Object comp_tag_key
-
tag_initialising
private final TagDownloadWithState tag_initialising
-
tag_downloading
private final TagDownloadWithState tag_downloading
-
tag_seeding
private final TagDownloadWithState tag_seeding
-
tag_queued_downloading
private final TagDownloadWithState tag_queued_downloading
-
tag_queued_seeding
private final TagDownloadWithState tag_queued_seeding
-
tag_stopped
private final TagDownloadWithState tag_stopped
-
tag_error
private final TagDownloadWithState tag_error
-
tag_active
private final TagDownloadWithState tag_active
-
tag_inactive
private final TagDownloadWithState tag_inactive
-
tag_complete
private final TagDownloadWithState tag_complete
-
tag_incomplete
private final TagDownloadWithState tag_incomplete
-
tag_moving
private final TagDownloadWithState tag_moving
-
tag_checking
private final TagDownloadWithState tag_checking
-
tag_deleting
private final TagDownloadWithState tag_deleting
-
tag_paused
private final TagDownloadWithState tag_paused
-
derived_tags
private final TagDownloadWithState[] derived_tags
-
user_mode
int user_mode
-
-
Constructor Detail
-
DownloadStateTagger
DownloadStateTagger(Core core)
-
-
Method Detail
-
initialise
private void initialise()
-
stateChanged
public void stateChanged(DownloadManager manager, int state)
- Specified by:
stateChanged
in interfaceDownloadManagerListener
-
updateActive
void updateActive()
-
removeInitiated
void removeInitiated(DownloadManager manager)
-
remove
void remove(DownloadManager manager)
-
downloadComplete
public void downloadComplete(DownloadManager manager)
Description copied from interface:DownloadManagerListener
Notification that we were downloading and the download has completed- Specified by:
downloadComplete
in interfaceDownloadManagerListener
-
completionChanged
public void completionChanged(DownloadManager manager, boolean bCompleted)
Description copied from interface:DownloadManagerListener
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.- Specified by:
completionChanged
in interfaceDownloadManagerListener
-
positionChanged
public void positionChanged(DownloadManager download, int oldPosition, int newPosition)
- Specified by:
positionChanged
in interfaceDownloadManagerListener
-
filePriorityChanged
public void filePriorityChanged(DownloadManager download, DiskManagerFileInfo file)
- Specified by:
filePriorityChanged
in interfaceDownloadManagerListener
-
getColorDefault
public int[] getColorDefault()
- Specified by:
getColorDefault
in interfaceTagType
- Overrides:
getColorDefault
in classTagTypeBase
-
-