Registered Member
|
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... |
KDE Developer
|
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 |
Registered Member
|
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! |
Registered Member
|
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. |
Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, sandyvee, Sogou [Bot]