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.

42 lines
980 B

  1. /*
  2. *
  3. * REVISIONS:
  4. * ker02DEC92: Initial breakout of sensor classes into indiv files
  5. * pcy28Apr93: Changed file name from rtrthsen to runtrems
  6. * cgm12Apr96: Add destructor with unregister
  7. *
  8. */
  9. #define INCL_BASE
  10. #define INCL_DOS
  11. #define INCL_NOPM
  12. #include "cdefine.h"
  13. extern "C" {
  14. #if (C_OS & C_OS2)
  15. #include <os2.h>
  16. #endif
  17. #include <stdlib.h>
  18. #include <stdio.h>
  19. #include <malloc.h>
  20. #include <string.h>
  21. }
  22. #include "runtrems.h"
  23. #include "comctrl.h"
  24. RunTimeRemainingSensor :: RunTimeRemainingSensor(PDevice aParent,
  25. PCommController aCommController)
  26. : ThresholdSensor(aParent, aCommController,
  27. RUN_TIME_REMAINING, AREAD_ONLY)
  28. {
  29. getConfigThresholds();
  30. theThresholdState = IN_RANGE;
  31. theCommController->RegisterEvent(RUN_TIME_REMAINING, this);
  32. }
  33. RunTimeRemainingSensor :: ~RunTimeRemainingSensor()
  34. {
  35. theCommController->UnregisterEvent(RUN_TIME_REMAINING, this);
  36. }