org.gudy.azureus2.core3.torrent.impl
Class TorrentOpenOptions
java.lang.Object
org.gudy.azureus2.core3.torrent.impl.TorrentOpenOptions
public class TorrentOpenOptions
- extends Object
Class to store one Torrent file's info. Used to populate table and store
user's choices.
This was copied out of the UI code, and still contains some crap code
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QUEUELOCATION_BOTTOM
public static final int QUEUELOCATION_BOTTOM
- See Also:
- Constant Field Values
QUEUELOCATION_TOP
public static final int QUEUELOCATION_TOP
- See Also:
- Constant Field Values
STARTMODE_FORCESTARTED
public static final int STARTMODE_FORCESTARTED
- See Also:
- Constant Field Values
STARTMODE_QUEUED
public static final int STARTMODE_QUEUED
- See Also:
- Constant Field Values
STARTMODE_SEEDING
public static final int STARTMODE_SEEDING
- See Also:
- Constant Field Values
STARTMODE_STOPPED
public static final int STARTMODE_STOPPED
- See Also:
- Constant Field Values
sOriginatingLocation
public String sOriginatingLocation
sFileName
public String sFileName
iQueueLocation
public int iQueueLocation
isValid
public boolean isValid
bDeleteFileOnCancel
public boolean bDeleteFileOnCancel
disableIPFilter
public boolean disableIPFilter
peerSource
public Map<String,Boolean> peerSource
CA_NONE
public static final int CA_NONE
- See Also:
- Constant Field Values
CA_ACCEPT
public static final int CA_ACCEPT
- See Also:
- Constant Field Values
CA_REJECT
public static final int CA_REJECT
- See Also:
- Constant Field Values
TorrentOpenOptions
public TorrentOpenOptions(String sFileName,
TOTorrent torrent,
boolean bDeleteFileOnCancel)
- Init
- Parameters:
sFileName
- torrent
- bDeleteFileOnCancel
-
TorrentOpenOptions
public TorrentOpenOptions()
TorrentOpenOptions
public TorrentOpenOptions(TorrentOpenOptions toBeCloned)
- clones everything except files and torrent
- Parameters:
toBeCloned
-
getDefaultStartMode
public static int getDefaultStartMode()
getInitialLinkage
public File getInitialLinkage(int index)
getParentDir
public String getParentDir()
setParentDir
public void setParentDir(String parentDir)
setManualRename
public void setManualRename(String manualRename)
getManualRename
public String getManualRename()
getSubDir
public String getSubDir()
setExplicitDataDir
public void setExplicitDataDir(String parent_dir,
String sub_dir)
isExplicitDataDir
public boolean isExplicitDataDir()
isSimpleTorrent
public boolean isSimpleTorrent()
getStartMode
public int getStartMode()
setStartMode
public void setStartMode(int m)
getEnabledNetworks
public Map<String,Boolean> getEnabledNetworks()
setNetworkEnabled
public void setNetworkEnabled(String net,
boolean enabled)
getDataDir
public String getDataDir()
getInitialTags
public List<Tag> getInitialTags()
setInitialTags
public void setInitialTags(List<Tag> tags)
setDirty
public void setDirty()
getAndClearDirt
public boolean getAndClearDirt()
getTrackers
public List<List<String>> getTrackers(boolean if_updated)
setTrackers
public void setTrackers(List<List<String>> trackers)
setMaxUploadSpeed
public void setMaxUploadSpeed(int kbs)
getMaxUploadSpeed
public int getMaxUploadSpeed()
setMaxDownloadSpeed
public void setMaxDownloadSpeed(int kbs)
getMaxDownloadSpeed
public int getMaxDownloadSpeed()
setHideErrors
public void setHideErrors(boolean h)
getHideErrors
public boolean getHideErrors()
getFiles
public TorrentOpenFileOptions[] getFiles()
getTotalSize
public long getTotalSize()
getTorrentName
public String getTorrentName()
allFilesMoving
public boolean allFilesMoving()
allFilesExist
public boolean allFilesExist()
renameDuplicates
public void renameDuplicates()
okToDisableAll
public boolean okToDisableAll()
getTorrent
public TOTorrent getTorrent()
setTorrent
public void setTorrent(TOTorrent torrent)
addListener
public void addListener(TorrentOpenOptions.FileListener l)
removeListener
public void removeListener(TorrentOpenOptions.FileListener l)
fileDownloadStateChanged
public void fileDownloadStateChanged(TorrentOpenFileOptions torrentOpenFileOptions,
boolean toDownload)
filePriorityStateChanged
public void filePriorityStateChanged(TorrentOpenFileOptions torrentOpenFileOptions,
int priority)
parentDirChanged
public void parentDirChanged()
setCompleteAction
public void setCompleteAction(int ca)
getCompleteAction
public int getCompleteAction()