home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / appkit / Speaker.h < prev    next >
Text File  |  1992-05-22  |  3KB  |  75 lines

  1. /*
  2.     Speaker.h
  3.     Application Kit, Release 2.0
  4.     Copyright (c) 1988, NeXT, Inc.  All rights reserved. 
  5. */
  6.  
  7. #import <objc/Object.h>
  8. #import <mach/message.h>
  9. #import <mach/port.h>
  10.  
  11. #define NX_ISFILE 0
  12. #define NX_ISDIRECTORY 1
  13. #define NX_ISAPPLICATION 2
  14. #define NX_ISODMOUNT 3
  15. #define NX_ISNETMOUNT 4
  16. #define NX_ISSCSIMOUNT 5
  17. #define NX_ISFLOPPYMOUNT 6
  18.  
  19. @interface Speaker : Object
  20. {
  21.     port_t              sendPort;
  22.     port_t              replyPort;
  23.     int                 sendTimeout;
  24.     int                 replyTimeout;
  25.     id                  delegate;
  26.  UEInt                 _reservedSpeaker1;
  27.     int                 _reservedSpeaker2;
  28. }
  29.  
  30. - init;
  31. - free;
  32. - delegate;
  33. - setDelegate:anObject;
  34. - (port_t)sendPort;
  35. - setSendPort:(port_t)aPort;
  36. - (port_t)replyPort;
  37. - setReplyPort:(port_t)aPort;
  38. - (int)sendTimeout;
  39. - setSendTimeout:(int)ms;
  40. - (int)replyTimeout;
  41. - setReplyTimeout:(int)ms;
  42. - (int)performRemoteMethod:(const char *)msgSelector;
  43. - (int)performRemoteMethod:(const char *)msgSelector with:(const char *)data length:(int)numBytes;
  44. - (int)selectorRPC:(const char *)msgSelector paramTypes:(char *)params, ...;
  45. - write:(NXTypedStream *)stream;
  46. - read:(NXTypedStream *)stream;
  47.  
  48. /* use [Application workspace] instead of these messages unless you need to send them to the port of a specific app */
  49. - (int)sendOpenFileMsg:(const char *)fullPath ok:(int *)flag andDeactivateSelf:(BOOL)doDeact;
  50. - (int)sendOpenTempFileMsg:(const char *)fullPath ok:(int *)flag andDeactivateSelf:(BOOL)doDeact;
  51. - (int)openFile:(const char *)fullPath ok:(int *)flag;
  52. - (int)openTempFile:(const char *)fullPath ok:(int *)flag;
  53.  
  54. - (int)msgQuit:(int *)flag;
  55. - (int)msgCalc:(int *)flag;
  56. - (int)msgDirectory:(char * const *)fullPath ok:(int *)flag;
  57. - (int)msgVersion:(char * const *)aString ok:(int *)flag;
  58. - (int)msgFile:(char * const *)fullPath ok:(int *)flag;
  59. - (int)msgPrint:(const char *)fullPath ok:(int *)flag;
  60. - (int)msgSelection:(char * const *)bytes length:(int *)len asType:(const char *)aType ok:(int *)flag;
  61. - (int)msgSetPosition:(const char *)aString posType:(int)anInt andSelect:(int)sflag ok:(int *)flag;
  62. - (int)msgPosition:(char * const *)aString posType:(int *)anInt ok:(int *)flag;
  63. - (int)msgCopyAsType:(const char *)aType ok:(int *)flag;
  64. - (int)msgCutAsType:(const char *)aType ok:(int *)flag;
  65. - (int)msgPaste:(int *)flag;
  66.  
  67. /* 
  68.  * The following new... methods are now obsolete.  They remain in this  
  69.  * interface file for backward compatibility only.  Use Object's alloc method  
  70.  * and the init... methods defined in this class instead.
  71.  */
  72. + new;
  73.  
  74. @end
  75.