[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdemultimedia/juk
From:       Michael Pyne <michael.pyne () kdemail ! net>
Date:       2005-04-29 6:35:04
Message-ID: 20050429063504.3E6BF629 () office ! kde ! org
[Download RAW message or body]

CVS commit by mpyne: 

Add the first-ever DCOP signal to JuK.
The signal is Player::trackChanged(), which is emitted when the playing track
is changed to something else (or stopped).

There were concerns about waking up every DCOP app, but that appears to no
longer be the case.  When a DCOP signal is emitted, it is sent straight to
the DCOP server, which then takes care to send the signal only to those apps
that actually want it.

Script developers, this should make it easier to keep up with what JuK is
doing.


  M +3 -0      playlist.cpp   1.301


--- kdemultimedia/juk/playlist.cpp  #1.300:1.301
@@ -29,4 +29,5 @@
 #include <kio/netaccess.h>
 #include <kio/job.h>
+#include <dcopclient.h>
 
 #include <qheader.h>
@@ -1572,4 +1573,6 @@ void Playlist::setPlaying(PlaylistItem *
 
     TrackSequenceManager::instance()->setCurrent(item);
+    QByteArray data;
+    kapp->dcopClient()->emitDCOPSignal("Player", "trackChanged()", data);
 
     if(!item)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic