home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / odtlktv4.zip / ODTLKT / TOOLKIT / IDL / COMP.IDL < prev    next >
Text File  |  1995-12-13  |  3KB  |  79 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. #include <somcls.idl>
  17.  
  18. #ifndef _ODTYPESM_
  19. #include <ODTypesM.idl>
  20. #endif
  21.  
  22. #ifndef _COMPONENT_
  23. #define _COMPONENT_
  24.  
  25. //==============================================================================
  26. // Class defined in this interface
  27. //==============================================================================
  28.  
  29. interface Component;
  30.  
  31. //==============================================================================
  32. // Classes used by this interface
  33. //==============================================================================
  34.  
  35. //==============================================================================
  36. // Implementation Types
  37. //==============================================================================
  38.  
  39. typedef somToken OSErr;
  40.  
  41. //==============================================================================
  42. // Class Component
  43. //==============================================================================
  44.  
  45. interface Component : SOMObject {
  46.  
  47.         OSErr   GetComponentInstanceError();
  48.  
  49.         void    SetComponentInstanceError(in OSErr theError);
  50.  
  51.         ODULong GetComponentVersion();
  52.  
  53.  
  54. #ifdef __SOMIDL__
  55.  
  56. implementation {
  57.  
  58.         OSErr     componentError;
  59.         ODULong   componentVersion;
  60.  
  61.         majorversion = 1;
  62.         minorversion = 0;
  63.         somDefaultInit: override, init;
  64.         somDestruct: override;
  65.         functionprefix = COMP_;
  66.         releaseorder :  GetComponentInstanceError,
  67.                         SetComponentInstanceError,
  68.                         GetComponentVersion,
  69.                         Reserved1;
  70.         dllname = "OPENDOC.DLL";
  71. };
  72.  
  73. #endif
  74.  
  75. };
  76.  
  77. #endif
  78. 
  79.