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.

39 lines
883 B

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * ker03DEC92: Initial break out of sensor classes into separate files
  7. * jod05Apr93: Added changes for Deep Discharge
  8. * pcy12Oct93: 2 ABNORMALS to cause a line bad (fixes LF during cal)
  9. * jps14Jul94: made theUpsState ULONG
  10. *
  11. */
  12. #ifndef ULINECON_H
  13. #define ULINECON_H
  14. #include "stsensor.h"
  15. #include "isa.h"
  16. _CLASSDEF(UtilityLineConditionSensor)
  17. class UtilityLineConditionSensor : public StateSensor {
  18. protected:
  19. ULONG theUpsState;
  20. INT theInformationSource;
  21. INT theLineFailCount;
  22. public:
  23. UtilityLineConditionSensor(PDevice aParent, PCommController aCommController=NULL);
  24. virtual ~UtilityLineConditionSensor();
  25. virtual INT IsA() const { return UTILITYLINECONDITIONSENSOR; };
  26. virtual INT Validate(INT, const PCHAR);
  27. virtual INT Update(PEvent anEvent);
  28. };
  29. #endif