Re: gnutella plugin broken?
Brought to you by:
leist
From: Steffen P. <ste...@gm...> - 2003-01-13 11:56:47
|
Hi, > Basically, I need to > know which interfaces do what. I started digging into > the Limewire core, and architecture last night, and I > am not sure if I understand how the ISearch ties in as > it is an innerclass in the Plugin. You plugin needs to create an object that implemnts ISearch each time Plugin.search is called. The ISearch objects execute the search and pass the received results down to the gui. > Also if I have a > Gnuttella PLugin, and the OpenNap Plugin both enabled, > will my search search return results from both > networks? Yes. The SearchManager calls PluginManager.search() which queries all enabled plugins by calling their search method. The returned ISearch objects are passed to the SearchSubPanel. The SearchSubPanel then calls connect on all ISearch objects and polls the results in a Thread by calling available() and next(). BTW, I have changed the readyToSearch() method in the SearchManager. Plugins now only need to call this method to notify the gui (and to enable the search button). SearchManager.resumeDownloads() should be called as soon as the plugin wants to resume the pending downloads. Hope this helps, Steffen |