Class TorrentListener
- java.lang.Object
-
- com.biglybt.core.messenger.browser.listeners.AbstractBrowserMessageListener
-
- com.biglybt.ui.swt.browser.listener.TorrentListener
-
- All Implemented Interfaces:
BrowserMessageListener
public class TorrentListener extends AbstractBrowserMessageListener
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_LISTENER_ID
static java.lang.String
OP_LOAD_TORRENT
static java.lang.String
OP_LOAD_TORRENT_OLD
private ClientMessageContext.torrentURLHandler
torrentURLHandler
-
Fields inherited from class com.biglybt.core.messenger.browser.listeners.AbstractBrowserMessageListener
context
-
-
Constructor Summary
Constructors Constructor Description TorrentListener()
TorrentListener(java.lang.String id)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleMessage(BrowserMessage message)
Handles the given message, usually by parsing the parameters and calling the appropriate operation.private static boolean
loadTorrentByB64(Core core, BrowserMessage message, java.lang.String b64)
static boolean
loadTorrentByB64(Core core, java.lang.String b64)
void
setShell(org.eclipse.swt.widgets.Shell shell)
void
setTorrentURLHandler(ClientMessageContext.torrentURLHandler handler)
-
Methods inherited from class com.biglybt.core.messenger.browser.listeners.AbstractBrowserMessageListener
debug, debug, getContext, getId, setContext
-
-
-
-
Field Detail
-
DEFAULT_LISTENER_ID
public static final java.lang.String DEFAULT_LISTENER_ID
- See Also:
- Constant Field Values
-
OP_LOAD_TORRENT_OLD
public static final java.lang.String OP_LOAD_TORRENT_OLD
- See Also:
- Constant Field Values
-
OP_LOAD_TORRENT
public static final java.lang.String OP_LOAD_TORRENT
- See Also:
- Constant Field Values
-
torrentURLHandler
private ClientMessageContext.torrentURLHandler torrentURLHandler
-
-
Method Detail
-
setTorrentURLHandler
public void setTorrentURLHandler(ClientMessageContext.torrentURLHandler handler)
-
setShell
public void setShell(org.eclipse.swt.widgets.Shell shell)
-
handleMessage
public void handleMessage(BrowserMessage message)
Description copied from class:AbstractBrowserMessageListener
Handles the given message, usually by parsing the parameters and calling the appropriate operation.- Specified by:
handleMessage
in interfaceBrowserMessageListener
- Specified by:
handleMessage
in classAbstractBrowserMessageListener
- Parameters:
message
- holds all message information
-
loadTorrentByB64
public static boolean loadTorrentByB64(Core core, java.lang.String b64)
-
loadTorrentByB64
private static boolean loadTorrentByB64(Core core, BrowserMessage message, java.lang.String b64)
- Since:
- 3.0.1.7
-
-