Revision 583190f...
Go back to digest for 18th May 2014Features in KDE Base
Alex Fiestas committed changes in [solid] /:
Adds AddInhibitionJob and Power::inhibit
Api should be ready for review, implementation still not finished since
the inhibition data is not being passed to the backends.
Short example of api:
AddInhibitionJob *job = Power::inhibit(Power::Sleep, "Inhibiting sleep);
job->exec();
InhibitionHolder *inhibition = job->inhibition();
//release inhibition
delete inhibition;
File Changes
Added 2 files
- /solid/power
- src/addinhibitionjob.cpp
- src/addinhibitionjob.h
Modified 7 files
- autotests/solidpowertest.cpp
- src/solid/CMakeLists.txt
- src/solid/power/CMakeLists.txt
- src/solid/power/power.cpp
- src/solid/power/power.h
- src/solid/power/powerbackendloader.cpp
- src/solid/power/powerbackendloader.h
9 files changed in total