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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Mon Aug 25 17:19:13 2003 UTC (20 years, 8 months ago) by esersale
Branch: MAIN
Changes since 1.1: +24 -0 lines
File MIME type: text/plain
*** empty log message ***

1 /* GWProtocol.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 GWPROTOCOL_H
26 #define GWPROTOCOL_H
27
28 @class GWorkspace;
29 @class ViewersWindow;
30
31 @protocol GWProtocol
32
33 + (GWorkspace *)gworkspace;
34
35 - (BOOL)performFileOperation:(NSString *)operation
36 source:(NSString *)source
37 destination:(NSString *)destination
38 files:(NSArray *)files
39 tag:(int *)tag;
40
41 - (void)performFileOperationWithDictionary:(id)opdict;
42
43 - (BOOL)application:(NSApplication *)theApplication
44 openFile:(NSString *)filename;
45
46 - (BOOL)openFile:(NSString *)fullPath;
47
48 - (BOOL)openFile:(NSString *)fullPath
49 fromImage:(NSImage *)anImage
50 at:(NSPoint)point
51 inView:(NSView *)aView;
52
53 - (BOOL)selectFile:(NSString *)fullPath
54 inFileViewerRootedAtPath:(NSString *)rootFullpath;
55
56 - (void)rootViewerSelectFiles:(NSArray *)paths;
57
58 - (void)slideImage:(NSImage *)image
59 from:(NSPoint)fromPoint
60 to:(NSPoint)toPoint;
61
62 - (void)noteFileSystemChanged;
63
64 - (void)noteFileSystemChanged:(NSString *)path;
65
66 - (BOOL)isPakageAtPath:(NSString *)path;
67
68 - (int)sortTypeForDirectoryAtPath:(NSString *)aPath;
69
70 - (void)setSortType:(int)type forDirectoryAtPath:(NSString *)aPath;
71
72 - (void)openSelectedPaths:(NSArray *)paths newViewer:(BOOL)newv;
73
74 - (void)openSelectedPathsWith;
75
76 - (ViewersWindow *)newViewerAtPath:(NSString *)path canViewApps:(BOOL)viewapps;
77
78 - (NSImage *)iconForFile:(NSString *)fullPath ofType:(NSString *)type;
79
80 - (NSImage *)smallIconForFile:(NSString*)aPath;
81
82 - (NSImage *)smallIconForFiles:(NSArray*)pathArray;
83
84 - (NSImage *)smallHighlightIcon;
85
86 - (NSArray *)getSelectedPaths;
87
88 - (NSString *)trashPath;
89
90 - (NSArray *)viewersSearchPaths;
91
92 - (NSArray *)imageExtensions;
93
94 - (void)lockFiles:(NSArray *)files inDirectoryAtPath:(NSString *)path;
95
96 - (void)unLockFiles:(NSArray *)files inDirectoryAtPath:(NSString *)path;
97
98 - (BOOL)isLockedPath:(NSString *)path;
99
100 - (void)addWatcherForPath:(NSString *)path;
101
102 - (void)removeWatcherForPath:(NSString *)path;
103
104 - (BOOL)hideSysFiles;
105
106 - (BOOL)animateChdir;
107
108 - (BOOL)animateLaunck;
109
110 - (BOOL)animateSlideBack;
111
112 - (BOOL)usesContestualMenu;
113
114 //
115 // methods for GWRemote
116 //
117 - (void)performFileOperationWithDictionary:(id)opdict
118 fromSourceHost:(NSString *)fromName
119 toDestinationHost:(NSString *)toName;
120
121 - (BOOL)server:(NSString *)serverName isPakageAtPath:(NSString *)path;
122
123 - (BOOL)server:(NSString *)serverName fileExistsAtPath:(NSString *)path;
124
125 - (BOOL)server:(NSString *)serverName isWritableFileAtPath:(NSString *)path;
126
127 - (BOOL)server:(NSString *)serverName
128 existsAndIsDirectoryFileAtPath:(NSString *)path;
129
130 - (NSString *)server:(NSString *)serverName typeOfFileAt:(NSString *)path;
131
132 - (int)server:(NSString *)serverName sortTypeForPath:(NSString *)aPath;
133
134 - (void)server:(NSString *)serverName
135 setSortType:(int)type
136 atPath:(NSString *)aPath;
137
138 - (NSArray *)server:(NSString *)serverName
139 checkHiddenFiles:(NSArray *)files
140 atPath:(NSString *)path;
141
142 - (NSArray *)server:(NSString *)serverName
143 sortedDirectoryContentsAtPath:(NSString *)path;
144
145 - (void)server:(NSString *)serverName setSelectedPaths:(NSArray *)paths;
146
147 - (NSArray *)selectedPathsForServerWithName:(NSString *)serverName;
148
149 - (NSString *)homeDirectoryForServerWithName:(NSString *)serverName;
150
151 - (BOOL)server:(NSString *)serverName isLockedPath:(NSString *)aPath;
152
153 - (void)server:(NSString *)serverName addWatcherForPath:(NSString *)path;
154
155 - (void)server:(NSString *)serverName removeWatcherForPath:(NSString *)path;
156
157 - (void)server:(NSString *)serverName removeWatcherForPath:(NSString *)path;
158
159 - (void)server:(NSString *)serverName
160 renamePath:(NSString *)oldname
161 toNewName:(NSString *)newname;
162
163 @end
164
165 #endif // GWPROTOCOL_H
166

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