bshah created this revision. bshah added reviewers: Plasma, broulik. Restricted Application added a project: Plasma. Restricted Application added a subscriber: plasma-devel.
REVISION 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. REPOSITORY rPOWERDEVIL Powerdevil BRANCH bshah/proper-backends REVISION DETAIL https://phabricator.kde.org/D2369 AFFECTED FILES daemon/BackendConfig.cmake daemon/CMakeLists.txt daemon/backends/CMakeLists.txt daemon/backends/upower/powerdevilupowerbackend.h daemon/kdedpowerdevil.cpp daemon/kdedpowerdevil.h EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: bshah, #plasma, broulik Cc: plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas