[Kde-bindings] DCOP calls from ruby

Richard Dale Richard_Dale at tipitina.demon.co.uk
Fri Jul 8 13:08:47 UTC 2005


On Wednesday 06 July 2005 04:55, Mark Constable wrote:
> I'm trying to emulate this call, that works from the shell,
> into a ruby/korundum equivalent but I can't quite get how or
> where to add the second "playlist" component.
>
> dcop amarok playlist playMedia file:///some/path/$1
>
> def setURLInBrowser(item)
>   if item.nil? then return end
>   dcopRef = KDE::DCOPRef.new("amarok", "Browser")
>   if ! dcopRef.playMedia('file:///some/path/' + item.text(0))
>     Qt.qWarning("Error with DCOP\n")
>   end
> end
>
> Would anyone have a suggestion ?
Shouldn't the interface be called 'playlist' rather than 'Browser'? Like this:

   dcopRef = KDE::DCOPRef.new("amarok", "playlist")
   if ! dcopRef.playMedia('file:///some/path/' + item.text(0))

-- Richard



More information about the Kde-bindings mailing list