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 ClassesNested classes/interfaces inherited from class com.biglybt.core.tag.impl.TagTypeBase
TagTypeBase.TagGroupImpl
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]
private final Object
private final TagDownloadWithState[]
private final Object
private final TagDownloadWithState
private final TagDownloadWithState
private final TagDownloadWithState
private final TagDownloadWithState
private final TagDownloadWithState
private final TagDownloadWithState
private final TagDownloadWithState
private final TagDownloadWithState
private final TagDownloadWithState
private final TagDownloadWithState
private final TagDownloadWithState
private final TagDownloadWithState
private final TagDownloadWithState
private final TagDownloadWithState
private final TagDownloadWithState
(package private) int
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_SWARM_TAG, TT_TAG_SUGGESTION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
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[]
private void
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
Methods inherited from class com.biglybt.core.tag.impl.TagTypeWithState
addTag, createTag, getResolver, getTagCount, getTags, removeTag, removeTaggable, resolveTaggable
Methods inherited from class com.biglybt.core.tag.impl.TagTypeBase
addTagListener, addTagType, addTagTypeListener, closing, createTag, fireChanged, fireMetadataChanged, generate, generateConfig, getTag, getTag, getTagAndTaggableMut, getTagGroup, getTagManager, getTagsForTaggable, getTagType, getTagTypeFeatures, getTagTypeName, hasTagTypeFeature, isTagTypeAuto, isTagTypePersistent, readBooleanAttribute, readLongAttribute, readLongListAttribute, readMapAttribute, readStringAttribute, readStringListAttribute, removeTagListener, removeTagType, removeTagTypeListener, requestAttention, setTagGroup, sync, taggableAdded, taggableRemoved, taggableSync, tagsOrMembershipChanged, 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 Details
-
color_default
private final int[] color_default -
main_tag_key
-
comp_tag_key
-
tag_initialising
-
tag_downloading
-
tag_seeding
-
tag_queued_downloading
-
tag_queued_seeding
-
tag_stopped
-
tag_error
-
tag_active
-
tag_inactive
-
tag_complete
-
tag_incomplete
-
tag_moving
-
tag_checking
-
tag_deleting
-
tag_paused
-
derived_tags
-
user_mode
int user_mode
-
-
Constructor Details
-
DownloadStateTagger
DownloadStateTagger(Core core)
-
-
Method Details
-
initialise
private void initialise() -
stateChanged
- Specified by:
stateChanged
in interfaceDownloadManagerListener
-
updateActive
void updateActive() -
removeInitiated
-
remove
-
downloadComplete
Description copied from interface:DownloadManagerListener
Notification that we were downloading and the download has completed- Specified by:
downloadComplete
in interfaceDownloadManagerListener
-
completionChanged
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
- Specified by:
positionChanged
in interfaceDownloadManagerListener
-
filePriorityChanged
- Specified by:
filePriorityChanged
in interfaceDownloadManagerListener
-
getColorDefault
public int[] getColorDefault()- Specified by:
getColorDefault
in interfaceTagType
- Overrides:
getColorDefault
in classTagTypeBase
-