home *** CD-ROM | disk | FTP | other *** search
/ OpenStep 4.2J (Developer) / os42jdev.iso / NextDeveloper / OpenStepConversion / IntermediateFrameworks3 / AppKit.framework / Headers / workspaceRequest.h < prev   
Text File  |  1995-07-13  |  3KB  |  73 lines

  1. #import <Foundation/NSGeometry.h>
  2. #import <Foundation/NSObject.h>
  3. #import <objc/hashtable.h>
  4.  
  5. @class NSImage, NSView;
  6.  
  7. @protocol NXWorkspaceRequestProtocol
  8.  
  9. - (BOOL)openFile:(NSString *)fullPath;
  10. - (BOOL)openFile:(NSString *)fullPath withApplication:(NSString *)appName;
  11. - (BOOL)openFile:(NSString *)fullPath withApplication:(NSString *)appName andDeactivate:(BOOL)flag;
  12.  
  13. - (BOOL)openTempFile:(NSString *)fullPath;
  14.  
  15. - (BOOL)openFile:(NSString *)fullPath fromImage:(NSImage *)anImage at:(NSPoint)point inView:(NSView *)aView;
  16.  
  17. - (BOOL)launchApplication:(NSString *)appName;
  18. - (BOOL)launchApplication:(NSString *)appName showTile:(BOOL)showTile autolaunch:(BOOL)autolaunch;
  19. - (NSString *)getFullPathForApplication:(NSString *)appName;
  20.  
  21. - (BOOL)findString:(NSString *)aString inFile:(NSString *)fullPath;
  22. - (BOOL)selectFile:(NSString *)fullPath inFileViewerRootedAt:(NSString *)rootFullpath;
  23.  
  24. - (void)findApplications;
  25.  
  26. - (void)fileSystemChanged;
  27. - (BOOL)didFileSystemChange;
  28. - (void)defaultsChanged;
  29. - (BOOL)didDefaultsChange;
  30.  
  31. /* Return values for type in getInfoForFile: */
  32.  
  33. extern NSString *NSPlainFileType, *NSDirectoryFileType, *NSApplicationFileType;
  34. extern NSString *NSFilesystemFileType, *NSShellCommandFileType;
  35.  
  36. - (BOOL)getInfoForFile:(NSString *)fullPath application:(NSString **)appName type:(NSString **)type;
  37.  
  38. - (NSImage *)getIconForFile:(NSString *)fullPath;
  39.  
  40. - (BOOL)getInfoForFileSystemAt:(NSString *)fullPath isRemovable:(BOOL *)removableFlag isWritable:(BOOL *)writableFlag isUnmountable:(BOOL *)unmountableFlag description:(char **)description type:(char **)fileSystemType;
  41.  
  42. #define NSWorkspaceMoveOperation @"move"
  43. #define NSWorkspaceCopyOperation @"copy"
  44. #define NSWorkspaceLinkOperation @"link"
  45. #define NSWorkspaceCompressOperation @"compress"
  46. #define NSWorkspaceDecompressOperation @"decompress"
  47. #define NSWorkspaceEncryptOperation @"encrypt"
  48. #define NSWorkspaceDecryptOperation @"decrypt"
  49. #define NSWorkspaceDestroyOperation @"destroy"
  50. #define NSWorkspaceRecycleOperation @"recycle"
  51. #define NSWorkspaceDuplicateOperation @"duplicate"
  52.  
  53. - (int)performFileOperation:(NSString *)operation source:(NSString *)source destination:(NSString *)destination files:(NSString *)files options:(NSString *)options;
  54.  
  55. - (BOOL)unmountAndEjectDeviceAt:(NSString *)path;
  56. - (int)extendPowerOffBy:(int)requested;
  57.  
  58. - (void)slideImage:(NSImage *)image from:(NSPoint)fromPoint to:(NSPoint)toPoint;
  59.  
  60. - (void)hideOtherApplications;
  61.  
  62. - (void)beginListeningForDeviceStatusChanges;
  63. - (void)endListeningForDeviceStatusChanges;
  64.  
  65. - (void)beginListeningForApplicationStatusChanges;
  66. - (void)endListeningForApplicationStatusChanges;
  67.  
  68. - (BOOL)getMountedRemovableMedia:(char **)mountedList;
  69. - (BOOL)mountNewRemovableMedia:(char **)newlyMountedList;
  70. - (void)checkForRemovableMedia;
  71.  
  72. @end
  73.