move mpris interface to c++
AbandonedPublic

Authored by astippich on May 19 2018, 9:23 AM.

Details

Reviewers
mgallien
Summary

setup the mpris interface in c++

Test Plan

controlling via mpris still works

Diff Detail

Repository
R255 Elisa
Branch
move_mpris
Lint
No Linters Available
Unit
No Unit Test Coverage
astippich requested review of this revision.May 19 2018, 9:23 AM
astippich created this revision.

I am unsure about the added value of this diff. At least, you should fiwx the reported issues. I would really prefer not to add many #ifdef in the c++ code in favor of platform specific qml files.

src/qml/ElisaMainWindow.qml
127–147

By removing this, you also remove the integration with the Windows task bar. I would even say that this is one of the tasks where qml is ideal. You can very easily specialize some files for each platforms without having to add many #ifdef in the c++ code.

141–149

What about platforms where you do not have dbus or the mpris2 code ?
This will probably not work.

mgallien requested changes to this revision.Jun 6 2018, 8:31 PM
This revision now requires changes to proceed.Jun 6 2018, 8:31 PM
astippich abandoned this revision.Jun 9 2018, 4:29 PM

I am unsure about the added value of this diff. At least, you should fiwx the reported issues. I would really prefer not to add many #ifdef in the c++ code in favor of platform specific qml files.

At the time of writing this I wasn't aware how Windows works in this regard, and I agree, having the platform specific code in the qml files is the best solution. Maybe I will try to clean it up a bit differently at some point