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.

41 lines
771 B

  1. /*
  2. *
  3. * NOTES:
  4. *
  5. * REVISIONS:
  6. * ker02DEC92: Initial breakout of sensor classes into indiv files
  7. * cgm12Apr96: Destructor with unregister
  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 "battcaps.h"
  23. #include "comctrl.h"
  24. BatteryCapacitySensor :: BatteryCapacitySensor(PDevice aParent, PCommController aCommController)
  25. : ThresholdSensor(aParent, aCommController, BATTERY_CAPACITY)
  26. {
  27. DeepGet();
  28. theCommController->RegisterEvent(BATTERY_CAPACITY, this);
  29. }
  30. BatteryCapacitySensor :: ~BatteryCapacitySensor()
  31. {
  32. theCommController->UnregisterEvent(BATTERY_CAPACITY, this);
  33. }