FileDocCategorySizeDatePackage
NetworkSearch.javaAPI DocAzureus 3.0.3.42630Wed Sep 26 18:24:44 BST 2007com.aelitis.azureus.ui.swt.search.network

NetworkSearch

public class NetworkSearch extends Object
author
PARG!
created
Jul 11, 2006

Fields Summary
private static final org.gudy.azureus2.core3.logging.LogIDs
LOGID
Constructors Summary
protected NetworkSearch(com.aelitis.azureus.core.AzureusCore core, String searchText, org.eclipse.swt.browser.Browser browser)

		PluginInterface pi = core.getPluginManager().getPluginInterfaceByID(
				"azsearch");

		if (pi == null) {

			Logger.log(new LogEvent(LOGID, "Search plugin not found"));

			return;
		}

		if (!pi.isOperational()) {

			Logger.log(new LogEvent(LOGID, "Search plugin not operational"));

			return;
		}
		
		Logger.log(new LogEvent(LOGID, "Search plugin functionality disabled"));
		/*

		Map params = new HashMap();

		params.put("expression", searchText);

		params.put("swtbrowser", browser);

		try {
			IPCInterface my_ipc = new IPCInterfaceImpl(this);

			pi.getIPC().invoke("search", new Object[] {
				my_ipc,
				params
			});

		} catch (Throwable e) {

			Logger.log(new LogEvent(LOGID, "IPC to search plugin failed", e));
		}
		*/
	
Methods Summary
public static voidsearch(com.aelitis.azureus.core.AzureusCore core, java.lang.String searchText, org.eclipse.swt.browser.Browser browser)


	         
		new NetworkSearch(core, searchText, browser);
	
public voidsearchCallback(java.util.Map params)

		System.out.println("NetworkSearch::callback - " + params);