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 String
private String
private boolean
private boolean
private String
private String
private int
private boolean
private final TOTorrentFile
relative path + full file name as specified by the torrentprivate boolean
Whether to download this file.private final TorrentOpenOptions
-
Constructor Summary
ConstructorsConstructorDescriptionTorrentOpenFileOptions
(TorrentOpenOptions parent, TOTorrentFile tfile, boolean wanted) -
Method Summary
Modifier and TypeMethodDescriptionint
getIndex()
int
long
getSize()
boolean
isLinked()
boolean
boolean
boolean
boolean
isValid()
boolean
void
setDestFileName
(String newFileName, boolean manualRename) void
setDestPathName
(String newPath) void
setFullDestName
(String newFullName) protected void
void
setPriority
(int _priority, boolean _auto) void
setToDownload
(boolean toDownload) void
setValid
(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)
-