|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.gudy.azureus2.ui.swt.views.utils.ManagerUtils
public class ManagerUtils
Nested Class Summary | |
---|---|
static class |
ManagerUtils.ArchiveCallback
|
static interface |
ManagerUtils.RunDownloadManager
|
Constructor Summary | |
---|---|
ManagerUtils()
|
Method Summary | |
---|---|
static void |
asyncPause()
|
static void |
asyncPause(DownloadManager dm)
|
static void |
asyncPauseForPeriod(int seconds)
|
static void |
asyncPauseForPeriod(List<DownloadManager> dms,
int seconds)
|
static void |
asyncResume()
|
static void |
asyncStartAll()
|
static void |
asyncStop(DownloadManager dm,
int stateAfterStopped)
|
static void |
asyncStopAll()
|
static void |
asyncStopDelete(DownloadManager dm,
int stateAfterStopped,
boolean bDeleteTorrent,
boolean bDeleteData,
AERunnable deleteFailed)
|
static String |
browse(DiskManagerFileInfo file)
|
static String |
browse(DiskManagerFileInfo file,
boolean anon,
boolean launch)
|
static String |
browse(DownloadManager dm)
|
static String |
browse(DownloadManager dm,
boolean anon,
boolean launch)
|
static String |
browse(DownloadManager dm,
DiskManagerFileInfo _file,
boolean anon,
boolean launch)
|
static boolean |
browseWebsite(DiskManagerFileInfo file)
|
static boolean |
browseWebsite(DownloadManager dm)
|
static boolean |
canFindMoreLikeThis()
|
static DownloadManager[] |
cleanUp(DownloadManager[] dms)
|
static void |
findMoreLikeThis(DiskManagerFileInfo file,
org.eclipse.swt.widgets.Shell shell)
|
static void |
findMoreLikeThis(DownloadManager dm,
org.eclipse.swt.widgets.Shell shell)
|
static URL |
getMediaServerContentURL(DiskManagerFileInfo file)
|
static void |
host(AzureusCore azureus_core,
DownloadManager dm)
Host a DownloadManager on our Tracker. |
static boolean |
isForceStartable(DownloadManager dm)
|
static boolean |
isPauseable(DownloadManager dm)
|
static boolean |
isStartable(DownloadManager dm)
|
static boolean |
isStopable(DownloadManager dm)
|
static boolean |
isStopped(DownloadManager dm)
|
static void |
locateFiles(DownloadManager[] dms,
DiskManagerFileInfo[][] dm_files,
org.eclipse.swt.widgets.Shell shell)
|
static void |
locateFiles(DownloadManager[] dms,
org.eclipse.swt.widgets.Shell shell)
|
static void |
moveToArchive(List<Download> downloads,
ManagerUtils.ArchiveCallback _run_when_complete)
|
static void |
open(DiskManagerFileInfo file,
boolean open_containing_folder_mode)
|
static void |
open(DownloadManager dm)
Opens the parent folder of dm's path |
static void |
open(DownloadManager dm,
boolean open_containing_folder_mode)
|
static void |
open(File f)
|
static void |
open(File f,
boolean open_containing_folder_mode)
|
static void |
pause(DownloadManager dm,
org.eclipse.swt.widgets.Shell shell)
|
static void |
publish(AzureusCore azureus_core,
DownloadManager dm)
Publish a DownloadManager on our Tracker. |
static void |
queue(DownloadManager dm,
org.eclipse.swt.widgets.Composite panelNotUsed)
|
static void |
remove(DownloadManager dm,
org.eclipse.swt.widgets.Shell unused_shell,
boolean bDeleteTorrent,
boolean bDeleteData)
Deprecated. Use TorrentUtil.removeDownloads(DownloadManager[], AERunnable) |
static void |
remove(DownloadManager dm,
org.eclipse.swt.widgets.Shell unused_shell,
boolean bDeleteTorrent,
boolean bDeleteData,
AERunnable deleteFailed)
Deprecated. Use TorrentUtil.removeDownloads(DownloadManager[], AERunnable) |
static void |
restoreFromArchive(List<DownloadStub> downloads,
boolean start,
ManagerUtils.ArchiveCallback _run_when_complete)
|
static void |
run(DownloadManager dm)
|
static void |
setRunRunnable(ManagerUtils.RunDownloadManager run)
|
static void |
start(DownloadManager dm)
|
static void |
stop(DownloadManager dm,
org.eclipse.swt.widgets.Shell shell)
|
static void |
stop(DownloadManager dm,
org.eclipse.swt.widgets.Shell shell,
int stateAfterStopped)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagerUtils()
Method Detail |
---|
public static void setRunRunnable(ManagerUtils.RunDownloadManager run)
public static void run(DownloadManager dm)
public static void open(DownloadManager dm)
dm
- DownloadManager instancepublic static void open(DownloadManager dm, boolean open_containing_folder_mode)
public static void open(DiskManagerFileInfo file, boolean open_containing_folder_mode)
public static void open(File f, boolean open_containing_folder_mode)
public static void open(File f)
public static boolean browseWebsite(DiskManagerFileInfo file)
public static boolean browseWebsite(DownloadManager dm)
public static String browse(DiskManagerFileInfo file)
public static String browse(DiskManagerFileInfo file, boolean anon, boolean launch)
public static String browse(DownloadManager dm)
public static String browse(DownloadManager dm, boolean anon, boolean launch)
public static String browse(DownloadManager dm, DiskManagerFileInfo _file, boolean anon, boolean launch)
public static URL getMediaServerContentURL(DiskManagerFileInfo file)
public static boolean isStartable(DownloadManager dm)
public static boolean isStopable(DownloadManager dm)
public static boolean isPauseable(DownloadManager dm)
public static boolean isStopped(DownloadManager dm)
public static boolean isForceStartable(DownloadManager dm)
public static void host(AzureusCore azureus_core, DownloadManager dm)
Doesn't require SWT Thread
public static void publish(AzureusCore azureus_core, DownloadManager dm)
Doesn't require SWT Thread
public static void start(DownloadManager dm)
public static void queue(DownloadManager dm, org.eclipse.swt.widgets.Composite panelNotUsed)
public static void pause(DownloadManager dm, org.eclipse.swt.widgets.Shell shell)
public static void stop(DownloadManager dm, org.eclipse.swt.widgets.Shell shell)
public static void stop(DownloadManager dm, org.eclipse.swt.widgets.Shell shell, int stateAfterStopped)
public static void remove(DownloadManager dm, org.eclipse.swt.widgets.Shell unused_shell, boolean bDeleteTorrent, boolean bDeleteData)
TorrentUtil.removeDownloads(DownloadManager[], AERunnable)
public static void remove(DownloadManager dm, org.eclipse.swt.widgets.Shell unused_shell, boolean bDeleteTorrent, boolean bDeleteData, AERunnable deleteFailed)
TorrentUtil.removeDownloads(DownloadManager[], AERunnable)
public static void asyncStopDelete(DownloadManager dm, int stateAfterStopped, boolean bDeleteTorrent, boolean bDeleteData, AERunnable deleteFailed)
public static void asyncStop(DownloadManager dm, int stateAfterStopped)
public static void asyncPause(DownloadManager dm)
public static void asyncStartAll()
public static void asyncStopAll()
public static void asyncPause()
public static void asyncPauseForPeriod(int seconds)
public static void asyncResume()
public static void asyncPauseForPeriod(List<DownloadManager> dms, int seconds)
public static void moveToArchive(List<Download> downloads, ManagerUtils.ArchiveCallback _run_when_complete)
public static void restoreFromArchive(List<DownloadStub> downloads, boolean start, ManagerUtils.ArchiveCallback _run_when_complete)
public static DownloadManager[] cleanUp(DownloadManager[] dms)
public static void locateFiles(DownloadManager[] dms, org.eclipse.swt.widgets.Shell shell)
public static void locateFiles(DownloadManager[] dms, DiskManagerFileInfo[][] dm_files, org.eclipse.swt.widgets.Shell shell)
public static boolean canFindMoreLikeThis()
public static void findMoreLikeThis(DownloadManager dm, org.eclipse.swt.widgets.Shell shell)
public static void findMoreLikeThis(DiskManagerFileInfo file, org.eclipse.swt.widgets.Shell shell)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |