FileDocCategorySizeDatePackage
Category.javaAPI DocAzureus 3.0.3.43133Tue Feb 06 21:43:42 GMT 2007org.gudy.azureus2.core3.category

Category

public interface Category
A Category for grouping torrents (DownloadManagers)
author
TuxPaper

Fields Summary
public static final int
TYPE_USER
User created Category
public static final int
TYPE_ALL
Category which contains all DownloadManagers
public static final int
TYPE_UNCATEGORIZED
Category which contains DownloadManagers that do not have a category assigned to them. Currently not used.
Constructors Summary
Methods Summary
public voidaddCategoryListener(CategoryListener l)
Add a Category Listener

param
l Listener to add

public voidaddManager(org.gudy.azureus2.core3.download.DownloadManagerState manager)
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.

param
manager DownloadManager object to add to Category

public java.util.ListgetDownloadManagers()
Retrieve a list of DownloadManagers for this category

return
DownloadManager List

public intgetDownloadSpeed()

public java.lang.StringgetName()
Retrieve the name of the category. All category names are unique.

return
If type is TYPE_USER, returns name of the category Otherwise, returns ID in MessageBundle.

public intgetType()
Retrieves what type of Category this is

return
TYPE_* constant

public intgetUploadSpeed()

public voidremoveCategoryListener(CategoryListener l)
Remove a Category Listener

param
l Listener to remove

public voidremoveManager(org.gudy.azureus2.core3.download.DownloadManagerState manager)
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.

param
manager DownloadManager object to remove from Category

public voidsetDownloadSpeed(int speed)

public voidsetUploadSpeed(int speed)