You can now control the player even if it is stopped and kick off playback.
This means that you now just need to have e.g. Amarok running and then you can
at least cause music to play without ever touching the Amarok window.
We can just use onStateChanged directly instead of having a superfluous property.
Also now the plasmoid becomes active immediately but goes passive only after
250ms. Amarok really takes an insanely long time to load the next track.
100ms wasn't enough to prevent flickering all the time. I guess for users without
SSD 250 will also be scarce.
This way you can easily bring your player to the front without needing it to have a
system tray icon and without opening the mediacontroller first
Unfortunately VLC player doesn't support being raised via mpris :(
as a plugin, you don't need to directly reference it in the code; that is what
Plasma::PluginLoader is for and why you make it a plugin in the first place
port the plugin to use the json mechanism
put the packagestructure into its own subdir to keep things a bit tidier
the screen related static methods are just as well served by being
class members: they aren't used elsewhere, were being passed the same
internal datamembers repeatedly, etc.
also move them below the constructor to where they generally make
more contextual sense.
parser says nothing about what it does. it could be a json parser.
crash, dgb, win, etc says the wrong thing: they don't communicate
that they are options