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
1.2 KiB

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * ker03DEC92 Initial OS/2 Revision
  7. * jod05Apr93: Added changes for Deep Discharge
  8. * cad07Oct93: Plugging Memory Leaks
  9. * cgm12Apr96: Destructor with unregister
  10. * clk24Jun98: Added thePendingEventTimerID & thePendingEvent
  11. */
  12. #ifndef __BATCALT_H
  13. #define __BATCALT_H
  14. #include "stsensor.h"
  15. #include "event.h"
  16. _CLASSDEF(BatteryCalibrationTestSensor)
  17. // enum TestResult { TEST_CANCELLED, TEST_COMPLETED};
  18. #define CANCELLED_LINEFAIL 2
  19. class BatteryCalibrationTestSensor : public StateSensor {
  20. protected:
  21. INT theCalibrationCondition;
  22. LONG thePendingEventTimerId;
  23. PEvent thePendingEvent;
  24. public:
  25. BatteryCalibrationTestSensor( PDevice aParent, PCommController aCommController);
  26. virtual ~BatteryCalibrationTestSensor();
  27. //overidden interfaces
  28. virtual INT IsA() const { return BATTERYCALIBRATIONTESTSENSOR; };
  29. virtual INT Validate(INT, const PCHAR);
  30. virtual INT Update(PEvent);
  31. virtual INT Set(const PCHAR);
  32. INT GetCalibrationCondition() {return theCalibrationCondition;};
  33. VOID SetCalibrationCondition(INT cond) {theCalibrationCondition = cond;};
  34. };
  35. #endif