home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / OSATERM.IDL < prev    next >
Text File  |  1995-12-13  |  4KB  |  103 lines

  1. /********************************************************************/
  2. /*  Licensed Materials - Property of IBM                            */
  3. /*                                                                  */
  4. /*                                                                  */
  5. /* Copyright (C) International Business Machines Corp., 1994.       */
  6. /* Copyright (C) Apple Computer, Inc., 1994                         */
  7. /*                                                                  */
  8. /*  US Government Users Restricted Rights -                         */
  9. /*  Use, duplication, or disclosure restricted                      */
  10. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  11. /*                                                                  */
  12. /*                                                                  */
  13. /********************************************************************/
  14.  
  15. #include <somobj.idl>
  16.  
  17. #ifndef _ODTYPESM_
  18. #include <ODTypesM.idl>
  19. #endif
  20.  
  21. #ifndef _OSATERM_
  22. #define _OSATERM_
  23.  
  24. //=============================================================================
  25. // Class defined in this interface
  26. //=============================================================================
  27.  
  28. interface OSATerminology;
  29.  
  30. //==============================================================================
  31. // Implementation Types
  32. //==============================================================================
  33.  
  34. typedef somToken AEDesc;
  35. typedef somToken AEDescList;
  36. typedef somToken OSAError;
  37.  
  38. //=============================================================================
  39. // Class OSATerminology
  40. //=============================================================================
  41.  
  42. interface OSATerminology : SOMObject {
  43.  
  44. OSAError GetAEUT(out AEDesc ptheAEUT, in ODULong Reserved1, in ODULong Reserved2);
  45. // returns the binary representation of an AETE constructed from the AEUT
  46.  
  47. OSAError GetSCSZFlags(in char *pszApp_ID, out ODULong pscszFlags);
  48. // used to determine an apps scripting options
  49.  
  50. OSAError GetAETE(in char *pszApp_ID, in ODBoolean launchIfNeeded,
  51.                  out AEDescList ptheAETEs, in ODULong Reserved1, in ODULong Reserved2);
  52. // returns the binary representation of an AETE for an application
  53.  
  54. OSAError PutAETE(in char *pszApp_ID, in AEDesc *ptheAETE,
  55.                  in ODULong Reserved1, in ODULong Reserved2);
  56. // used to store the AETE resource for an application
  57.  
  58. OSAError PutSCSZFlags(in char *pszApp_ID, in ODULong scszFlags);
  59. // used to store the SCSZ resource for an application
  60.  
  61. OSAError UnregisterApplication(in char *pszApp_ID);
  62. // unregister application from being OSA-aware
  63.  
  64. OSAError RegisterApplication(in char *pszApp_ID, in char *pszApp_ExecutableName,
  65.                              in ODULong AppType);
  66. // register application as being OSA-aware
  67.  
  68. OSAError ListApplications(out char pszAppNames, inout ODULong psize, in ODULong AppType);
  69. // list OSA-aware applications
  70.  
  71. OSAError QueryExecutableFileName(in char *pszApp_ID,
  72.                                  out char pszApp_ExecutableName,
  73.                                  inout ODULong psize);
  74. // get application executable name
  75.  
  76. #ifdef __SOMIDL__
  77.  
  78. implementation {
  79.  
  80.         majorversion = 1;
  81.         minorversion = 0;
  82.         functionprefix = OSATerm_;
  83.         releaseorder :
  84.                         GetAEUT,
  85.                         GetSCSZFlags,
  86.                         GetAETE,
  87.                         PutAETE,
  88.                         PutSCSZFlags,
  89.                         UnregisterApplication,
  90.                         RegisterApplication,
  91.                         ListApplications,
  92.                         QueryExecutableFileName;
  93.         somDefaultInit: override, init;
  94.         somDestruct: override;
  95.         dllname = "OPENDOC.DLL";
  96.  
  97. };
  98.  
  99. #endif
  100.  
  101. };
  102. #endif
  103.