Package com.biglybt.core.download.impl
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 Summary
FieldsModifier and TypeFieldDescription(package private) DiskManagerFileInfoSet
(package private) DownloadManagerController.fileInfoFacade[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
XXX Don't call me, call makeSureFilesFacadeFilled()getFiles()
void
load
(int[] priorities, boolean[] skipped) (package private) void
makeSureFilesFacadeFilled
(boolean refresh) int
nbFiles()
void
setPriority
(int[] newPriorities) Sets the priorities of all filesvoid
setSkipped
(boolean[] toChange, boolean setSkipped) Sets a file to skipped status tosetSkipped
iftoChanged
is true for the index.boolean[]
setStorageTypes
(boolean[] toChange, int newStorageType, boolean force) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.biglybt.core.disk.DiskManagerFileInfoSet
setStorageTypes
-
Field Details
-
delegate
DiskManagerFileInfoSet delegate -
facadeFiles
DownloadManagerController.fileInfoFacade[] facadeFiles
-
-
Constructor Details
-
FileInfoFacadeSet
protected FileInfoFacadeSet()
-
-
Method Details
-
load
public void load(int[] priorities, boolean[] skipped) - Specified by:
load
in interfaceDiskManagerFileInfoSet
-
getFiles
- Specified by:
getFiles
in interfaceDiskManagerFileInfoSet
-
nbFiles
public int nbFiles()- Specified by:
nbFiles
in interfaceDiskManagerFileInfoSet
-
setPriority
public void setPriority(int[] newPriorities) Description copied from interface:DiskManagerFileInfoSet
Sets the priorities of all files- Specified by:
setPriority
in interfaceDiskManagerFileInfoSet
- Parameters:
newPriorities
- array size must be # of files in set
-
setSkipped
public void setSkipped(boolean[] toChange, boolean setSkipped) Description copied from interface:DiskManagerFileInfoSet
Sets a file to skipped status tosetSkipped
iftoChanged
is true for the index.- Specified by:
setSkipped
in interfaceDiskManagerFileInfoSet
- Parameters:
toChange
- array size must be # of files in set. Only true values will be set to value ofsetSkipped
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 interfaceDiskManagerFileInfoSet
force
- may discard file state, use with care...- Returns:
-
fixupFileInfo
XXX Don't call me, call makeSureFilesFacadeFilled() -
makeSureFilesFacadeFilled
void makeSureFilesFacadeFilled(boolean refresh) -
destroyFileInfo
protected void destroyFileInfo()
-