org.xnap.plugin.gift
Class GiFTPlugin

java.lang.Object
  extended by org.xnap.plugin.AbstractPlugin
      extended by org.xnap.plugin.gift.GiFTPlugin
All Implemented Interfaces:
java.util.EventListener, GiFTDaemonListener, Plugin, SearchProvider

public class GiFTPlugin
extends AbstractPlugin
implements GiFTDaemonListener, SearchProvider

GiFTPlugin

Version:
$Revision: 1.3 $
Author:
$author$

Field Summary
static javax.swing.Icon ICON_16
           
 
Constructor Summary
GiFTPlugin()
          Creates a new GiFTPlugin object.
 
Method Summary
 void attached(OnlineEvent evt)
           
 void detached(OfflineEvent evt)
           
 ConnectToGiFTAction getConnectAction()
           
 GiFTDaemon getDaemon()
           
 DisconnectFromGiFTAction getDisconnectAction()
           
static GiFTPlugin getInstance()
          Singleton getInstance
 java.lang.String getName()
          Returns the name of the search network that is displayed to the user.
 ShutdownGiFTAction getShutdownAction()
           
 StartGiFTAction getStartAction()
           
 MediaType[] getSupportedMediaTypes()
          Returns an array of MediaType objects that are supported by the provider.
 UpdateGiFTStatsAction getUpdateAction()
           
 void onError(ErrorEvent evt)
           
 Search search(SearchFilter filter)
          Invoked when a search is requested.
 void showPrefsDialog()
           
 void start()
          Called each time the plugin is enabled.
 void startGiftConnection()
           
 void startGUI()
          Called each time the gui part of the plugin is enabled.
 void statsUpdate(StatsEvent evt)
           
 void statusChanged(GiFTDaemon daemon)
          Invoked when the status changes.
 void stop()
          Called each time the plugin is disabled.
 void stopGiftConnection()
           
 void stopGUI()
          Called each time the gui part of the plugin is disabled.
 
Methods inherited from class org.xnap.plugin.AbstractPlugin
getInfo, setInfo, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ICON_16

public static javax.swing.Icon ICON_16
Constructor Detail

GiFTPlugin

public GiFTPlugin()
Creates a new GiFTPlugin object.

Method Detail

getInstance

public static GiFTPlugin getInstance()
Singleton getInstance

Returns:
GiFTPlugin

attached

public void attached(OnlineEvent evt)
See Also:
xnap.plugin.gift.net.event.listener.NetworkEventListener#attached(xnap.plugin.gift.net.event.OnlineEvent)

detached

public void detached(OfflineEvent evt)
See Also:
xnap.plugin.gift.net.event.listener.NetworkEventListener#detached(xnap.plugin.gift.net.event.OfflineEvent)

onError

public void onError(ErrorEvent evt)
See Also:
xnap.plugin.gift.net.event.listener.ErrorEventListener#onError(xnap.plugin.gift.net.event.ErrorEvent)

search

public Search search(SearchFilter filter)
Description copied from interface: SearchProvider
Invoked when a search is requested.

Specified by:
search in interface SearchProvider
See Also:
xnap.plugin.INetworkPlugin#search(xnap.util.SearchFilter, int)

start

public void start()
Description copied from interface: Plugin
Called each time the plugin is enabled.

Specified by:
start in interface Plugin
See Also:
xnap.plugin.IPlugin#start()

startGiftConnection

public void startGiftConnection()

stopGiftConnection

public void stopGiftConnection()

statsUpdate

public void statsUpdate(StatsEvent evt)
See Also:
xnap.plugin.gift.net.event.listener.NetworkEventListener#statsUpdate(xnap.plugin.gift.net.event.StatsEvent)

stop

public void stop()
Description copied from interface: Plugin
Called each time the plugin is disabled.

Specified by:
stop in interface Plugin
See Also:
xnap.plugin.IPlugin#stop()

getName

public java.lang.String getName()
Description copied from interface: SearchProvider
Returns the name of the search network that is displayed to the user.

Specified by:
getName in interface SearchProvider
See Also:
xnap.search.SearchProvider#getName()

getSupportedMediaTypes

public MediaType[] getSupportedMediaTypes()
Description copied from interface: SearchProvider
Returns an array of MediaType objects that are supported by the provider.

Specified by:
getSupportedMediaTypes in interface SearchProvider
See Also:
xnap.search.SearchProvider#getSupportedMediaTypes()

startGUI

public void startGUI()
Description copied from interface: Plugin
Called each time the gui part of the plugin is enabled.

Specified by:
startGUI in interface Plugin
See Also:
xnap.plugin.Plugin#startGUI()

stopGUI

public void stopGUI()
Description copied from interface: Plugin
Called each time the gui part of the plugin is disabled.

Specified by:
stopGUI in interface Plugin
See Also:
xnap.plugin.Plugin#stopGUI()

showPrefsDialog

public void showPrefsDialog()

getConnectAction

public ConnectToGiFTAction getConnectAction()

getDaemon

public GiFTDaemon getDaemon()

getDisconnectAction

public DisconnectFromGiFTAction getDisconnectAction()

getShutdownAction

public ShutdownGiFTAction getShutdownAction()

getStartAction

public StartGiFTAction getStartAction()

getUpdateAction

public UpdateGiFTStatsAction getUpdateAction()

statusChanged

public void statusChanged(GiFTDaemon daemon)
Description copied from interface: GiFTDaemonListener
Invoked when the status changes.

Specified by:
statusChanged in interface GiFTDaemonListener
See Also:
org.xnap.plugin.gift.net.GiFTDaemonListener#statusChanged(org.xnap.plugin.gift.net.GiFTDaemon, java.lang.String)


Copyright © 2001-2005 XNap Team. All Rights Reserved.