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 final int
boolean
final long
private String
final TorrentOpenOptions
private int
private boolean
private boolean
Whether to download this file. -
Constructor Summary
ConstructorsConstructorDescriptionTorrentOpenFileOptions
(TorrentOpenOptions parent, int iIndex, String orgFullName, String orgFileName, long lSize, boolean wanted) Init -
Method Summary
Modifier and TypeMethodDescriptionint
getIndex()
int
boolean
isLinked()
boolean
boolean
boolean
boolean
void
setDestFileName
(String newFileName, boolean manualRename) void
setDestPathName
(String newPath) void
setFullDestName
(String newFullName) void
void
setPriority
(int _priority, boolean _auto) void
setToDownload
(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)
-