org.xnap.plugin.limewire
Class LimeWireBrowse

java.lang.Object
  extended by org.xnap.plugin.limewire.LimeWireBrowse
All Implemented Interfaces:
LimeWireSearch, Search

public class LimeWireBrowse
extends java.lang.Object
implements LimeWireSearch

Implements a limewire search session.


Constructor Summary
LimeWireBrowse(java.lang.String host, int port, com.limegroup.gnutella.GUID guid, com.limegroup.gnutella.GUID clientGUID, com.sun.java.util.collections.Set proxies)
           
 
Method Summary
 void failed()
           
 javax.swing.Action[] getActions()
          Returns null.
 SearchFilter getFilter()
          Returns the search filter that was used to find the results.
 java.lang.String getName()
          Returns a string that should be shown to the user.
 java.lang.String getStatus()
          Returns a string that describes the current status.
 boolean isDone()
          Returns true, if this search can not be canceled.
 void received(LimeWireSearchResult result)
           
 boolean showTree()
          Returns true, if a tree should be shown next to search results.
 void start(SearchHandler handler)
          Starts this search.
 void stop()
          Cancels this search.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LimeWireBrowse

public LimeWireBrowse(java.lang.String host,
                      int port,
                      com.limegroup.gnutella.GUID guid,
                      com.limegroup.gnutella.GUID clientGUID,
                      com.sun.java.util.collections.Set proxies)
Method Detail

getActions

public javax.swing.Action[] getActions()
Returns null.

Specified by:
getActions in interface Search

getStatus

public java.lang.String getStatus()
Returns a string that describes the current status.

Specified by:
getStatus in interface Search

isDone

public boolean isDone()
Returns true, if this search can not be canceled.

Specified by:
isDone in interface Search

received

public void received(LimeWireSearchResult result)
Specified by:
received in interface LimeWireSearch

start

public void start(SearchHandler handler)
Starts this search.

Specified by:
start in interface Search
Parameters:
handler - the object that handles the results

stop

public void stop()
Cancels this search.

Specified by:
stop in interface Search

failed

public void failed()
Specified by:
failed in interface LimeWireSearch
See Also:
xnap.plugin.limewire.LimeWireSearch#failed()

getFilter

public SearchFilter getFilter()
Description copied from interface: Search
Returns the search filter that was used to find the results. This is also used for double fitering.

Specified by:
getFilter in interface Search
Returns:
null, if no filter was used; the filter, otherwise
See Also:
xnap.search.Search#getFilter()

getName

public java.lang.String getName()
Description copied from interface: Search
Returns a string that should be shown to the user.

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

showTree

public boolean showTree()
Description copied from interface: Search
Returns true, if a tree should be shown next to search results.

Specified by:
showTree in interface Search
See Also:
xnap.search.Search#showTree()


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