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.

46 lines
1006 B

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * ker25NOV92 Initial OS/2 Revision
  7. * cad23Jun93 Added time delay vals
  8. * cad11Nov93: Making sure all timers are cancelled on destruction
  9. * pcy08Apr94: Trim size, use static iterators, dead code removal
  10. */
  11. #ifndef __LITESNSR_H
  12. #define __LITESNSR_H
  13. #include "stsensor.h"
  14. #include "event.h"
  15. #define LIGHTS_TEST_SECONDS (5) // a little extra just in case
  16. #define LIGHTS_TEST_MSECS (LIGHTS_TEST_SECONDS * 1000)
  17. _CLASSDEF(LightsTestSensor)
  18. class LightsTestSensor : public StateSensor {
  19. protected:
  20. ULONG theTimerId;
  21. public:
  22. LightsTestSensor( PDevice aParent,
  23. PCommController aCommController);
  24. virtual ~LightsTestSensor();
  25. //overidden interfaces
  26. virtual INT IsA() const { return LIGHTSTESTSENSOR; };
  27. virtual INT Set(const PCHAR);
  28. virtual INT Update(PEvent);
  29. // virtual INT Validate(INT, const PCHAR);
  30. //Additional Interfaces
  31. };
  32. #endif