home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / samples / som / somd / cpp / event / eventcom.idl < prev    next >
Encoding:
Text File  |  1996-01-24  |  2.7 KB  |  105 lines

  1. //
  2. //   COMPONENT_NAME: somx
  3. //
  4. //   ORIGINS: 27
  5. //
  6. //
  7. //   10H9767, 10H9769  (C) COPYRIGHT International Business Machines Corp. 1992,1994
  8. //   All Rights Reserved
  9. //   Licensed Materials - Property of IBM
  10. //   US Government Users Restricted Rights - Use, duplication or
  11. //   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  12. //
  13. /* %Z% %I% %W% %G% %U% [%H% %T%] */
  14.  
  15. /*
  16.  *
  17.  * DISCLAIMER OF WARRANTIES.
  18.  * The following [enclosed] code is sample code created by IBM
  19.  * Corporation. This sample code is not part of any standard or IBM
  20.  * product and is provided to you solely for the purpose of assisting
  21.  * you in the development of your applications.  The code is provided
  22.  * "AS IS". IBM MAKES NO WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT
  23.  * NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  24.  * FOR A PARTICULAR PURPOSE, REGARDING THE FUNCTION OR PERFORMANCE OF
  25.  * THIS CODE.  IBM shall not be liable for any damages arising out of
  26.  * your use of the sample code, even if they have been advised of the
  27.  * possibility of such damages.
  28.  *
  29.  * DISTRIBUTION.
  30.  * This sample code can be freely distributed, copied, altered, and
  31.  * incorporated into other software, provided that it bears the above
  32.  * Copyright notice and DISCLAIMER intact.
  33.  */
  34.  
  35. #ifndef eventcom_idl
  36. #define eventcom_idl
  37.  
  38. #include <somobj.idl>
  39.  
  40. module EventComm {
  41.  
  42.   exception  Disconnected { long ErrCode; char Reason[80]; };
  43.  
  44.   interface  EventConnection : SOMObject {
  45.      void disconnect () raises (Disconnected);
  46.  
  47. #ifdef __SOMIDL__
  48.   implementation {
  49.     releaseorder: disconnect;
  50.  
  51.     //# Class Modifiers
  52.     callstyle = idl;
  53.     majorversion = 1;  minorversion = 1;
  54.     dllname="event.dll";
  55.       //# Method Modifiers
  56.  
  57.   };
  58. #endif /* __SOMIDL__   */
  59.   };
  60.  
  61.   interface  Consumer : EventConnection {
  62.         attribute  EventConnection ev_con;
  63.         void push(in any event_data) raises (Disconnected);
  64.  
  65. #ifdef __SOMIDL__
  66.   implementation {
  67.     releaseorder: push, _get_ev_con, _set_ev_con;
  68.  
  69.     //# Class Modifiers
  70.     callstyle = idl;
  71.     majorversion = 1;  minorversion = 1;
  72.     dllname="event.dll";
  73.  
  74.     //# Method Modifiers
  75.     disconnect: override;
  76.   };
  77. #endif /* __SOMIDL__   */
  78.   };
  79.  
  80.  
  81.   interface Supplier : EventConnection {
  82.         attribute  EventConnection ev_con;
  83.         boolean try_pull(out any event_data) raises (Disconnected);
  84.  
  85. #ifdef __SOMIDL__
  86.   implementation {
  87.     releaseorder:  try_pull, _get_ev_con, _set_ev_con;
  88.  
  89.     //# Class Modifiers
  90.     callstyle = idl;
  91.     majorversion = 1;  minorversion = 1;
  92.     dllname="event.dll";
  93.  
  94.     //# Method Modifiers
  95.     disconnect: override;
  96.   };
  97. #endif /* __SOMIDL__   */
  98.   };
  99.  
  100. };   /*  module  */
  101.  
  102.  
  103. #endif  /* eventcom_idl  */
  104.  
  105.