added battery reading for UPower.
authorhuceke <gimli@worker.(none)>
Tue, 12 Jul 2011 15:11:45 +0000 (17:11 +0200)
committerhuceke <gimli@worker.(none)>
Wed, 13 Jul 2011 14:30:17 +0000 (16:30 +0200)
commit671de9d9fe925ff2abf039b1738a93b6dcabf01b
tree99ea7b62d37cc31324a2314ab04abc11a2b3b511
parent07b733d0271449fecea1e3955cddbd63dda6cdd0
added battery reading for UPower.

We read all power sources and assume that IsRechargeable repesents a
battery in the system. All Percentage values of that devices are counted
together and divided by the number of found sources.
xbmc/powermanagement/linux/ConsoleUPowerSyscall.cpp
xbmc/powermanagement/linux/ConsoleUPowerSyscall.h