> The only problem could be if NoCharge means "Unknown", but I assume that's
> academic.

NoCharge as far as Solid Battery is concerned means either "not charging", 
"not yet charging" (eg. just plugged in AC), "not yet discharging" ("pending 
discharge"), or "unknown". It does know "fully charged", however.

My machine never reaches a "fully charged" state, however (stays at 97% 
discharging), so iterating over all batteries and checking whether anyone of 
them is discharging, might not be sufficient.

In any way, make sure to check the battery's type (PrimaryBattey || 
UpsBattery) and whether isPowerSupply() is true, otherwise you might take into 
account your wireless mouse ;)

Cheers,
Kai Uwe

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to