Wayland implementation for DPMS
Review Request #125026 - Created Sept. 2, 2015 and submitted
An AbstractDpmsHelper is introduced with a concrete subclass called XcbDpmsHelper. The PowerDevilDpmsAction holds a helper and delegates to it. The XcbDpmsHelper implements the X11 specific tasks. This will allow to add a Wayland implementation as well. [dpms] Add a Wayland implementation The Wayland implementation uses the DpmsManager provided by KWayland. On a timeout it turns the screens off and it supports the trigger modes. The fade helper is not supported (yet) as it is an X11 only implementation.
How I tested:
run kwin_wayland on a DRM device
configured powerdevil to suspend after one minute
watched screen go off
enabled again, looked at debug output to verify it was triggered by powerdevil.
It's currently only tested with Qt 5.4. At least for idle integration I had the problem that things somehow stopped working with 5.5. So this needs additional testing.
fixed the nitpicks (hope I got all)
Revision 2 (+523 -81)