Richard Hughes
72bb220a6a
Don't ship an introspection file for devkit-power-gobject, it's soon to be obsolete
2010-02-09 10:45:00 +00:00
Martin Pitt
821ecf9125
Check PolicyKit in client's can_{suspend,hibernate} properties
...
Check for PK privileges in UpClient's can_{suspend,hibernate} properties, so
that clients like gnome-session or gnome-power-manager hide the related actions
if the admin or OEM disabled suspend/hibernate through a PolicyKit .pkla file
like
$ cat /etc/polkit-1/localauthority/50-local.d/disable-suspend.pkla
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultActive=no
ResultAny=no
https://bugs.freedesktop.org/show_bug.cgi?id=26473
2010-02-09 10:42:38 +00:00
Michael Biebl
8e3791afe4
devkit-power-gobject/up-enum.h be gone
...
Port from devkit-power-gobject/up-enum.h to libupower-glib/up-types.h
2010-02-06 13:46:03 +00:00
Richard Hughes
acfe9c3089
Update the Free Software Foundation address
2010-01-27 16:27:15 +00:00
Richard Hughes
21012c7d2e
trivial: add some more gtk-doc markup to the new objects
2010-01-26 11:59:09 +00:00
Richard Hughes
af56b08795
trivial: Add some useful GObjects for client and server use
2010-01-26 11:39:14 +00:00
Richard Hughes
5e8ba54573
trivial: rename the new libupower 'type' to 'kind' to avoid clashing with GObject generated names
2010-01-26 10:53:04 +00:00
Richard Hughes
27fada20be
trivial: add some gtk-doc markup into libupower-glib and hook it up to the build system
2010-01-25 16:54:17 +00:00
Richard Hughes
b8a200eb48
Make DkpClient a singleton to avoid some weird race conditions
2010-01-25 14:25:37 +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
Richard Hughes
8362088d12
trivial: rename some internal defines for the upower move
2010-01-18 14:04:24 +00:00
Richard Hughes
8b219b243e
trivial: DkpStatsObj -> UpStatsObj (no ABI or API break)
2010-01-18 13:50:38 +00:00
Richard Hughes
3e8e98f598
trivial: DkpWakeups -> UpWakeups (no ABI or API break)
2010-01-18 13:48:15 +00:00
Richard Hughes
777cfe18a6
trivial: DkpQos -> UpQos (no ABI or API break)
2010-01-18 13:42:00 +00:00
Richard Hughes
1e8e236798
trivial: DkpHistory -> UpHistory (no ABI or API break)
2010-01-18 13:37:15 +00:00
Richard Hughes
8d4ec58206
trivial: switch to using the new enum names internally (no ABI or API break)
2010-01-18 12:57:50 +00:00
Richard Hughes
25e51c9613
trivial: DkpDevice -> UpDevice (no ABI or API break)
2010-01-18 12:49:30 +00:00
Richard Hughes
15ac5102c8
trivial: Rename a lot of the source files from dkp-foo to up-foo, no API or ABI changes
2010-01-18 12:26:55 +00:00
Richard Hughes
53ae9050a9
Merge branch 'master' into gobject-introspection
2010-01-18 11:44:47 +00:00
Richard Hughes
cbabe54705
trivial: use g_set_error() in more places
2010-01-17 23:10:14 +00:00
Richard Hughes
0d7bf34ed6
Add initial GObject introspection support
2010-01-15 15:18:26 +00:00
Martin Koegler
725acd4d35
Prevent segementation fault, if connection to system dbus fails
...
Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
2009-12-22 10:50:38 +00:00
Richard Hughes
b00791b9bf
Add g_object_notify() calls for properties on DkpClient
2009-10-14 10:53:35 +01:00
Richard Hughes
b7151ff2c8
Fix a tiny memory leak when we collect the properties from the interface multiple times
2009-09-30 17:00:25 +01:00
Richard Hughes
1587fc5758
Convert the property names to be FirstLetterCaps rather than dash-dash so KDE people can use the DBus interface
2009-09-18 18:28:53 +01:00
Richard Hughes
59357d79f3
Use g_ptr_array_new_with_free_func() in more places to make client applications easier
2009-09-11 16:14:24 +01:00
Richard Hughes
b8dd8ffe1e
trivial: fix up two issues from code review
2009-09-11 14:44:58 +01:00
Richard Hughes
9785f18d7e
Add some self tests and fix up some obvious bugs
2009-09-11 13:51:28 +01:00
Richard Hughes
4f088d44d6
Correct a description string from one of the new enums
2009-07-13 12:34:13 +01:00
Richard Hughes
d653489227
Add two new state enums, pending-discharge and pending-charge
2009-07-06 12:13:14 +01:00
Richard Hughes
37767c77bb
Revert "Add a backlight interface so we can control backlight brightness without HAL"
...
This reverts commit fec78d3fbb .
2009-07-05 09:34:55 +01:00
Richard Hughes
cda6d85a9d
Revert "Make it very clear that the Backlight interface is temporary"
...
This reverts commit 65571eed9d .
2009-07-05 09:34:54 +01:00
Richard Hughes
65571eed9d
Make it very clear that the Backlight interface is temporary
2009-07-03 16:58:00 +01:00
Richard Hughes
fec78d3fbb
Add a backlight interface so we can control backlight brightness without HAL
2009-07-03 13:25:07 +01:00
Richard Hughes
db41483230
I must learn to spell deprecated...
2009-07-03 11:05:00 +01:00
Richard Hughes
a8d4b200bd
We have to prefix the version macro with 0x, else it gets identified as octal...
2009-07-03 11:02:26 +01:00
Richard Hughes
0a5149ea6a
Protect the non-GObject accessors with DKP_DISABLE_DEPRECIATED and fix up the client tool
2009-07-03 10:52:24 +01:00
Richard Hughes
e827a73922
Remove dkp_client_get_lid_is_present(), we want to encourage people to be using g_object_get
2009-07-03 10:43:15 +01:00
Richard Hughes
77c767edf4
Add a DKP_CHECK_VERSION macro which we can use in client tools
2009-07-03 10:41:32 +01:00
Richard Hughes
cb702d0736
Export the recall-notice, recall-vendor and recall-url properties on power devices
2009-07-03 10:06:41 +01:00
Richard Hughes
fd9beab227
Be less asserty when enum values are added in newer versions of the spec
2009-07-03 10:06:05 +01:00
Richard Hughes
56881f8eaf
Add a lid-is-present property
2009-07-02 17:51:27 +01:00
Richard Hughes
1520785b90
trivial: ups devices have state too
2009-07-02 10:55:53 +01:00
Richard Hughes
3894b36273
Don't show empty vendor, model or serials in the debug outputs
2009-06-26 15:02:15 +01:00
Richard Hughes
494a3dba79
Only print interesting device properties
2009-06-14 19:35:21 +01:00
Richard Hughes
0789043911
Trivial formatting nit
2009-05-29 12:38:03 +01:00
Richard Hughes
5ec8c1e763
Allow properties in DkpDevice (client) to be set
2009-05-29 12:15:07 +01:00
Richard Hughes
e0d1f05462
Only attempt to print history if the device is capable
2009-05-29 12:12:24 +01:00
Ali Abdallah
b762899c60
Fix up some issues in DkpClient, and expose GObject properties
...
Signed-off-by: Richard Hughes <richard@hughsie.com>
2009-05-06 17:12:28 +01:00
Richard Hughes
7bd2dfefcb
Add a property lid-is-closed so that we can finally drop the HAL dep in g-p-m and x-p-m
2009-05-05 12:51:26 +01:00