home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / include / tsident.idl < prev    next >
Encoding:
Text File  |  1996-02-21  |  1.6 KB  |  65 lines

  1. //
  2. //   COMPONENT_NAME: somd
  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.  
  14. //  Description
  15. //  -----------
  16. //  OMG Object Transaction Service initialization interface.
  17.  
  18.  
  19. #ifndef SOM_tsident_idl
  20. #define SOM_tsident_idl
  21.  
  22. #include <somobj.idl>
  23. #include <snglicls.idl>
  24.  
  25. // External references
  26. module TSPortability {
  27.   interface Sender;
  28.   interface Receiver;
  29. };
  30.  
  31. interface TSIdentification : SOMObject
  32. {
  33.   exception NotAvailable {};
  34.   exception AlreadyIdentified {};
  35.  
  36.   void identify_sender(in TSPortability::Sender sender)
  37.     raises (NotAvailable, AlreadyIdentified);
  38.  
  39.   void identify_receiver(in TSPortability::Receiver receiver)
  40.     raises (NotAvailable, AlreadyIdentified);
  41.  
  42.   readonly attribute TSPortability::Sender   sender;
  43.   readonly attribute TSPortability::Receiver receiver;
  44.   // The above attributes may be set to default Sender/Receiver objects
  45.   // if "identify_sender" and "identify_receiver" have not been called.
  46.   // The above attributes are set to NULL if the OTS is not available
  47.   // or could not be initialized.
  48.  
  49.   #ifdef __SOMIDL__
  50.   implementation
  51.   {
  52.     releaseorder: identify_sender, identify_receiver,
  53.           _get_sender, _get_receiver;
  54.     metaclass = SOMMSingleInstance;
  55.     majorversion = 2;
  56.     minorversion = 1;
  57.     dllname = "somd.dll";
  58.  
  59.  
  60.   };
  61.   #endif /* __SOMIDL__ */
  62. };
  63.  
  64. #endif  /* SOM_tsident_idl */
  65.