This forum has been archived. All content is frozen. Please use KDE Discuss instead.

dbus calls in Amarok 2.0 scripts

Tags: None
(comma "," separated)
Xe.Qon
Registered Member
Posts
13
Karma
0

dbus calls in Amarok 2.0 scripts

Fri Nov 07, 2008 6:41 pm
I'm trying to write a simple Amarok script that needs to make dbus calls of an external application. As best as I can tell, this does not appear to be possible, as I can't figure out how to access any dbus bindings with Javascript. My current solution is to just have a helper Python script that makes the actual dbus calls and then just have the Amarok script call the helper script to do the real work. This isn't the most elegant solution.

So, is it actually possible to make dbus calls natively from within Amarok scripts? It would be a lot nicer than my current approach...
nhn
KDE Developer
Posts
114
Karma
0
OS
Since you have access to the entire Qt API fro within your qtscript script, it should be possible to just use QDbusInterface and friends directly ( http://doc.trolltech.com/4.4/qdbusinterface.html )

- Nikolaj
Xe.Qon
Registered Member
Posts
13
Karma
0
Yeah, I know there's a qt dbus interface, but I can't figure out what the javascript bindings for that interface are (or if they exist). I've tried any number of variations on Importer.loadQtBinding( "qt.dbusinterface" ), and none seem to work. If you have pointers, though, I'd love to see it.

Thanks for your reply!
User avatar
peterzl
Registered Member
Posts
12
Karma
0
no, the qt bindings doesn't make the entire Qt library usable. I didn't find any related class here: http://amarok.kde.org/qtscriptbindings/qt.html

May it would be nice to have a dbus related API for Amarok2.


Peter
---------------------------------
http://www.peterzl.net/


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]