Package com.biglybt.pifimpl.local.utils
Class ShortCutsImpl
- java.lang.Object
-
- com.biglybt.pifimpl.local.utils.ShortCutsImpl
-
-
Field Summary
Fields Modifier and Type Field Description protected PluginInterface
pi
-
Constructor Summary
Constructors Constructor Description ShortCutsImpl(PluginInterface _pi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Download
getDownload(byte[] hash)
A quick way of looking up a download given its hashDownloadStats
getDownloadStats(byte[] hash)
A quick way of getting a download's statistics given its hashvoid
removeDownload(byte[] hash)
A quick way of deleting a download given its hashvoid
restartDownload(byte[] hash)
A quick way of restarting a download given its hashvoid
stopDownload(byte[] hash)
A quick way of stopping a download given its hash
-
-
-
Field Detail
-
pi
protected PluginInterface pi
-
-
Constructor Detail
-
ShortCutsImpl
public ShortCutsImpl(PluginInterface _pi)
-
-
Method Detail
-
getDownloadStats
public DownloadStats getDownloadStats(byte[] hash) throws DownloadException
Description copied from interface:ShortCuts
A quick way of getting a download's statistics given its hash- Specified by:
getDownloadStats
in interfaceShortCuts
- Returns:
- Throws:
DownloadException
-
restartDownload
public void restartDownload(byte[] hash) throws DownloadException
Description copied from interface:ShortCuts
A quick way of restarting a download given its hash- Specified by:
restartDownload
in interfaceShortCuts
- Throws:
DownloadException
-
stopDownload
public void stopDownload(byte[] hash) throws DownloadException
Description copied from interface:ShortCuts
A quick way of stopping a download given its hash- Specified by:
stopDownload
in interfaceShortCuts
- Throws:
DownloadException
-
removeDownload
public void removeDownload(byte[] hash) throws DownloadException, DownloadRemovalVetoException
Description copied from interface:ShortCuts
A quick way of deleting a download given its hash- Specified by:
removeDownload
in interfaceShortCuts
- Throws:
DownloadException
DownloadRemovalVetoException
-
getDownload
public Download getDownload(byte[] hash) throws DownloadException
Description copied from interface:ShortCuts
A quick way of looking up a download given its hash- Specified by:
getDownload
in interfaceShortCuts
- Returns:
- Throws:
DownloadException
-
-