home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12otk1.exe / include / comp.idl < prev    next >
Text File  |  1997-04-02  |  3KB  |  106 lines

  1. //#====START_GENERATED_PROLOG======================================
  2. //#
  3. //#
  4. //#   COMPONENT_NAME: odscript
  5. //#
  6. //#   CLASSES: none
  7. //#
  8. //#   ORIGINS: 27
  9. //#
  10. //#
  11. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  12. //#   All Rights Reserved
  13. //#   Licensed Materials - Property of IBM
  14. //#   US Government Users Restricted Rights - Use, duplication or
  15. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  16. //#       
  17. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  18. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  19. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  20. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  21. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  22. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  23. //#   OR PERFORMANCE OF THIS SOFTWARE.
  24. //#
  25. //#====END_GENERATED_PROLOG========================================
  26. //#
  27. // @(#) 1.3 com/src/odscript/idl/comp.idl, odscript, od96os2, odos29712d 10/31/96 12:44:03 [3/21/97 17:43:03]
  28. //
  29. // ===========================================================================
  30. //
  31. // Component
  32. //
  33. // This class is the base class for Components to be managed by the OpenDoc
  34. // Component Manager.  These classes are intended to be used as a way to
  35. // expand the function available to OpenDoc parts.  For example the OpenDoc
  36. // Direct Scripting support uses a DirectScripting Component to allow the
  37. // dynamic installation and use of new scripting language support classes.
  38. //
  39. // ===========================================================================
  40.  
  41. #include <somobj.idl>
  42. #include <somcls.idl>
  43.  
  44. #ifndef _ODTYPESM_
  45. #include <ODTypesM.idl>
  46. #endif
  47.  
  48. #ifndef _COMPONENT_
  49. #define _COMPONENT_
  50.  
  51. //==============================================================================
  52. // Class defined in this interface
  53. //==============================================================================
  54.  
  55. interface Component;
  56.  
  57. //==============================================================================
  58. // Classes used by this interface
  59. //==============================================================================
  60.  
  61. //==============================================================================
  62. // Implementation Types
  63. //==============================================================================
  64.  
  65. typedef somToken OSErr;
  66.  
  67. //==============================================================================
  68. // Class Component
  69. //==============================================================================
  70.  
  71.  
  72. interface Component : SOMObject {
  73.  
  74.         OSErr   GetComponentInstanceError();
  75.  
  76.         void    SetComponentInstanceError(in OSErr theError);
  77.  
  78.         ODULong GetComponentVersion();
  79.  
  80.  
  81. #ifdef __SOMIDL__
  82.  
  83. implementation {
  84.  
  85.         OSErr     componentError;
  86.         ODULong   componentVersion;
  87.  
  88.         majorversion = 1;
  89.         minorversion = 0;
  90.         dllname = "oddsscr.dll";
  91.         somDefaultInit: override, init;
  92.         somDestruct: override;
  93.         functionprefix = COMP_;
  94.         releaseorder :  GetComponentInstanceError,
  95.                         SetComponentInstanceError,
  96.                         GetComponentVersion,
  97.                         Reserved1;
  98.  
  99. };
  100.  
  101. #endif
  102.  
  103. };
  104.  
  105. #endif
  106.