windows-nt/Source/XPSP1/NT/ds/netapi/svcdlls/upssvc/apcsmart/badbatts.cxx

34 lines
668 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*
*
* REVISIONS:
* cgm12Apr96: Add destructor with unregister
* djs02Jun97: Changed from sensor to a statesensor
*
*/
#define INCL_BASE
#define INCL_DOS
#define INCL_NOPM
#include "cdefine.h"
extern "C" {
#if (C_OS & C_OS2)
#include <os2.h>
#endif
}
#include "badbatts.h"
#include "comctrl.h"
NumberBadBatteriesSensor :: NumberBadBatteriesSensor(PDevice aParent, PCommController aCommController)
: StateSensor(aParent, aCommController, BAD_BATTERY_PACKS)
{
DeepGet();
theCommController->RegisterEvent(theSensorCode, this);
}
NumberBadBatteriesSensor :: ~NumberBadBatteriesSensor()
{
theCommController->UnregisterEvent(theSensorCode, this);
}