ASDebugging.h
上传用户:xjjlds
上传日期:2015-12-05
资源大小:22823k
文件大小:9k
源码类别:

多媒体编程

开发平台:

Visual C++

  1. /*
  2.      File:       ASDebugging.h
  3.  
  4.      Contains:   AppleScript Debugging Interfaces.
  5.  
  6.      Version:    Technology: AppleScript 1.1
  7.                  Release:    QuickTime 6.0.2
  8.  
  9.      Copyright:  (c) 1992-2001 by Apple Computer, Inc., all rights reserved
  10.  
  11.      Bugs?:      For bug reports, consult the following page on
  12.                  the World Wide Web:
  13.  
  14.                      http://developer.apple.com/bugreporter/
  15.  
  16. */
  17. #ifndef __ASDEBUGGING__
  18. #define __ASDEBUGGING__
  19. #ifndef __MACTYPES__
  20. #include "MacTypes.h"
  21. #endif
  22. #ifndef __FILES__
  23. #include "Files.h"
  24. #endif
  25. #ifndef __COMPONENTS__
  26. #include "Components.h"
  27. #endif
  28. #ifndef __APPLEEVENTS__
  29. #include "AppleEvents.h"
  30. #endif
  31. #ifndef __APPLESCRIPT__
  32. #include "AppleScript.h"
  33. #endif
  34. #if PRAGMA_ONCE
  35. #pragma once
  36. #endif
  37. #ifdef __cplusplus
  38. extern "C" {
  39. #endif
  40. #if PRAGMA_IMPORT
  41. #pragma import on
  42. #endif
  43. #if PRAGMA_STRUCT_ALIGN
  44.     #pragma options align=mac68k
  45. #elif PRAGMA_STRUCT_PACKPUSH
  46.     #pragma pack(push, 2)
  47. #elif PRAGMA_STRUCT_PACK
  48.     #pragma pack(2)
  49. #endif
  50. /**************************************************************************
  51.     Mode Flags
  52. **************************************************************************/
  53. /*    This mode flag can be passed to OSASetProperty or OSASetHandler
  54.     and will prevent properties or handlers from being defined in a context
  55.     that doesn't already have bindings for them. An error is returned if
  56.     a current binding doesn't already exist. 
  57. */
  58. enum {
  59.     kOSAModeDontDefine          = 0x0001
  60. };
  61. /**************************************************************************
  62.     Component Selectors
  63. **************************************************************************/
  64. enum {
  65.     kASSelectSetPropertyObsolete = 0x1101,
  66.     kASSelectGetPropertyObsolete = 0x1102,
  67.     kASSelectSetHandlerObsolete = 0x1103,
  68.     kASSelectGetHandlerObsolete = 0x1104,
  69.     kASSelectGetAppTerminologyObsolete = 0x1105,
  70.     kASSelectSetProperty        = 0x1106,
  71.     kASSelectGetProperty        = 0x1107,
  72.     kASSelectSetHandler         = 0x1108,
  73.     kASSelectGetHandler         = 0x1109,
  74.     kASSelectGetAppTerminology  = 0x110A,
  75.     kASSelectGetSysTerminology  = 0x110B,
  76.     kASSelectGetPropertyNames   = 0x110C,
  77.     kASSelectGetHandlerNames    = 0x110D
  78. };
  79. enum {
  80.     kASSelectFlushTerminology   = 0x110E
  81. };
  82. /**************************************************************************
  83.     Context Accessors
  84. **************************************************************************/
  85. EXTERN_API( OSAError )
  86. OSASetProperty                  (ComponentInstance      scriptingComponent,
  87.                                  long                   modeFlags,
  88.                                  OSAID                  contextID,
  89.                                  const AEDesc *         variableName,
  90.                                  OSAID                  scriptValueID)                      FIVEWORDINLINE(0x2F3C, 0x0010, 0x1106, 0x7000, 0xA82A);
  91. EXTERN_API( OSAError )
  92. OSAGetProperty                  (ComponentInstance      scriptingComponent,
  93.                                  long                   modeFlags,
  94.                                  OSAID                  contextID,
  95.                                  const AEDesc *         variableName,
  96.                                  OSAID *                resultingScriptValueID)             FIVEWORDINLINE(0x2F3C, 0x0010, 0x1107, 0x7000, 0xA82A);
  97. EXTERN_API( OSAError )
  98. OSAGetPropertyNames             (ComponentInstance      scriptingComponent,
  99.                                  long                   modeFlags,
  100.                                  OSAID                  contextID,
  101.                                  AEDescList *           resultingPropertyNames)             FIVEWORDINLINE(0x2F3C, 0x000C, 0x110C, 0x7000, 0xA82A);
  102. EXTERN_API( OSAError )
  103. OSASetHandler                   (ComponentInstance      scriptingComponent,
  104.                                  long                   modeFlags,
  105.                                  OSAID                  contextID,
  106.                                  const AEDesc *         handlerName,
  107.                                  OSAID                  compiledScriptID)                   FIVEWORDINLINE(0x2F3C, 0x0010, 0x1108, 0x7000, 0xA82A);
  108. EXTERN_API( OSAError )
  109. OSAGetHandler                   (ComponentInstance      scriptingComponent,
  110.                                  long                   modeFlags,
  111.                                  OSAID                  contextID,
  112.                                  const AEDesc *         handlerName,
  113.                                  OSAID *                resultingCompiledScriptID)          FIVEWORDINLINE(0x2F3C, 0x0010, 0x1109, 0x7000, 0xA82A);
  114. EXTERN_API( OSAError )
  115. OSAGetHandlerNames              (ComponentInstance      scriptingComponent,
  116.                                  long                   modeFlags,
  117.                                  OSAID                  contextID,
  118.                                  AEDescList *           resultingHandlerNames)              FIVEWORDINLINE(0x2F3C, 0x000C, 0x110D, 0x7000, 0xA82A);
  119. EXTERN_API( OSAError )
  120. OSAGetAppTerminology            (ComponentInstance      scriptingComponent,
  121.                                  long                   modeFlags,
  122.                                  FSSpec *               fileSpec,
  123.                                  short                  terminologyID,
  124.                                  Boolean *              didLaunch,
  125.                                  AEDesc *               terminologyList)                    FIVEWORDINLINE(0x2F3C, 0x0012, 0x110A, 0x7000, 0xA82A);
  126. /* Errors:
  127.        errOSASystemError        operation failed
  128.     */
  129. EXTERN_API( OSAError )
  130. OSAGetSysTerminology            (ComponentInstance      scriptingComponent,
  131.                                  long                   modeFlags,
  132.                                  short                  terminologyID,
  133.                                  AEDesc *               terminologyList)                    FIVEWORDINLINE(0x2F3C, 0x000A, 0x110B, 0x7000, 0xA82A);
  134. /* Errors:
  135.        errOSASystemError        operation failed
  136.     */
  137. /* Notes on terminology ID
  138.     A terminology ID is derived from script code and language code
  139.     as follows;
  140.         terminologyID = ((scriptCode & 0x7F) << 8) | (langCode & 0xFF)
  141. */
  142. /**************************************************************************
  143.     Obsolete versions provided for backward compatibility:
  144. */
  145. EXTERN_API( OSAError )
  146. ASSetProperty                   (ComponentInstance      scriptingComponent,
  147.                                  OSAID                  contextID,
  148.                                  const AEDesc *         variableName,
  149.                                  OSAID                  scriptValueID)                      FIVEWORDINLINE(0x2F3C, 0x000C, 0x1101, 0x7000, 0xA82A);
  150. EXTERN_API( OSAError )
  151. ASGetProperty                   (ComponentInstance      scriptingComponent,
  152.                                  OSAID                  contextID,
  153.                                  const AEDesc *         variableName,
  154.                                  OSAID *                resultingScriptValueID)             FIVEWORDINLINE(0x2F3C, 0x000C, 0x1102, 0x7000, 0xA82A);
  155. EXTERN_API( OSAError )
  156. ASSetHandler                    (ComponentInstance      scriptingComponent,
  157.                                  OSAID                  contextID,
  158.                                  const AEDesc *         handlerName,
  159.                                  OSAID                  compiledScriptID)                   FIVEWORDINLINE(0x2F3C, 0x000C, 0x1103, 0x7000, 0xA82A);
  160. EXTERN_API( OSAError )
  161. ASGetHandler                    (ComponentInstance      scriptingComponent,
  162.                                  OSAID                  contextID,
  163.                                  const AEDesc *         handlerName,
  164.                                  OSAID *                resultingCompiledScriptID)          FIVEWORDINLINE(0x2F3C, 0x000C, 0x1104, 0x7000, 0xA82A);
  165. EXTERN_API( OSAError )
  166. ASGetAppTerminology             (ComponentInstance      scriptingComponent,
  167.                                  FSSpec *               fileSpec,
  168.                                  short                  terminologID,
  169.                                  Boolean *              didLaunch,
  170.                                  AEDesc *               terminologyList)                    FIVEWORDINLINE(0x2F3C, 0x000E, 0x1105, 0x7000, 0xA82A);
  171. /* Errors:
  172.         errOSASystemError       operation failed
  173.     */
  174. /**************************************************************************/
  175. #if PRAGMA_STRUCT_ALIGN
  176.     #pragma options align=reset
  177. #elif PRAGMA_STRUCT_PACKPUSH
  178.     #pragma pack(pop)
  179. #elif PRAGMA_STRUCT_PACK
  180.     #pragma pack()
  181. #endif
  182. #ifdef PRAGMA_IMPORT_OFF
  183. #pragma import off
  184. #elif PRAGMA_IMPORT
  185. #pragma import reset
  186. #endif
  187. #ifdef __cplusplus
  188. }
  189. #endif
  190. #endif /* __ASDEBUGGING__ */