Class TorrentOpener
java.lang.Object
com.biglybt.ui.swt.mainwindow.TorrentOpener
Bunch of Torrent Opening functions.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandoesDropHaveTorrents(org.eclipse.swt.dnd.DropTargetEvent event) static Stringstatic Stringstatic Stringstatic booleanmergeFileIntoTorrentInfo(String sFileName, String sOriginatingLocation, TorrentOpenOptions torrentOptions) Creates a TorrentInfo from a file.static voidopenDroppedTorrents(org.eclipse.swt.dnd.DropTargetEvent event, boolean deprecated_sharing_param) static voidopenTorrent(String torrentFile) Open a torrent.static voidopenTorrent(String torrentFile, Map<String, Object> options) protected static voidopenTorrentsForTracking(String path, String[] fileNames) static booleanstatic voidopenTorrentsFromStrings(TorrentOpenOptions optionsToClone, org.eclipse.swt.widgets.Shell parent, String pathPrefix, String[] torrents, String referrer, TorrentDownloaderCallBackInterface listener, boolean forceTorrentOptionsWindow) Adds torrents that are listed in torrents array.static voidstatic voidstatic StringsetFilterPathData(String path) static StringsetFilterPathExport(String path) static StringsetFilterPathTorrent(String path)
-
Field Details
-
async_open_pool
-
-
Constructor Details
-
TorrentOpener
public TorrentOpener()
-
-
Method Details
-
openTorrent
Open a torrent. Possibly display a window if the user config says so- Parameters:
torrentFile- Torrent to open (file, url, etc)
-
openTorrent
-
openTorrentsForTracking
-
openTorrentTrackingOnly
public static void openTorrentTrackingOnly() -
openTorrentSimple
public static void openTorrentSimple() -
openTorrentsFromClipboard
-
openDroppedTorrents
public static void openDroppedTorrents(org.eclipse.swt.dnd.DropTargetEvent event, boolean deprecated_sharing_param) -
getFilterPathExport
-
setFilterPathExport
-
getFilterPathData
-
getFilterPathTorrent
-
setFilterPathData
-
setFilterPathTorrent
-
doesDropHaveTorrents
public static boolean doesDropHaveTorrents(org.eclipse.swt.dnd.DropTargetEvent event) -
mergeFileIntoTorrentInfo
public static boolean mergeFileIntoTorrentInfo(String sFileName, String sOriginatingLocation, TorrentOpenOptions torrentOptions) Creates a TorrentInfo from a file. Prompts user if the file is invalid, torrent already exists- Parameters:
sFileName-sOriginatingLocation-- Returns:
- Since:
- 5.0.0.1
-
openTorrentsFromStrings
public static void openTorrentsFromStrings(TorrentOpenOptions optionsToClone, org.eclipse.swt.widgets.Shell parent, String pathPrefix, String[] torrents, String referrer, TorrentDownloaderCallBackInterface listener, boolean forceTorrentOptionsWindow) Adds torrents that are listed in torrents array. torrent array can can contain urls or file names. File names get pathPrefix appended.will open url download dialog, or warning dialogs
- Since:
- 5.0.0.1
-