CQEPower is used to get power information such as battery voltage, battery status, and to initiate a system power-down. More...
#include <qepower.h>
Public Member Functions | |
| SINGLETON (CQEPower) | |
| This internal macro handles instantiation of this class. | |
| void | PowerOff () |
| Initiates a system power down. | |
| virtual int | GetProperty (int property, long *value) |
| See the definition of IProperty::GetProperty for more information on this method. | |
| virtual int | SetProperty (int property, long value) |
| See the definition of IProperty::SetProperty for more information on this method. | |
CQEPower is used to get power information such as battery voltage, battery status, and to initiate a system power-down.
To instantiate this class:
// by pointer CQEPower *ppwr = CQEPower::GetPtr(); // or by reference CQEPower &pwr = CQEPower::GetRef();
And when done with this class, call Release(), for each call to GetPtr() or GetRef():
| int CQEPower::GetProperty | ( | int | property, | |
| long * | value | |||
| ) | [virtual] |
See the definition of IProperty::GetProperty for more information on this method.
The following properties are supported:
Implements IProperty.
| void CQEPower::PowerOff | ( | ) |
Initiates a system power down.
It does a sync of the flash disk before shutting down, so no information is lost.
| int CQEPower::SetProperty | ( | int | property, | |
| long | value | |||
| ) | [virtual] |
See the definition of IProperty::SetProperty for more information on this method.
The following properties re supported:
Implements IProperty.
| CQEPower::SINGLETON | ( | CQEPower | ) |
This internal macro handles instantiation of this class.
1.7.1