Skip to content
  • Bhushan Shah's avatar
    Convert powerdevil backends to proper plugins · 2e2faec9
    Bhushan Shah authored
    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
    2e2faec9