Source code of Windows XP (NT5)
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.

57 lines
1.3 KiB

  1. /*
  2. *
  3. * REVISIONS:
  4. * cad11Nov93: Making sure all timers are cancelled on destruction
  5. * djs22Feb96: Added smart trim sensor
  6. */
  7. #ifndef _INC__MATRIX_H
  8. #define _INC__MATRIX_H
  9. #include "smartups.h"
  10. _CLASSDEF(Matrix)
  11. //-------------------------------------------------------------------
  12. class Matrix : public SmartUps {
  13. protected:
  14. //
  15. // required sensors
  16. //
  17. PSensor theNumberBadBatteriesSensor;
  18. PSensor theBypassModeSensor;
  19. INT theIgnoreBattConditionOKFlag;
  20. ULONG theTimerID;
  21. virtual VOID HandleBatteryConditionEvent( PEvent aEvent );
  22. virtual VOID HandleLineConditionEvent( PEvent aEvent );
  23. virtual VOID handleBypassModeEvent( PEvent aEvent );
  24. virtual VOID handleSmartCellSignalCableStateEvent( PEvent aEvent );
  25. virtual INT MakeSmartBoostSensor( const PFirmwareRevSensor rev );
  26. virtual INT MakeSmartTrimSensor(const PFirmwareRevSensor rev);
  27. virtual VOID registerForEvents();
  28. virtual VOID reinitialize();
  29. public:
  30. Matrix( PUpdateObj aDeviceController, PCommController aCommController );
  31. virtual ~Matrix();
  32. virtual INT IsA() const { return MATRIX; };
  33. virtual INT Get( INT code, PCHAR value );
  34. virtual INT Set( INT code, const PCHAR value );
  35. virtual INT Update( PEvent event );
  36. };
  37. #endif