Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
861 B

  1. /*
  2. * REVISIONS:
  3. * pcy02Dec92: Removed include of typedefs.h
  4. * jod07Dec92: Moved the Destructor out of line.
  5. * ane11Jan93: Added copy constructor
  6. * cad09Jul93: added getid
  7. * mwh05May94: #include file madness , part 2
  8. */
  9. #ifndef _EVENTTIME_H
  10. #define _EVENTTIME_H
  11. //#include "apc.h"
  12. //#include "_defs.h"
  13. #include "event.h"
  14. #include "timer.h"
  15. _CLASSDEF(Timer)
  16. _CLASSDEF(UpdateObj)
  17. _CLASSDEF(EventTimer)
  18. class EventTimer : public Timer
  19. {
  20. protected:
  21. PEvent theEvent;
  22. PUpdateObj theUpdateableObject;
  23. public:
  24. EventTimer(PEvent anEvent,PUpdateObj anUpdateObj,ULONG MilliSecondDelay);
  25. EventTimer(REventTimer aTimer);
  26. virtual ~EventTimer();
  27. virtual INT IsA() const {return EVENTTIMER;};
  28. virtual INT GetEventID() {return theEvent ? theEvent->GetId() : 0;};
  29. virtual VOID Execute();
  30. };
  31. #endif