Revision 29c089b...

Go back to digest for 1st June 2014

Features in KDE Base

Alex Fiestas committed changes in [solid] /:

Add a proper Inhibition object, with start/stop methods

By popular demand the Inhibition object has now some logic into it.

The idea is that InhibitionJob will return an Inhibition object that
is already started (so the inhibition is in place), and you can keep
that object to start/stop the inhibition depending on the app state.

For example:
The moment a video starts playing in our VideoPlayer we Call
InhibitionJob, hence creating an Inhibition object. If the video
is paused, then we stop the inhibition. When the video is playing
again we start the inhibition.

File Changes

Modified 13 files
  •   autotests/solidpowertest.cpp
  •   src/solid/power/CMakeLists.txt
  •   src/solid/power/inhibition.cpp
  •   src/solid/power/inhibition.h
  •   src/solid/power/inhibitionjob.cpp
  •   src/solid/power/power.cpp
  •   src/solid/power/power.h
  •   src/solid/power/powerbackendloader.cpp
  •   src/solid/power/powerbackendloader.h
  •   src/solid/power/backends/dummy/dummyinhibition.cpp
  •   src/solid/power/backends/dummy/dummyinhibition.h
  •   src/solid/power/backends/dummy/dummyinhibitionjob.cpp
  •   src/solid/power/backends/dummy/dummyinhibitionjob.h
13 files changed in total