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 TagTypeBase
TagTypeBase.TagGroupImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int[]private final Objectprivate final TagDownloadWithState[]private final Objectprivate final TagDownloadWithStateprivate final TagDownloadWithStateprivate final TagDownloadWithStateprivate final TagDownloadWithStateprivate final TagDownloadWithStateprivate final TagDownloadWithStateprivate final TagDownloadWithStateprivate final TagDownloadWithStateprivate final TagDownloadWithStateprivate final TagDownloadWithStateprivate final TagDownloadWithStateprivate final TagDownloadWithStateprivate final TagDownloadWithStateprivate final TagDownloadWithStateprivate final TagDownloadWithState(package private) intFields inherited from class TagTypeBase
AT_COLOR_IDFields inherited from interface 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 TypeMethodDescriptionvoidcompletionChanged(DownloadManager manager, boolean bCompleted) Notification that the completion state has changed.voiddownloadComplete(DownloadManager manager) Notification that we were downloading and the download has completedvoidfilePriorityChanged(DownloadManager download, DiskManagerFileInfo file) int[]private voidvoidpositionChanged(DownloadManager download, int oldPosition, int newPosition) (package private) voidremove(DownloadManager manager) (package private) voidremoveInitiated(DownloadManager manager) voidstateChanged(DownloadManager manager, int state) (package private) voidMethods inherited from class TagTypeWithState
addTag, createTag, getResolver, getTagCount, getTags, removeTag, removeTaggable, resolveTaggableMethods inherited from class 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, writeStringListAttributeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
stateChangedin interfaceDownloadManagerListener
-
updateActive
void updateActive() -
removeInitiated
-
remove
-
downloadComplete
Description copied from interface:DownloadManagerListenerNotification that we were downloading and the download has completed- Specified by:
downloadCompletein interfaceDownloadManagerListener
-
completionChanged
Description copied from interface:DownloadManagerListenerNotification 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:
completionChangedin interfaceDownloadManagerListener
-
positionChanged
- Specified by:
positionChangedin interfaceDownloadManagerListener
-
filePriorityChanged
- Specified by:
filePriorityChangedin interfaceDownloadManagerListener
-
getColorDefault
public int[] getColorDefault()- Specified by:
getColorDefaultin interfaceTagType- Overrides:
getColorDefaultin classTagTypeBase
-