[Kde-hardware-devel] Review Request 122130: Expose inhibitions over dbus

Emmanuel Pescosta emmanuelpescosta099 at gmail.com
Mon Jan 19 07:53:50 UTC 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/122130/#review74281
-----------------------------------------------------------



daemon/powerdevilpolicyagent.cpp
<https://git.reviewboard.kde.org/r/122130/#comment51569>

    You can also write "emit InhibitionsChanged({qMakePair...}, {});". No need for an explicit type.


- Emmanuel Pescosta


On Jan. 18, 2015, 10:06 p.m., Kai Uwe Broulik wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/122130/
> -----------------------------------------------------------
> 
> (Updated Jan. 18, 2015, 10:06 p.m.)
> 
> 
> Review request for Solid.
> 
> 
> Repository: powerdevil
> 
> 
> Description
> -------
> 
> This adds a new "ListInhibitions" method and "InhibitionsChanged" signal to the org.kde.Solid.PowerManagement.PolicyAgent allowing others to know who has posted an inhibition.
> 
> Due to the complexity of DBus marshalling I chose to use a flat QStringList for it with the even indices being the application name and the odd ones the respective reason. It does not do any formatting (getting proper app names) or duplicate removal.
> 
> 
> Diffs
> -----
> 
>   daemon/kdedpowerdevil.h 137e6ca 
>   daemon/kdedpowerdevil.cpp 4228741 
>   daemon/org.kde.Solid.PowerManagement.PolicyAgent.xml a07dd73 
>   daemon/powerdevilpolicyagent.h 08a3b54 
>   daemon/powerdevilpolicyagent.cpp 7c7348d 
> 
> Diff: https://git.reviewboard.kde.org/r/122130/diff/
> 
> 
> Testing
> -------
> 
> Works, I can list the inhibitions using
> qdbus --literal org.kde.Solid.PowerManagement /org/kde/Solid/PowerManagement/PolicyAgent org.kde.Solid.PowerManagement.PolicyAgent.ListInhibitions
> 
> 
> Thanks,
> 
> Kai Uwe Broulik
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-hardware-devel/attachments/20150119/06e8ba58/attachment.html>


More information about the Kde-hardware-devel mailing list