Interface Category
- All Known Implementing Classes:
CategoryImpl
A Category for grouping torrents (DownloadManagers)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final intCategory which contains all DownloadManagersstatic final intCategory which contains DownloadManagers that do not have a category assigned to them.static final intUser created CategoryFields inherited from interface Tag
FL_IS_FILTER, FL_IS_HIDDEN_WHEN_EMPTY, FL_NONE, TP_CONSTRAINT_ERROR, TP_SETTINGS_REQUESTED -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a Category ListenervoidaddManager(DownloadManagerState manager) Add a DownloadManager to this category.voiddump(IndentWriter writer) booleangetBooleanAttribute(String name) getDownloadManagers(List<DownloadManager> all_download_managers) Retrieve a list of DownloadManagers for this categoryintintgetIntAttribute(String name) getName()Retrieve the name of the category.getStringAttribute(String name) intgetType()Retrieves what type of Category this isintvoidRemove a Category ListenervoidremoveManager(DownloadManagerState manager) Remove a DownloadManager object from this Category.voidsetBooleanAttribute(String name, boolean value) voidsetDownloadSpeed(int speed) voidsetIntAttribute(String name, int value) voidsetStringAttribute(String name, String value) voidsetUploadSpeed(int speed) Methods inherited from interface Tag
addTaggable, addTaggableBatch, addTagListener, canBePublic, dependsOnTags, getColor, getColors, getDescription, getFlag, getGroup, getGroupContainer, getImageFile, getImageID, getImageSortOrder, getStatus, getTaggableAddedTime, getTaggableTypes, getTagged, getTaggedCount, getTagID, getTagName, getTagType, getTagUID, getTransientProperty, getVuzeFile, hasTaggable, isColorDefault, isHiddenWhenEmpty, isPublic, isTagAuto, isTagRemoved, isVisible, removeTag, removeTaggable, removeTagListener, requestAttention, setCanBePublic, setColor, setColors, setDescription, setFlag, setGroup, setHiddenWhenEmpty, setImageFile, setImageID, setImageSortOrder, setPublic, setTagName, setTransientProperty, setVisibleMethods inherited from interface Tag
addListener, getTaggables, getTagName, removeListener
-
Field Details
-
TYPE_USER
static final int TYPE_USERUser created Category- See Also:
-
TYPE_ALL
static final int TYPE_ALLCategory which contains all DownloadManagers- See Also:
-
TYPE_UNCATEGORIZED
static final int TYPE_UNCATEGORIZEDCategory which contains DownloadManagers that do not have a category assigned to them. Currently not used.- See Also:
-
AT_AUTO_TRANSCODE_TARGET
- See Also:
-
AT_RSS_GEN
- See Also:
-
AT_UPLOAD_PRIORITY
- See Also:
-
-
Method Details
-
addCategoryListener
Add a Category Listener- Parameters:
l- Listener to add
-
removeCategoryListener
Remove a Category Listener- Parameters:
l- Listener to remove
-
getName
String getName()Retrieve the name of the category. All category names are unique.- Returns:
- If type is TYPE_USER, returns name of the category Otherwise, returns ID in MessageBundle.
-
getType
int getType()Retrieves what type of Category this is- Returns:
- TYPE_* constant
-
getDownloadManagers
Retrieve a list of DownloadManagers for this category- Returns:
- DownloadManager List
-
addManager
Add a DownloadManager to this category. Used by DownloadManager. You should not have to add a DownloadManager object manually. If you wish to change a DownloadManager's category, use DownloadManager.setCategory(..) instead.- Parameters:
manager- DownloadManager object to add to Category
-
removeManager
Remove a DownloadManager object from this Category. Used by DownloadManager. You should not have to add a DownloadManager object manually. If you wish to change a DownloadManager's category, use DownloadManager.setCategory(..) instead.- Parameters:
manager- DownloadManager object to remove from Category
-
setDownloadSpeed
void setDownloadSpeed(int speed) -
getDownloadSpeed
int getDownloadSpeed() -
setUploadSpeed
void setUploadSpeed(int speed) -
getUploadSpeed
int getUploadSpeed() -
getStringAttribute
-
setStringAttribute
-
getBooleanAttribute
-
setBooleanAttribute
-
getIntAttribute
-
setIntAttribute
-
dump
-