[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: Re: KDE/kdebase/workspace/powerdevil
From: Kevin Ottens <ervin () kde ! org>
Date: 2008-10-01 7:33:19
Message-ID: 200810010933.25237.ervin () kde ! org
[Download RAW message or body]
Le Tuesday 30 September 2008, Dario Freddi a écrit :
> Application developers, you can now easily prevent the PC from suspending.
> It's enough to call the method "Inhibit" on
> org.kde.Solid.PowerManagement.Inhibit, specifying your application name and
> the reason why you want to inhibit. PowerDevil will take care of the rest,
> including notifying the user when the system tries to suspend. The method
> returns an int, that you can use as argument when calling "Uninhibit" on
> the same interface to get suspension back working.
Bad advice! In fact, KDE developers shouldn't use the D-Bus interface directly
(it's very likely to change at this point, to switch to the fd.o proposal...
need to find time to push that out) but the Solid::PowerManagement namespace
which offers the same services.
@All: Please use Solid::PowerManagement::(begin|stop)SuppressingSleep. For you
the D-Bus interface used is an implementation detail. This way once we make
the switch it'll be transparent for you.
Regards.
--
Kévin 'ervin' Ottens, http://ervin.ipsquad.net
"Ni le maître sans disciple, Ni le disciple sans maître,
Ne font reculer l'ignorance."
["signature.asc" (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic