home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / appkit / workspaceRequest.h < prev   
Text File  |  1992-03-02  |  3KB  |  80 lines

  1. #import <objc/Object.h>
  2. #import <objc/hashtable.h>
  3. #import "graphics.h"
  4.  
  5. @class NXImage, View;
  6.  
  7. @protocol NXWorkspaceRequestProtocol
  8.  
  9. - (BOOL)openFile:(const char *)fullPath;
  10. - (BOOL)openFile:(const char *)fullPath withApplication:(const char *)appName;
  11. - (BOOL)openFile:(const char *)fullPath withApplication:(const char *)appName andDeactivate:(BOOL)flag;
  12.  
  13. - (BOOL)openTempFile:(const char *)fullPath;
  14.  
  15. - (BOOL)openFile:(const char *)fullPath
  16.        fromImage:(NXImage *)anImage
  17.           at:(const NXPoint *)point
  18.       inView:(View *)aView;
  19.  
  20. - (BOOL)launchApplication:(const char *)appName;UF(BOOL)launchApplication:(const char *)appName showTile:(BOOL)showTile autolaunch:(BOOL)autolaunch;
  21. - (const char *)getFullPathForApplication:(const char *)appName;
  22.  
  23. - (BOOL)findString:(const char *)aString inFile:(const char *)fullPath;
  24. - (BOOL)selectFile:(const char *)fullPath inFileViewerRootedAt:(const char *)rootFullpath;
  25.  
  26. - (void)findApplications;
  27.  
  28. - (void)fileSystemChanged;
  29. - (BOOL)didFileSystemChange;
  30. - (void)defaultsChanged;
  31. - (BOOL)didDefaultsChange;
  32.  
  33. /* Return values for type in getInfoForFile: */
  34.  
  35. extern NXAtom NXPlainFileType, NXDirectoryFileType, NXApplicationFileType;
  36. extern NXAtom NXFilesystemFileType, NXShellCommandFileType;
  37.  
  38. - (BOOL)getInfoForFile:(const char *)fullPath application:(char **)appName type:(NXAtom *)type;
  39.  
  40. - (NXImage *)getIconForFile:(const char *)fullPath;
  41.  
  42. - (BOOL)getInfoForFileSystemAt:(const char *)fullPath
  43.            isRemovable:(BOOL *)removableFlag
  44.             isWritable:(BOOL *)writableFlag
  45.          isUnmountable:(BOOL *)unmountableFlag
  46.            description:(char **)description
  47.               type:(char **)fileSystemType;
  48.  
  49. #define WSM_MOVE_OPERATION "move"
  50. #define WSM_COPY_OPERATION "copy"
  51. #define WSM_LINK_OPERATION "link"
  52. #define WSM_COMPRESS_OPERATION "compress"
  53. #define WSM_DECOMPRESS_OPERATION "decompress"
  54. #define WSM_ENCRYPT_OPERATION "encrypt"
  55. #define WSM_DECRYPT_OPERATION "decrypt"
  56. #define WSM_DESTROY_OPERATION "destroy"
  57. #define WSM_RECYCLE_OPERATION "recycle"
  58. #define WSM_DUPLICATE_OPERATION "duplicate"
  59.  
  60. - (int)performFileOperation:(const char *)operation
  61.              source:(const char *)source
  62.         destination:(const char *)destination
  63.               files:(const char *)files
  64.             options:(const char *)options;
  65.  
  66. - (BOOL)unmountAndEjectDeviceAt:(const char *)path;
  67. - (int)extendPowerOffBy:(int)requested;
  68.  
  69. - (void)slideImage:(NXImage *)image from:(const NXPoint *)fromPoint to:(const NXPoint *)toPoint;
  70.  
  71. - (void)hideOtherApplications;
  72.  
  73. - (void)beginListeningForDeviceStatusChanges;
  74. - (void)endListeningForDeviceStatusChanges;
  75.  
  76. - (void)beginListeningForApplicationStatusChanges;
  77. - (void)endListeningForApplicationStatusChanges;
  78.  
  79. @end
  80.