1 /*
2  * Copyright (C) 2005 Novell, Inc.
3  *
4  * Nautilus is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License as
6  * published by the Free Software Foundation; either version 2 of the
7  * License, or (at your option) any later version.
8  *
9  * Nautilus is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public
15  * License along with this program; see the file COPYING.  If not,
16  * see <http://www.gnu.org/licenses/>.
17  *
18  * Author: Anders Carlsson <andersca@imendio.com>
19  *
20  */
21 
22 #pragma once
23 
24 #include <glib-object.h>
25 
26 #include "nautilus-directory.h"
27 #include "nautilus-search-engine-model.h"
28 #include "nautilus-search-provider.h"
29 
30 G_BEGIN_DECLS
31 
32 #define NAUTILUS_TYPE_SEARCH_ENGINE		(nautilus_search_engine_get_type ())
33 
34 G_DECLARE_DERIVABLE_TYPE (NautilusSearchEngine, nautilus_search_engine, NAUTILUS, SEARCH_ENGINE, GObject)
35 
36 struct _NautilusSearchEngineClass
37 {
38   GObjectClass parent_class;
39 };
40 
41 NautilusSearchEngine *nautilus_search_engine_new                (void);
42 NautilusSearchEngineModel *
43                       nautilus_search_engine_get_model_provider (NautilusSearchEngine *engine);
44 
45 G_END_DECLS
46 
47 void nautilus_search_engine_start_by_target (NautilusSearchProvider     *provider,
48                                              NautilusSearchEngineTarget  taregt_engine);