]> err.no Git - sope/blob - sope-core/NGExtensions/NGExtensions/NGFileFolderInfoDataSource.h
major Xcode build overhaul
[sope] / sope-core / NGExtensions / NGExtensions / NGFileFolderInfoDataSource.h
1 /*
2   Copyright (C) 2000-2005 SKYRIX Software AG
3
4   This file is part of SOPE.
5
6   SOPE is free software; you can redistribute it and/or modify it under
7   the terms of the GNU Lesser General Public License as published by the
8   Free Software Foundation; either version 2, or (at your option) any
9   later version.
10
11   SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12   WARRANTY; without even the implied warranty of MERCHANTABILITY or
13   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
14   License for more details.
15
16   You should have received a copy of the GNU Lesser General Public
17   License along with SOPE; see the file COPYING.  If not, write to the
18   Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
19   02111-1307, USA.
20 */
21
22 #ifndef __NGFileInfoDataSource_H__
23 #define __NGFileInfoDataSource_H__
24
25 #import <Foundation/NSFileManager.h>
26 #import <EOControl/EODataSource.h>
27 #include <NGExtensions/NGExtensionsDecls.h>
28
29 @class NSString;
30 @class EOFetchSpecification;
31
32 /*
33   supported keys:
34
35     NSFileName
36     NSFilePath
37     NSParentPath
38     + all NSFileManager attributes returned by -fileAttributesAtPath:...
39     
40   supported fetch hints:
41   
42     NSTraverseLinks - bool
43 */
44
45 NGExtensions_EXPORT NSString *NSFileName;
46 NGExtensions_EXPORT NSString *NSFilePath;
47 NGExtensions_EXPORT NSString *NSParentPath;
48 NGExtensions_EXPORT NSString *NSTraverseLinks;
49
50 @interface NGFileFolderInfoDataSource : EODataSource
51 {
52   NSString             *folderPath;
53   EOFetchSpecification *fspec;
54 }
55
56 - (id)initWithFolderPath:(NSString *)_path;
57
58 /* accessors */
59
60 - (void)setFetchSpecification:(EOFetchSpecification *)_fspec;
61 - (EOFetchSpecification *)fetchSpecification;
62
63 /* operations */
64
65 - (NSArray *)fetchObjects;
66
67 @end
68
69 #endif /* __NGFileInfoDataSource_H__ */