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.

55 lines
1.3 KiB

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * ker07DEC92: Initial OS/2 Revision
  7. * ker14DEC92: fleshed out the methods
  8. * pcy17Dec92: Set should not use const PCHAR
  9. * pcy26Jan93: Added SetEepromAccess()
  10. * pcy10Sep93: Removed theCommController member. Its in Device.
  11. * cad28Sep93: Made sure destructor(s) virtual
  12. * cad11Nov93: Making sure all timers are cancelled on destruction
  13. */
  14. #ifndef __BATTMGR_H__
  15. #define __BATTMGR_H__
  16. #include "update.h"
  17. #include "device.h"
  18. #include "comctrl.h"
  19. #include "sensor.h"
  20. #include "firmrevs.h"
  21. _CLASSDEF(BatteryReplacementManager)
  22. class BatteryReplacementManager : public Device {
  23. protected:
  24. PCHAR theReplaceDate;
  25. PCHAR theAgeLimit;
  26. ULONG theTimerId;
  27. PUpdateObj theParent;
  28. PSensor theBatteryReplacementDateSensor;
  29. PSensor theReplaceBatterySensor;
  30. public:
  31. BatteryReplacementManager(PUpdateObj aParent, PCommController aCommController, PFirmwareRevSensor aFirmwareRevSensor);
  32. virtual ~BatteryReplacementManager();
  33. virtual INT Get(INT, PCHAR);
  34. // virtual INT DeepGet(INT, PCHAR);
  35. virtual INT Set(INT, const PCHAR);
  36. virtual INT Update(PEvent);
  37. virtual INT SetReplacementTimer(void);
  38. VOID SetEepromAccess(INT anAccessCode);
  39. virtual VOID GetAllowedValue(INT code, CHAR *aValue);
  40. virtual VOID Reinitialize();
  41. };
  42. #endif