/[gnustep]/gnustep/usr-apps/gworkspace/GWLib/GWLib.h
ViewVC logotype

Contents of /gnustep/usr-apps/gworkspace/GWLib/GWLib.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Sep 29 13:20:28 2003 UTC (20 years, 7 months ago) by esersale
Branch: MAIN
Changes since 1.3: +26 -1 lines
File MIME type: text/plain
*** empty log message ***

1 /* GWLib.h
2 *
3 * Copyright (C) 2003 Free Software Foundation, Inc.
4 *
5 * Author: Enrico Sersale <enrico@imago.ro>
6 * Date: August 2001
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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23 */
24
25 #ifndef GWLIB_H
26 #define GWLIB_H
27
28 #include <Foundation/Foundation.h>
29
30 @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;
61
62 + (BOOL)selectFile:(NSString *)fullPath
63 inFileViewerRootedAtPath:(NSString *)rootFullpath;
64
65 + (oneway void)rootViewerSelectFiles:(NSArray *)paths;
66
67 + (oneway void)openSelectedPaths:(NSArray *)paths;
68
69 + (oneway void)addWatcherForPath:(NSString *)path;
70
71 + (oneway void)removeWatcherForPath:(NSString *)path;
72
73 + (BOOL)isPakageAtPath:(NSString *)path;
74
75 + (oneway void)performFileOperationWithDictionary:(NSDictionary *)dict;
76
77 + (oneway void)performServiceWithName:(NSString *)sname
78 pasteboard:(NSPasteboard *)pboard;
79
80 + (NSString *)trashPath;
81
82 @end
83
84 #endif // GWLIB_H

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26