Convert powerdevil backends to proper plugins

Authored by bshah on Aug 8 2016, 8:36 AM.

Description

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

Details

Committed
bshahAug 8 2016, 10:56 AM
Reviewer
Plasma
Differential Revision
D2369: Convert powerdevil backends to proper plugins
Parents
R122:b18635b21569: SVN_SILENT made messages (.desktop file) - always resolve ours
Branches
Unknown
Tags
Unknown