Package com.biglybt.core.torrent.impl
Class TorrentOpenFileOptions
- java.lang.Object
-
- com.biglybt.core.torrent.impl.TorrentOpenFileOptions
-
public class TorrentOpenFileOptions extends java.lang.Object
Class to store the file list of a Torrent. Used to populate table and store user's choicesThis was copied out of the UI code, and still contains some crap code
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
destFileName
private java.lang.String
destPathName
private boolean
didManualRename
private int
iIndex
boolean
isValid
long
lSize
private java.lang.String
orgFileName
java.lang.String
orgFullName
TorrentOpenOptions
parent
private int
priority
private boolean
toDownload
Whether to download this file.
-
Constructor Summary
Constructors Constructor Description TorrentOpenFileOptions(TorrentOpenOptions parent, int iIndex, java.lang.String orgFullName, java.lang.String orgFileName, long lSize, boolean wanted)
Init
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.File
getDestFileFullName()
java.lang.String
getDestFileName()
java.lang.String
getDestPathName()
int
getIndex()
java.io.File
getInitialLink()
java.lang.String
getOriginalFileName()
int
getPriority()
TorrentOpenOptions
getTorrentOptions()
boolean
isLinked()
boolean
isManualRename()
boolean
isToDownload()
boolean
okToDisable()
void
setDestFileName(java.lang.String newFileName, boolean manualRename)
void
setDestPathName(java.lang.String newPath)
void
setFullDestName(java.lang.String newFullName)
void
setOriginalFileName(java.lang.String str)
void
setPriority(int _priority)
void
setToDownload(boolean toDownload)
-
-
-
Field Detail
-
orgFullName
public java.lang.String orgFullName
-
orgFileName
private java.lang.String orgFileName
-
lSize
public final long lSize
-
toDownload
private boolean toDownload
Whether to download this file. Probably should be switched to the DND state variable
-
priority
private int priority
-
destFileName
private java.lang.String destFileName
-
destPathName
private java.lang.String destPathName
-
didManualRename
private boolean didManualRename
-
iIndex
private final int iIndex
-
isValid
public boolean isValid
-
parent
public final TorrentOpenOptions parent
-
-
Constructor Detail
-
TorrentOpenFileOptions
public TorrentOpenFileOptions(TorrentOpenOptions parent, int iIndex, java.lang.String orgFullName, java.lang.String orgFileName, long lSize, boolean wanted)
Init- Parameters:
parent
-torrentFile
-iIndex
-
-
-
Method Detail
-
getTorrentOptions
public TorrentOpenOptions getTorrentOptions()
-
getIndex
public int getIndex()
-
getOriginalFileName
public java.lang.String getOriginalFileName()
-
setOriginalFileName
public void setOriginalFileName(java.lang.String str)
-
setFullDestName
public void setFullDestName(java.lang.String newFullName)
-
setDestPathName
public void setDestPathName(java.lang.String newPath)
-
setDestFileName
public void setDestFileName(java.lang.String newFileName, boolean manualRename)
-
getDestPathName
public java.lang.String getDestPathName()
-
isManualRename
public boolean isManualRename()
-
getDestFileName
public java.lang.String getDestFileName()
-
getDestFileFullName
public java.io.File getDestFileFullName()
-
okToDisable
public boolean okToDisable()
-
getInitialLink
public java.io.File getInitialLink()
-
isLinked
public boolean isLinked()
-
isToDownload
public boolean isToDownload()
-
setToDownload
public void setToDownload(boolean toDownload)
-
getPriority
public int getPriority()
-
setPriority
public void setPriority(int _priority)
-
-