Obtains electrical power information. More...
#include <gelSystem.h>
Static Public Member Functions | |
static PowerSource | getPowerSource () |
Gets the computer's power source. | |
static BatteryStatus | getBatteryStatus () |
Gets the status of the battery. | |
static int | getBatteryLifePercent () |
Gets the percentage of battery power remaining. |
Obtains electrical power information.
static PowerSource gel::GelPowerInfo::getPowerSource | ( | ) | [static] |
Gets the computer's power source.
static BatteryStatus gel::GelPowerInfo::getBatteryStatus | ( | ) | [static] |
Gets the status of the battery.
static int gel::GelPowerInfo::getBatteryLifePercent | ( | ) | [static] |
Gets the percentage of battery power remaining.
This function will return 0 if no battery is present ( i.e. getPowerSource() == PowerAC ).
API Documentation by Mark D. Procarione | Generated by |