home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / warptlk3.zip / TOOLKIT / SOM / INCLUDE / EVENT.IDL < prev    next >
Text File  |  1995-08-24  |  2KB  |  44 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. #ifndef event_idl
  14. #define event_idl
  15. #include <somobj.idl>
  16. interface SOMEEvent : SOMObject
  17. // SOMEEvent is the base class for all generic events within the Event Manager.
  18. // It simply timestamps an event before it is passed to a callback routine.
  19. // The event type is set to the true type by a subclass. The types currently used
  20. // by the event management framework are defined in eventmsk.h.
  21. // An subclassing of this class must avoid name and value collisions with eventmsk.h
  22. {
  23.   unsigned long somevGetEventTime();
  24.   // Returns the time of the generic event in milliseconds
  25.   unsigned long somevGetEventType();
  26.   // Returns the type of generic event
  27.   void somevSetEventTime(in unsigned long time);
  28.   // Sets the time of the generic event (time is in milliseconds)
  29.   void somevSetEventType(in unsigned long type);
  30.   // Sets the type of generic event
  31. #ifdef __SOMIDL__
  32.   implementation {
  33.     releaseorder: somevGetEventTime,somevGetEventType,somevSetEventTime,
  34.                   somevSetEventType;
  35.     majorversion = 2;
  36.     minorversion = 1;
  37.     filestem = event;
  38.     callstyle = idl;
  39.     somInit: override;
  40.   };
  41. #endif /* __SOMIDL__ */
  42. };
  43. #endif  /* event_idl */
  44.