22 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
23 |
*/ |
*/ |
24 |
|
|
|
|
|
25 |
#ifndef GWLIB_H |
#ifndef GWLIB_H |
26 |
#define GWLIB_H |
#define GWLIB_H |
27 |
|
|
29 |
|
|
30 |
@interface GWLib : NSObject |
@interface GWLib : NSObject |
31 |
{ |
{ |
32 |
|
NSMutableDictionary *cachedContents; |
33 |
|
int cachedMax; |
34 |
|
int defSortType; |
35 |
|
|
36 |
|
NSMutableArray *watchers; |
37 |
|
NSMutableArray *watchTimers; |
38 |
|
NSMutableArray *watchedPaths; |
39 |
|
|
40 |
|
NSMutableArray *lockedPaths; |
41 |
|
|
42 |
|
NSMutableDictionary *tumbsCache; |
43 |
|
NSString *thumbnailDir; |
44 |
|
BOOL usesThumbnails; |
45 |
|
|
46 |
|
NSFileManager *fm; |
47 |
|
NSWorkspace *ws; |
48 |
|
NSNotificationCenter *nc; |
49 |
} |
} |
50 |
|
|
51 |
|
+ (GWLib *)instance; |
52 |
|
|
53 |
|
+ (void)setCachedMax:(int)cmax; |
54 |
|
|
55 |
|
+ (void)setDefSortType:(int)type; |
56 |
|
|
57 |
|
+ (BOOL)isLockedPath:(NSString *)path; |
58 |
|
|
59 |
|
|
60 |
+ (id)gworkspaceApplication; |
+ (id)gworkspaceApplication; |
61 |
|
|
62 |
+ (BOOL)selectFile:(NSString *)fullPath |
+ (BOOL)selectFile:(NSString *)fullPath |