upower/libdevkit-power
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 of course, the right thing to do is make a static lib to avoid playing with ../src/ type paths 2008-08-01 17:27:12 +01:00
dkp-client-device.c trivial: add a resolution parameter to GetHistory rather than just guessing a number on the server 2008-11-08 16:13:00 +00:00
dkp-client-device.h trivial: add a resolution parameter to GetHistory rather than just guessing a number on the server 2008-11-08 16:13:00 +00:00
dkp-client.c turn some methods into properties 2008-11-11 13:58:26 -05:00
dkp-client.h turn some methods into properties 2008-11-11 13:58:26 -05:00
dkp-enum.c update my email address 2008-11-11 10:13:24 -05:00
dkp-enum.h update my email address 2008-11-11 10:13:24 -05:00
dkp-history-obj.c convert to using egg_ functionality like other projects 2008-08-28 15:49:19 +01:00
dkp-history-obj.h the enums of of DkpDevice origin, not DkpSource 2008-08-10 18:02:48 +01:00
dkp-object.c bugfix: use 0 for unknown, not -1 as some values like rate and voltage are valid when negative 2008-11-07 12:34:52 +00:00
dkp-object.h feature: add voltage property of a power device 2008-11-07 10:40:11 +00:00
dkp-stats-obj.c feature: add two new properties, has-history and has-statistics 2008-10-23 13:38:22 +01:00
dkp-stats-obj.h feature: add two new properties, has-history and has-statistics 2008-10-23 13:38:22 +01: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
egg-obj-list.c trivial: add a resolution parameter to GetHistory rather than just guessing a number on the server 2008-11-08 16:13:00 +00:00
egg-obj-list.h trivial: egg updates 2008-10-23 12:03:35 +01:00
egg-string.c convert to using egg_ functionality like other projects 2008-08-28 15:49:19 +01:00
egg-string.h convert to using egg_ functionality like other projects 2008-08-28 15:49:19 +01:00
Makefile.am trivial: update defines needed for egg debugging code 2008-10-23 12:48:01 +01:00