Convert powerdevil backends to proper plugins
Summary:
This converts the powerdevil backends into proper plugins that are
loaded at runtime instead of just hardcoding upowerbackend. And are also
seperated from the powerdevil kded. This is first step to have other
modules for example, wayland, hwcomposer etc.
Logic for finding and loading backends is mostly inspired from the
kscreen, currently it just loads upower backend because it is only
module available. This logic can be changed when new backends are
introduced in powedevil.
Test Plan:
compiles, builds and installs backend module powerdevilupowerbackend.so
into proper plugin path. Also verified with powerdevil kded that it gets
loaded properly.
Reviewers: Plasma, broulik
Reviewed By: Plasma, broulik
Subscribers: plasma-devel
Tags: Plasma
Differential Revision: https://phabricator.kde.org/D2369