Commit graph

9 commits

Author SHA1 Message Date
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
David Zeuthen
d34ad43464 document how to access the D-Bus service with examples 2008-11-11 11:36:25 -05:00
Richard Hughes
39e7c41db1 bugfix: fix the introspection for the CanSuspend and CanHibernate methods 2008-11-04 12:00:59 +00:00
Richard Hughes
ffbc3a026b feature: add in CanSuspend and CanHibernate into API 2008-10-23 12:48:44 +01:00
Richard Hughes
50cadd8622 correct the signature of GetOnBattery and GetLowbattery 2008-08-04 16:51:30 +01:00
Richard Hughes
32df1e0cc1 add two bits of data that session applications really want -- battery mode and low battery mode 2008-07-24 18:30:00 +01:00
Richard Hughes
2bb27aaf1a add the Suspend() and Hibernate() stub methods 2008-07-24 18:27:45 +01:00
Richard Hughes
75ecbba194 fixup a few places where we mention a disk daemon to a power daemon 2008-07-24 17:39:00 +01:00
David Zeuthen
37f9df9b05 initial commit 2008-05-08 22:29:38 -04:00