1 /*
2  * Created on May 6, 2008
3  * Created by Paul Gardner
4  *
5  * Copyright (C) Azureus Software, Inc, All Rights Reserved.
6  *
7  * This program is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License
9  * as published by the Free Software Foundation; either version 2
10  * of the License, or (at your option) any later version.
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18  */
19 
20 
21 package com.aelitis.azureus.core.metasearch;
22 
23 import java.util.Map;
24 
25 import org.gudy.azureus2.plugins.utils.search.SearchProvider;
26 
27 import com.aelitis.azureus.core.vuzefile.VuzeFile;
28 
29 public interface
30 MetaSearchManager
31 {
32 	public MetaSearch
getMetaSearch()33 	getMetaSearch();
34 
35 	public boolean
isAutoMode()36 	isAutoMode();
37 
38 	public void
setSelectedEngines( long[] ids, boolean auto )39 	setSelectedEngines(
40 		long[]		ids,
41 		boolean		auto )
42 
43 		throws MetaSearchException;
44 
45 	public Engine
addEngine( long id, int type, String name, String json_value )46 	addEngine(
47 		long		id,
48 		int			type,
49 		String		name,
50 		String		json_value )
51 
52 		throws MetaSearchException;
53 
54 	public boolean
isImportable( VuzeFile vf )55 	isImportable(
56 		VuzeFile		vf );
57 
58 	public Engine
importEngine( Map map, boolean warn_user )59 	importEngine(
60 		Map			map,
61 		boolean		warn_user )
62 
63 		throws MetaSearchException;
64 
65 	public Engine
getEngine( SearchProvider sp )66 	getEngine(
67 		SearchProvider	sp );
68 
69 	public void
addListener( MetaSearchManagerListener listener )70 	addListener(
71 		MetaSearchManagerListener		listener );
72 
73 	public void
removeListener( MetaSearchManagerListener listener )74 	removeListener(
75 		MetaSearchManagerListener		listener );
76 
77 	public void
log( String str )78 	log(
79 		String		str );
80 }
81