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 booleanprivate Stringprivate Stringprivate intprivate booleanprivate final TOTorrentFilerelative path + full file name as specified by the torrentprivate booleanWhether to download this file.private final TorrentOpenOptions -
Constructor Summary
ConstructorsConstructorDescriptionTorrentOpenFileOptions(TorrentOpenOptions parent, TOTorrentFile tfile, boolean wanted) -
Method Summary
Modifier and TypeMethodDescriptionintgetIndex()intlonggetSize()booleanisLinked()booleanbooleanbooleanbooleanisValid()booleanvoidsetDestFileName(String newFileName, boolean manualRename) voidsetDestPathName(String newPath) voidsetFullDestName(String newFullName) protected voidvoidsetPriority(int _priority, boolean _auto) voidsetToDownload(boolean toDownload) voidsetValid(boolean b)
-
Field Details
-
torrentOptions
-
tfile
relative path + full file name as specified by the torrent -
orgParent
-
orgFileName
-
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 -
isValid
private boolean isValid
-
-
Constructor Details
-
TorrentOpenFileOptions
-
-
Method Details
-
setOriginalFileNames
protected void setOriginalFileNames() -
getTorrentOptions
-
getIndex
public int getIndex() -
isValid
public boolean isValid() -
setValid
public void setValid(boolean b) -
getSize
public long getSize() -
getOriginalFullName
-
getOriginalFileName
-
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)
-