1 /* FinderModulesProtocol.h
2  *
3  * Copyright (C) 2004 Free Software Foundation, Inc.
4  *
5  * Author: Enrico Sersale <enrico@imago.ro>
6  * Date: March 2004-2016
7  *
8  * This file is part of the GNUstep GWorkspace application
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU General Public License for more details.
19  *
20  * You should have received a copy of the GNU General Public License
21  * along with this program; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111 USA.
23  */
24 
25 #ifndef FINDER_MODULES_PROTOCOL_H
26 #define FINDER_MODULES_PROTOCOL_H
27 
28 @protocol FinderModulesProtocol
29 
30 - (id)initInterface;
31 
32 - (id)initWithSearchCriteria:(NSDictionary *)criteria
33                   searchTool:(id)tool;
34 
35 - (void)setControlsState:(NSDictionary *)info;
36 
37 - (id)controls;
38 
39 - (NSString *)moduleName;
40 
41 - (BOOL)used;
42 
43 - (void)setInUse:(BOOL)value;
44 
45 - (NSInteger)index;
46 
47 - (void)setIndex:(NSInteger)idx;
48 
49 - (NSDictionary *)searchCriteria;
50 
51 - (BOOL)checkPath:(NSString *)path
52    withAttributes:(NSDictionary *)attributes;
53 
54 - (NSComparisonResult)compareModule:(id <FinderModulesProtocol>)module;
55 
56 - (BOOL)reliesOnModDate;
57 
58 - (BOOL)metadataModule;
59 
60 @end
61 
62 
63 @protocol	SearchTool
64 
65 - (NSString *)ddbdGetAnnotationsForPath:(NSString *)path;
66 
67 @end
68 
69 #endif // FINDER_MODULES_PROTOCOL_H
70 
71