org.gudy.azureus2.core3.torrent.impl
Class TorrentOpenFileOptions

java.lang.Object
  extended by org.gudy.azureus2.core3.torrent.impl.TorrentOpenFileOptions

public class TorrentOpenFileOptions
extends Object

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
 boolean isValid
           
 long lSize
           
 String orgFileName
           
 String orgFullName
           
 TorrentOpenOptions parent
           
 
Constructor Summary
TorrentOpenFileOptions(TorrentOpenOptions parent, int iIndex, String orgFullName, String orgFileName, long lSize, boolean wanted)
          Init
 
Method Summary
 File getDestFileFullName()
           
 String getDestFileName()
           
 String getDestPathName()
           
 int getIndex()
           
 File getInitialLink()
           
 int getPriority()
           
 boolean isLinked()
           
 boolean isManualRename()
           
 boolean isToDownload()
           
 boolean okToDisable()
           
 void setDestFileName(String newFileName, boolean manualRename)
           
 void setDestPathName(String newPath)
           
 void setFullDestName(String newFullName)
           
 void setPriority(int _priority)
           
 void setToDownload(boolean toDownload)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

orgFullName

public final String orgFullName

orgFileName

public final String orgFileName

lSize

public long lSize

isValid

public boolean isValid

parent

public final TorrentOpenOptions parent
Constructor Detail

TorrentOpenFileOptions

public TorrentOpenFileOptions(TorrentOpenOptions parent,
                              int iIndex,
                              String orgFullName,
                              String orgFileName,
                              long lSize,
                              boolean wanted)
Init

Parameters:
parent -
torrentFile -
iIndex -
Method Detail

getIndex

public int getIndex()

setFullDestName

public void setFullDestName(String newFullName)

setDestPathName

public void setDestPathName(String newPath)

setDestFileName

public void setDestFileName(String newFileName,
                            boolean manualRename)

getDestPathName

public String getDestPathName()

isManualRename

public boolean isManualRename()

getDestFileName

public String getDestFileName()

getDestFileFullName

public File getDestFileFullName()

okToDisable

public boolean okToDisable()

getInitialLink

public 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)