Interface Category

All Superinterfaces:
Tag, Tag
All Known Implementing Classes:
CategoryImpl

public interface Category extends Tag
A Category for grouping torrents (DownloadManagers)
  • Field Details

  • Method Details

    • addCategoryListener

      void addCategoryListener(CategoryListener l)
      Add a Category Listener
      Parameters:
      l - Listener to add
    • removeCategoryListener

      void removeCategoryListener(CategoryListener l)
      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

      List<DownloadManager> getDownloadManagers(List<DownloadManager> all_download_managers)
      Retrieve a list of DownloadManagers for this category
      Returns:
      DownloadManager List
    • addManager

      void addManager(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.
      Parameters:
      manager - DownloadManager object to add to Category
    • removeManager

      void removeManager(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.
      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

      String getStringAttribute(String name)
    • setStringAttribute

      void setStringAttribute(String name, String value)
    • getBooleanAttribute

      boolean getBooleanAttribute(String name)
    • setBooleanAttribute

      void setBooleanAttribute(String name, boolean value)
    • getIntAttribute

      int getIntAttribute(String name)
    • setIntAttribute

      void setIntAttribute(String name, int value)
    • dump

      void dump(IndentWriter writer)