#include </home/clem/local/src/opie/library/power.h>
Collaboration diagram for PowerStatus:

Public Types | |
| enum | ACStatus { Offline, Online, Backup } |
| enum | BatteryStatus { High = 0x01, Low = 0x02, VeryLow = 0x04, Critical = 0x08, Charging = 0x10, NotPresent = 0x20 } |
Public Member Functions | |
| PowerStatus () | |
| ACStatus | acStatus () const |
| BatteryStatus | batteryStatus () const |
| BatteryStatus | backupBatteryStatus () const |
| bool | batteryPercentAccurate () const |
| int | batteryPercentRemaining () const |
| int | batteryTimeRemaining () const |
| bool | operator!= (const PowerStatus &ps) |
Private Attributes | |
| ACStatus | ac |
| BatteryStatus | bs |
| BatteryStatus | bbs |
| int | percentRemain |
| int | secsRemain |
| bool | percentAccurate |
Friends | |
| class | PowerStatusManager |
|
|
|
|
|
|
|
|
Definition at line 29 of file power.h. References ac, bbs, bs, NotPresent, Offline, percentRemain, and secsRemain. |
|
|
Definition at line 38 of file power.h. References ac. Referenced by ServerApplication::apmTimeout(), BatteryStatus::paintEvent(), BatteryMeter::paintEvent(), BrightnessApplet::readSystemBrightness(), BatteryStatus::statusText(), and BrightnessApplet::writeSystemBrightness(). |
|
|
Definition at line 43 of file power.h. References bbs. |
|
|
Definition at line 45 of file power.h. References percentAccurate. Referenced by BatteryStatus::statusText(). |
|
|
Definition at line 46 of file power.h. References percentRemain. Referenced by BatteryMeter::timerEvent(), and BatteryStatus::UpdateBatteryStatus(). |
|
|
Definition at line 42 of file power.h. References bs. Referenced by BatteryStatus::statusText(), and BatteryMeter::timerEvent(). |
|
|
Definition at line 47 of file power.h. References secsRemain. Referenced by BatteryStatus::statusText(). |
|
|
Definition at line 49 of file power.h. References ac, bbs, bs, percentRemain, and secsRemain. |
|
|
|
|
|
Definition at line 56 of file power.h. Referenced by acStatus(), PowerStatusManager::getProcApmStatus(), operator!=(), and PowerStatus(). |
|
|
Definition at line 58 of file power.h. Referenced by backupBatteryStatus(), operator!=(), and PowerStatus(). |
|
|
Definition at line 57 of file power.h. Referenced by batteryStatus(), PowerStatusManager::getProcApmStatus(), operator!=(), and PowerStatus(). |
|
|
Definition at line 61 of file power.h. Referenced by batteryPercentAccurate(), and PowerStatusManager::getStatus(). |
|
|
Definition at line 59 of file power.h. Referenced by batteryPercentRemaining(), PowerStatusManager::getProcApmStatus(), PowerStatusManager::getStatus(), operator!=(), and PowerStatus(). |
|
|
Definition at line 60 of file power.h. Referenced by batteryTimeRemaining(), PowerStatusManager::getProcApmStatus(), PowerStatusManager::getStatus(), operator!=(), and PowerStatus(). |
1.4.2