[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-panel-devel
Subject: Re: Plugins: Use Qt plugin art. or XML?
From: Kelly Miller <lightsolphoenix () gmail ! com>
Date: 2008-07-17 17:41:21
Message-ID: 200807171341.22042.lightsolphoenix () gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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...
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" \
"http://www.w3.org/TR/REC-html40/strict.dtd"> <html><head><meta name="qrichtext" \
content="1" /><style type="text/css"> p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Liberation Sans'; font-size:10pt; \
font-weight:400; font-style:normal;"> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">On July 17, 2008 12:58:10 pm Alex Merry wrote:</p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> How would you implement \
that? Linking against KDE 3 libs is just going to</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">> be a nasty mess, so I think that only leaves \
calling the dcop executable. </p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">> But I'd have thought calling it twice a second would be \
SLOW.</p> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">></p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">> That said, if you can \
implement it with reasonable performance (and without</p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">> slowing things down if Amarok 1.x isn't \
running), then I'll include it in</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">> the engine.</p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">></p> <p style=" margin-top:0px; margin-bottom:0px; \
margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; \
-qt-user-state:0;">> Alex</p> <p style="-qt-paragraph-type:empty; margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;"></p> <p style=" margin-top:0px; \
margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; \
text-indent:0px; -qt-user-state:0;">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...</p> <p style="-qt-paragraph-type:empty; \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p> <p style=" \
margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">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...).</p> <p \
style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; \
margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p> <p \
style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; \
-qt-block-indent:0; text-indent:0px; -qt-user-state:0;">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...</p></body></html>
_______________________________________________
Panel-devel mailing list
Panel-devel@kde.org
https://mail.kde.org/mailman/listinfo/panel-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic