org.gudy.azureus2.ui.swt
Class TorrentUtil
java.lang.Object
org.gudy.azureus2.ui.swt.TorrentUtil
public class TorrentUtil
- extends Object
- Author:
- Allan Crooks
Method Summary |
static void |
assignToCategory(Object[] download_managers,
Category category)
|
static Map<String,Long> |
calculateToolbarStates(ISelectedContent[] currentContent,
String viewID)
|
static void |
fillTorrentMenu(org.eclipse.swt.widgets.Menu menu,
DownloadManager[] dms,
AzureusCore azureus_core,
org.eclipse.swt.widgets.Composite composite,
boolean include_show_details,
int selected_dl_types,
TableView tv)
|
static void |
hostTorrents(Object[] download_managers,
AzureusCore azureus_core,
org.eclipse.swt.widgets.Composite composite)
|
static boolean |
isFileTorrent(File torrentFile,
String torrentName)
quick check to see if a file might be a torrent |
static void |
pauseDataSources(Object[] datasources)
|
static void |
promptUserForComment(DownloadManager[] dms)
|
static void |
publishTorrents(Object[] download_managers,
AzureusCore azureus_core,
org.eclipse.swt.widgets.Composite composite)
|
static void |
queueDataSources(Object[] datasources,
boolean startStoppedParents)
|
static void |
removeDataSources(Object[] datasources)
|
static void |
removeDownloads(DownloadManager[] dms,
AERunnable deleteFailed)
|
static void |
removeDownloads(DownloadManager[] dms,
AERunnable deleteFailed,
boolean forcePrompt)
|
static void |
resumeTorrents(Object[] download_managers)
|
static void |
runDataSources(Object[] datasources)
Runs a DownloadManager or DiskManagerFileInfo |
static boolean |
shouldStopGroup(Object[] datasources)
|
static void |
stopDataSources(Object[] datasources)
|
static void |
stopOrStartDataSources(Object[] datasources)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TorrentUtil
public TorrentUtil()
fillTorrentMenu
public static void fillTorrentMenu(org.eclipse.swt.widgets.Menu menu,
DownloadManager[] dms,
AzureusCore azureus_core,
org.eclipse.swt.widgets.Composite composite,
boolean include_show_details,
int selected_dl_types,
TableView tv)
runDataSources
public static void runDataSources(Object[] datasources)
- Runs a DownloadManager or DiskManagerFileInfo
hostTorrents
public static void hostTorrents(Object[] download_managers,
AzureusCore azureus_core,
org.eclipse.swt.widgets.Composite composite)
publishTorrents
public static void publishTorrents(Object[] download_managers,
AzureusCore azureus_core,
org.eclipse.swt.widgets.Composite composite)
removeDataSources
public static void removeDataSources(Object[] datasources)
shouldStopGroup
public static boolean shouldStopGroup(Object[] datasources)
stopOrStartDataSources
public static void stopOrStartDataSources(Object[] datasources)
stopDataSources
public static void stopDataSources(Object[] datasources)
pauseDataSources
public static void pauseDataSources(Object[] datasources)
queueDataSources
public static void queueDataSources(Object[] datasources,
boolean startStoppedParents)
resumeTorrents
public static void resumeTorrents(Object[] download_managers)
assignToCategory
public static void assignToCategory(Object[] download_managers,
Category category)
promptUserForComment
public static void promptUserForComment(DownloadManager[] dms)
isFileTorrent
public static boolean isFileTorrent(File torrentFile,
String torrentName)
- quick check to see if a file might be a torrent
- Parameters:
torrentFile
- deleteFileOnCancel
- parentShell
- non-null: display a window if it's not a torrent
- Returns:
- Since:
- 3.0.2.3
calculateToolbarStates
public static Map<String,Long> calculateToolbarStates(ISelectedContent[] currentContent,
String viewID)
removeDownloads
public static void removeDownloads(DownloadManager[] dms,
AERunnable deleteFailed)
removeDownloads
public static void removeDownloads(DownloadManager[] dms,
AERunnable deleteFailed,
boolean forcePrompt)