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

  1. //
  2. //   COMPONENT_NAME: somu
  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. #ifndef event_idl
  15. #define event_idl
  16.  
  17. #include <somobj.idl>
  18.  
  19. interface SOMEEvent : SOMObject
  20.  
  21. // SOMEEvent is the base class for all generic events within the Event Manager.
  22. // It simply timestamps an event before it is passed to a callback routine.
  23. // The event type is set to the true type by a subclass. The types currently used
  24. // by the event management framework are defined in eventmsk.h.
  25. // An subclassing of this class must avoid name and value collisions with eventmsk.h
  26.  
  27. {
  28.   unsigned long somevGetEventTime();
  29.  
  30.   // Returns the time of the generic event in milliseconds
  31.  
  32.   unsigned long somevGetEventType();
  33.  
  34.   // Returns the type of generic event
  35.  
  36.   void somevSetEventTime(in unsigned long time);
  37.  
  38.   // Sets the time of the generic event (time is in milliseconds)
  39.  
  40.   void somevSetEventType(in unsigned long type);
  41.  
  42.   // Sets the type of generic event
  43.  
  44. #ifdef __SOMIDL__
  45.   implementation {
  46.  
  47.     releaseorder: somevGetEventTime,somevGetEventType,somevSetEventTime,
  48.                   somevSetEventType;
  49.  
  50.     majorversion = 2;
  51.     minorversion = 1;
  52.     filestem = event;
  53.     callstyle = idl;
  54.  
  55.  
  56.     somInit: override;
  57.  
  58.   };
  59. #endif /* __SOMIDL__ */
  60. };
  61.  
  62. #endif  /* event_idl */
  63.