home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / opendc12.zip / od124os2.exe / od12otk1.exe / include / oddssink.idl < prev    next >
Text File  |  1997-04-02  |  4KB  |  104 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.9 com/src/odscript/idl/oddssink.idl, odscript, od96os2, odos29712d 10/31/96 12:44:29 [3/21/97 17:41:38]
  28. //
  29. //
  30. //     File:          oddssink.idl
  31. //
  32. //     Contains:       Class definition for Direct Scripting Sink
  33. #ifndef _ODDSSINK_
  34. #define _ODDSSINK_
  35.  
  36. #include <somobj.idl>
  37.  
  38. typedef void * ODDSRESULT;
  39. typedef void * LPOBJECT;
  40. typedef somToken ODGUID;
  41. typedef ODGUID * LPODGUID;
  42.  
  43. interface ODDSEventMgr ;
  44. interface ODDSSink : SOMObject
  45. {
  46.   exception ODDS_ERROR {long ErrorCode; char Reason[80];};
  47.                                        // Event Manager to which sink is
  48.                                        // connected
  49.   attribute ODDSEventMgr eventMgr;
  50.                                        // Type of sink
  51.                                        //  ODDS_SINK_TYPE_OLE = ole sink
  52.                                        //  ODDS_SINK_TYPE_LS  = Lotus Script
  53.                                        //  ODDS_SINK_TYPE_SOM = SOM/OD
  54.   attribute unsigned short type;
  55.                                        // Address owning object of sink
  56.   attribute void * object;
  57.                                        // Address to envvronment information for
  58.                                        // sink
  59.   attribute void * environment;
  60.                                        // Universal ID for sink
  61.   attribute LPODGUID guid;
  62.  
  63.   long FireEvent( in string eventName, in sequence<any> inputParms,
  64.                      in LPOBJECT sourceObject,
  65.                      out ODDSRESULT result) raises(ODDS_ERROR);
  66.   void  EventMgrGone();
  67.   void  SinkWithGUID(inout somInitCtrl ctrl, in ODGUID guid) raises(ODDS_ERROR);
  68.  
  69. #ifdef __SOMIDL__
  70.  
  71.    implementation
  72.    {
  73.       functionprefix = ODDSSink;
  74.       MajorVersion = 1;
  75.       MinorVersion = 0;
  76.       dllname = "oddsevnt.dll";
  77.       guid:noset;
  78.       SinkWithGUID: init;
  79.       somDefaultInit: override, init;
  80.       somDestruct: override;
  81.       releaseorder:
  82.               SinkWithGUID,
  83.               FireEvent,
  84.               EventMgrGone,
  85.               _get_object,
  86.               _set_object,
  87.               _get_eventMgr,
  88.               _set_eventMgr,
  89.               _get_environment,
  90.               _set_environment,
  91.               _get_type,
  92.               _set_type,
  93.               _get_guid,
  94.               _set_guid;
  95.  
  96.      passthru C_xh_before = " #include \"oddsconn.h\" ";
  97.      passthru C_xih_before = " #include \"oddsconn.h\" ";
  98.  
  99.    };
  100. #endif
  101. };
  102. #endif // _ODDSSINK_
  103.  
  104.