Plugins: Use Qt plugin art. or XML?

Kelly Miller lightsolphoenix at gmail.com
Thu Jul 17 19:41:21 CEST 2008


On July 17, 2008 12:58:10 pm Alex Merry wrote:
> How would you implement that?  Linking against KDE 3 libs is just going to
> be a nasty mess, so I think that only leaves calling the dcop executable. 
> But I'd have thought calling it twice a second would be SLOW.
>
> That said, if you can implement it with reasonable performance (and without
> slowing things down if Amarok 1.x isn't running), then I'll include it in
> the engine.
>
> Alex

Actually, to be entirely frank, it occured to me a while ago that it might be 
a more effective strategy for Amarok 1.x to write a script that implements 
part of the MPRIS spec for DBus instead, so that Amarok 1.x can appear 
identical to Amarok 2.x...

It'd probably be more efficient than getting the plugin to poll for changes 
every second or so (since DCOP, AFAIK, doesn't have a mechanism for sending 
signals like DBus does...).

The other idea, and one that'd probably be useful to look into for all of the 
differet players, is that it is possible to predict how long it's likely to be 
before the playing song changes again, so it wouldn't be necessary to poll the 
players every second.  But of course, it'd probably be even better still to 
simply listen for a signal that the song has changed...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/panel-devel/attachments/20080717/56dc9ce1/attachment-0001.html 


More information about the Panel-devel mailing list