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.

33 lines
668 B

  1. /*
  2. *
  3. * REVISIONS:
  4. * cgm12Apr96: Add destructor with unregister
  5. * djs02Jun97: Changed from sensor to a statesensor
  6. *
  7. */
  8. #define INCL_BASE
  9. #define INCL_DOS
  10. #define INCL_NOPM
  11. #include "cdefine.h"
  12. extern "C" {
  13. #if (C_OS & C_OS2)
  14. #include <os2.h>
  15. #endif
  16. }
  17. #include "badbatts.h"
  18. #include "comctrl.h"
  19. NumberBadBatteriesSensor :: NumberBadBatteriesSensor(PDevice aParent, PCommController aCommController)
  20. : StateSensor(aParent, aCommController, BAD_BATTERY_PACKS)
  21. {
  22. DeepGet();
  23. theCommController->RegisterEvent(theSensorCode, this);
  24. }
  25. NumberBadBatteriesSensor :: ~NumberBadBatteriesSensor()
  26. {
  27. theCommController->UnregisterEvent(theSensorCode, this);
  28. }