Commit graph

4 commits

Author SHA1 Message Date
Richard Hughes
181f673908 trivial: Rename a few 'DeviceKit-power' strings we missed 2010-05-28 15:00:07 +01:00
Martin Pitt
b93915a377 Add {Suspend,Hibernate}Allowed D-Bus methods
Add two D-Bus server methods to check whether the caller has the privilege to
suspend or hibernate.

This enables us to check for PK privileges in UpClient's
can_{suspend,hibernate} properties, so that clients like gnome-session or
gnome-power-manager hide the suspend/hibernate related actions if the admin or
OEM disabled suspend/hibernate through a PolicyKit .pkla file.

https://bugs.freedesktop.org/show_bug.cgi?id=26473
2010-02-09 10:42:36 +00:00
Richard Hughes
02914e71ec Add a new method and two new signals to inform userspace of the pending suspend and the resume event
Based on an idea from Matthew Garrett and Lennart Poettering
2010-02-08 12:18:50 +00:00
Richard Hughes
d27c836e97 Rename the DBus service from org.freedesktop.DeviceKit.Power to org.freedesktop.UPower 2010-01-18 16:53:12 +00:00
Renamed from src/org.freedesktop.DeviceKit.Power.xml (Browse further)