Package com.biglybt.core.torrent.impl
Class TorrentOpenFileOptions
java.lang.Object
com.biglybt.core.torrent.impl.TorrentOpenFileOptions
Class to store the file list of a Torrent. Used to populate table and
store user's choices
This was copied out of the UI code, and still contains some crap code
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate booleanprivate final intbooleanfinal longprivate Stringfinal TorrentOpenOptionsprivate intprivate booleanprivate booleanWhether to download this file. -
Constructor Summary
ConstructorsConstructorDescriptionTorrentOpenFileOptions(TorrentOpenOptions parent, int iIndex, String orgFullName, String orgFileName, long lSize, boolean wanted) Init -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()intbooleanisLinked()booleanbooleanbooleanbooleanvoidsetDestFileName(String newFileName, boolean manualRename) voidsetDestPathName(String newPath) voidsetFullDestName(String newFullName) voidvoidsetPriority(int _priority, boolean _auto) voidsetToDownload(boolean toDownload)
-
Field Details
-
orgFullName
-
orgFileName
-
lSize
public final long lSize -
toDownload
private boolean toDownloadWhether to download this file. Probably should be switched to the DND state variable -
priority
private int priority -
priority_auto
private boolean priority_auto -
destFileName
-
destPathName
-
didManualRename
private boolean didManualRename -
iIndex
private final int iIndex -
isValid
public boolean isValid -
parent
-
-
Constructor Details
-
TorrentOpenFileOptions
public TorrentOpenFileOptions(TorrentOpenOptions parent, int iIndex, String orgFullName, String orgFileName, long lSize, boolean wanted) Init- Parameters:
parent-torrentFile-iIndex-
-
-
Method Details
-
getTorrentOptions
-
getIndex
public int getIndex() -
getOriginalFileName
-
setOriginalFileName
-
setFullDestName
-
setDestPathName
-
setDestFileName
-
getDestPathName
-
isManualRename
public boolean isManualRename() -
getDestFileName
-
getDestFileFullName
-
okToDisable
public boolean okToDisable() -
getInitialLink
-
isLinked
public boolean isLinked() -
isToDownload
public boolean isToDownload() -
setToDownload
public void setToDownload(boolean toDownload) -
getPriority
public int getPriority() -
isPriorityAuto
public boolean isPriorityAuto() -
setPriority
public void setPriority(int _priority, boolean _auto)
-