Revision 866447
Go back to digest for 5th October 2008Other in KDE Base
Dario Freddi committed changes in /trunk/KDE/kdebase/workspace/powerdevil:
Moving most stuff from PowerManagementConnector to the new SuspensionLockHandler.
Result? Now inhibiting suspension works.
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.
I'm forwarding this to kde-devel since it might interest someone.
P.S.: Kevin, I definitely love when a plan comes together too :)
File Changes
Modified 7 files
- /trunk/KDE/kdebase/workspace/powerdevil
- /powerdevil.notifyrc
- /daemon/PowerDevilDaemon.cpp
- /daemon/PowerDevilDaemon.h
- /daemon/PowerManagementConnector.cpp
- /daemon/PowerManagementConnector.h
- /daemon/SuspensionLockHandler.cpp
- /daemon/SuspensionLockHandler.h
7 files changed in total