Class DownloadManagerController.FileInfoFacadeSet

java.lang.Object
com.biglybt.core.download.impl.DownloadManagerController.FileInfoFacadeSet
All Implemented Interfaces:
DiskManagerFileInfoSet
Enclosing class:
DownloadManagerController

protected class DownloadManagerController.FileInfoFacadeSet extends Object implements DiskManagerFileInfoSet
  • Field Details

  • Constructor Details

    • FileInfoFacadeSet

      protected FileInfoFacadeSet()
  • Method Details

    • load

      public void load(int[] priorities, boolean[] skipped)
      Specified by:
      load in interface DiskManagerFileInfoSet
    • getFiles

      public DiskManagerFileInfo[] getFiles()
      Specified by:
      getFiles in interface DiskManagerFileInfoSet
    • nbFiles

      public int nbFiles()
      Specified by:
      nbFiles in interface DiskManagerFileInfoSet
    • setPriority

      public void setPriority(int[] newPriorities)
      Description copied from interface: DiskManagerFileInfoSet
      Sets the priorities of all files
      Specified by:
      setPriority in interface DiskManagerFileInfoSet
      Parameters:
      newPriorities - array size must be # of files in set. Use Integer.MIN_VALUE to signify "no change"
    • setSkipped

      public void setSkipped(boolean[] toChange, boolean setSkipped)
      Description copied from interface: DiskManagerFileInfoSet
      Sets a file to skipped status to setSkipped if toChanged is true for the index.
      Specified by:
      setSkipped in interface DiskManagerFileInfoSet
      Parameters:
      toChange - array size must be # of files in set. Only true values will be set to value of setSkipped
      setSkipped - Whether to set file as skipped or unskipped, when toChange[i] is true
    • setStorageTypes

      public boolean[] setStorageTypes(boolean[] toChange, int newStorageType, boolean force)
      Specified by:
      setStorageTypes in interface DiskManagerFileInfoSet
      Parameters:
      toChange -
      newStorageType -
      force - may discard file state, use with care...
      Returns:
    • fixupFileInfo

      protected void fixupFileInfo(DownloadManagerController.fileInfoFacade[] info)
      XXX Don't call me, call makeSureFilesFacadeFilled()
    • makeSureFilesFacadeFilled

      void makeSureFilesFacadeFilled(boolean refresh)
    • destroyFileInfo

      protected void destroyFileInfo()