|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PluginInterface
Defines the communication interface between Azureus and Plugins
| Method Summary | |
|---|---|
void |
addColumnToMyTorrentsTable(java.lang.String columnName,
PluginMyTorrentsItemFactory factory)
Deprecated. use TableManager |
void |
addColumnToPeersTable(java.lang.String columnName,
PluginPeerItemFactory factory)
Deprecated. use TableManager |
void |
addConfigSection(ConfigSection section)
Deprecated. Use UIManager.createBasicPluginConfigModel(String) instead. |
void |
addConfigUIParameters(Parameter[] parameters,
java.lang.String displayName)
Deprecated. Use of this is discouraged - use UIManager.getBasicPluginViewModel(String)
to get a BasicPluginViewModel instance, and then use the methods on that to add
parameters. |
void |
addEventListener(PluginEventListener l)
|
void |
addListener(PluginListener l)
|
void |
addView(PluginView view)
Deprecated. use UISWTInstance.addView(java.lang.String, java.lang.String, org.gudy.azureus2.ui.swt.plugins.UISWTViewEventListener) |
void |
firePluginEvent(PluginEvent event)
Fire a plugin-specific event. |
java.lang.String |
getApplicationName()
Returns the name of the application that the user sees - if you need to display the name of the program, you should use this method. |
java.lang.String |
getAzureusName()
Retrieve the name of the application. |
java.lang.String |
getAzureusVersion()
Retrieve the Application's version as a string. |
ClientIDManager |
getClientIDManager()
|
ConfigSection[] |
getConfigSections()
|
ConnectionManager |
getConnectionManager()
Get the connection manager. |
DistributedDatabase |
getDistributedDatabase()
Get the distributed database |
DownloadManager |
getDownloadManager()
Gives access to the download manager |
IPCInterface |
getIPC()
get the inter-plugin-communcations interface for this plugin |
IPFilter |
getIPFilter()
Gives access to the IP filter |
PluginInterface |
getLocalPluginInterface(java.lang.Class plugin,
java.lang.String id)
Returns an initialised plugin instance with its own scope (e.g. for config params). |
Logger |
getLogger()
Gives access to the logger |
MainlineDHTManager |
getMainlineDHTManager()
Returns the manager object for registering plugins that connect to the Mainline DHT. |
MessageManager |
getMessageManager()
Get the peer messaging manager. |
PeerProtocolManager |
getPeerProtocolManager()
Gives access to the peer protocol manager |
PlatformManager |
getPlatformManager()
Gets the platform manager that gives access to native functionality |
Plugin |
getPlugin()
Gives access to the plugin itself |
java.lang.ClassLoader |
getPluginClassLoader()
gives access to the ClassLoader used to load the plugin |
PluginConfig |
getPluginconfig()
gives access to the plugin config interface |
PluginConfigUIFactory |
getPluginConfigUIFactory()
Deprecated. Use of this is discouraged - use UIManager.getBasicPluginViewModel(String)
to get a BasicPluginViewModel instance, and then use the methods on that to add
parameters. |
java.lang.String |
getPluginDirectoryName()
gives access to the plugin installation path |
java.lang.String |
getPluginID()
Returns an identifier used to identify this particular plugin |
PluginManager |
getPluginManager()
gives access to the plugin manager |
java.lang.String |
getPluginName()
Returns the value of "plugin.name" if it exists in the properties file, otherwise the directory name is returned. |
java.util.Properties |
getPluginProperties()
gives access to the plugin properties |
java.lang.String |
getPluginVersion()
Returns the version number of the plugin it if can be deduced from either the name of the jar file it is loaded from or the properties file. null otherwise |
ShareManager |
getShareManager()
Gives access to the sharing functionality |
ShortCuts |
getShortCuts()
access to a set of convenience routines for doing things in a quicker, although less structured, fashion |
TorrentManager |
getTorrentManager()
Gives access to the torrent manager |
Tracker |
getTracker()
Gives access to the tracker functionality |
UIManager |
getUIManager()
access to UI extension features |
UpdateManager |
getUpdateManager()
access to the update manager used to update plugins. required for non-Azureus SF hosted plugins (SF ones are managed automatically) |
Utilities |
getUtilities()
access to various utility functions |
boolean |
isBuiltIn()
Built-in plugins are those used internally by Azureus, for example the UPnP plugin |
boolean |
isDisabled()
|
boolean |
isInitialisationThread()
Indicates whether or not the current thread is the one responsible for running plugin initialisation |
boolean |
isMandatory()
Whether or not this is a mandatory plugin. |
boolean |
isOperational()
If a plugin fails to load properly (i.e. the construction of the plugin object fails) it is marked as non-operational (rather than not being present at all) |
boolean |
isShared()
|
boolean |
isUnloadable()
|
void |
openTorrentFile(java.lang.String fileName)
Deprecated. Use DownloadManager.addDownload(java.io.File) |
void |
openTorrentURL(java.lang.String url)
Deprecated. Use DownloadManager.addDownload(java.io.File) |
void |
reload()
|
void |
removeConfigSection(ConfigSection section)
|
void |
removeEventListener(PluginEventListener l)
|
void |
removeListener(PluginListener l)
|
void |
setDisabled(boolean disabled)
|
void |
uninstall()
Uninstall this plugin if it has been loaded from a plugin directory. |
void |
unload()
|
| Method Detail |
|---|
java.lang.String getAzureusName()
java.lang.String getApplicationName()
java.lang.String getAzureusVersion()
void addView(PluginView view)
UISWTInstance.addView(java.lang.String, java.lang.String, org.gudy.azureus2.ui.swt.plugins.UISWTViewEventListener)
view - The PluginView to be added
void addConfigUIParameters(Parameter[] parameters,
java.lang.String displayName)
UIManager.getBasicPluginViewModel(String)
to get a BasicPluginViewModel instance, and then use the methods on that to add
parameters.
getPluginConfigUIFactory() to get the
PluginConfigUIFactory class, from which you can create different
types of parameters.
parameters - the Parameter(s) to be editeddisplayName - the under which it should display.
void addColumnToPeersTable(java.lang.String columnName,
PluginPeerItemFactory factory)
TableManager
columnName - the key name of the columnfactory - the factory responsible of creating items.
Azureus will look-up for PeersView.columnName into the lang files
in order to find the localized displayName. (see i18n)
void addColumnToMyTorrentsTable(java.lang.String columnName,
PluginMyTorrentsItemFactory factory)
TableManager
columnName - the key name of the columnfactory - the factory responsible of creating items.
Azureus will look-up for MyTorrentsView.columnName into the lang files
in order to find the localized displayName. (see i18n)void addConfigSection(ConfigSection section)
UIManager.createBasicPluginConfigModel(String) instead.
In contrast to addConfigUIParameters, this gives you total control over
a tab. Please be kind and use localizable text.
section - ConfigSection to be added to the Config viewvoid removeConfigSection(ConfigSection section)
section - ConfigSection[] getConfigSections()
Tracker getTracker()
Logger getLogger()
IPFilter getIPFilter()
DownloadManager getDownloadManager()
PeerProtocolManager getPeerProtocolManager()
ShareManager getShareManager()
throws ShareException
ShareExceptionTorrentManager getTorrentManager()
Utilities getUtilities()
ShortCuts getShortCuts()
UIManager getUIManager()
UpdateManager getUpdateManager()
void openTorrentFile(java.lang.String fileName)
DownloadManager.addDownload(java.io.File)
fileName - The Name of the file that azureus must openvoid openTorrentURL(java.lang.String url)
DownloadManager.addDownload(java.io.File)
url - The String representation of the url pointing to a torrent filejava.util.Properties getPluginProperties()
java.lang.String getPluginDirectoryName()
java.lang.String getPluginName()
java.lang.String getPluginVersion()
java.lang.String getPluginID()
boolean isMandatory()
boolean isBuiltIn()
PluginConfig getPluginconfig()
PluginConfigUIFactory getPluginConfigUIFactory()
UIManager.getBasicPluginViewModel(String)
to get a BasicPluginViewModel instance, and then use the methods on that to add
parameters.
java.lang.ClassLoader getPluginClassLoader()
PluginInterface getLocalPluginInterface(java.lang.Class plugin,
java.lang.String id)
throws PluginException
plugin - must implement Pluginid - the unique id of this plugin (used to scope config params etc)
PluginExceptionIPCInterface getIPC()
Plugin getPlugin()
boolean isOperational()
boolean isUnloadable()
void setDisabled(boolean disabled)
disabled - boolean isDisabled()
boolean isShared()
void unload()
throws PluginException
PluginException
void reload()
throws PluginException
PluginException
void uninstall()
throws PluginException
PluginExceptionboolean isInitialisationThread()
PluginManager getPluginManager()
ClientIDManager getClientIDManager()
ConnectionManager getConnectionManager()
MessageManager getMessageManager()
DistributedDatabase getDistributedDatabase()
PlatformManager getPlatformManager()
void addListener(PluginListener l)
void removeListener(PluginListener l)
void firePluginEvent(PluginEvent event)
event - void addEventListener(PluginEventListener l)
void removeEventListener(PluginEventListener l)
MainlineDHTManager getMainlineDHTManager()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||