upower/tools
David Zeuthen c9dbc80f36 turn some methods into properties
GetOnBattery()  -> :on-battery (bool)
 GetLowBattery() -> :on-low-battery (bool)
 CanSuspend()    -> :can-suspend (bool)
 CanHibernate()  -> :can-hibernate (bool)

also add a new property for the daemon version

 :daemon-version (string)

introduce a new Changed() signal that replaces

 ::LowBatteryChanged()
 ::OnBatteryChanged()

Also fix a few bugs

 - we need to compute ::on-battery and ::on-low-battery *after*
   the actual device is updated

 - need to fire Device::Changed() before Power::DeviceChanged()
   otherwise devkit-power --monitor-detail lies

also fix up libdevkit-power and devkit-power(1) to use these changes.
2008-11-11 13:58:26 -05:00
..
.gitignore only match on USB HID devices so we don't try to connect to every USB device on the system at startup 2008-08-13 08:08:29 +01:00
dkp-tool.c turn some methods into properties 2008-11-11 13:58:26 -05:00
egg-debug.c convert to using egg_ functionality like other projects 2008-08-28 15:49:19 +01:00
egg-debug.h convert to using egg_ functionality like other projects 2008-08-28 15:49:19 +01:00
Makefile.am nuke devkit-power-on-battery for now 2008-11-11 10:44:08 -05:00