home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / tolkit45.zip / os2tk45 / som / include / event.idl < prev    next >
Text File  |  1999-02-22  |  2KB  |  72 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. //#  @(#) 2.7 src/somem/event.idl, somu, som2.1 9/1/94 17:45:53 [7/30/96 14:46:09]
  14.  
  15.  
  16. #ifndef event_idl
  17. #define event_idl
  18.  
  19. #include <somobj.idl>
  20.  
  21. interface SOMEEvent : SOMObject
  22.  
  23. // SOMEEvent is the base class for all generic events within the Event Manager.
  24. // It simply timestamps an event before it is passed to a callback routine.
  25. // The event type is set to the true type by a subclass. The types currently used
  26. // by the event management framework are defined in eventmsk.h.
  27. // An subclassing of this class must avoid name and value collisions with eventmsk.h
  28.  
  29. {
  30.   unsigned long somevGetEventTime();
  31.  
  32.   // Returns the time of the generic event in milliseconds
  33.  
  34.   unsigned long somevGetEventType();
  35.  
  36.   // Returns the type of generic event
  37.  
  38.   void somevSetEventTime(in unsigned long time);
  39.  
  40.   // Sets the time of the generic event (time is in milliseconds)
  41.  
  42.   void somevSetEventType(in unsigned long type);
  43.  
  44.   // Sets the type of generic event
  45.  
  46.  
  47.  
  48. #ifdef __SOMIDL__
  49.   implementation {
  50.  
  51.     releaseorder: somevGetEventTime,somevGetEventType,somevSetEventTime,
  52.                   somevSetEventType;
  53.  
  54.     //# Class Modifiers
  55.     majorversion = 2;
  56.     minorversion = 1;
  57.     filestem = event;
  58.     callstyle = idl;
  59.  
  60.  
  61.  
  62.     //# Method Modifiers
  63.     somInit: override;
  64.  
  65.     //# Data Modifiers
  66.  
  67.   };
  68. #endif /* __SOMIDL__ */
  69. };
  70.  
  71. #endif  /* event_idl */
  72.