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

What is QString queryXML in kde dbus?

Tags: None
(comma "," separated)
protserovsd
Registered Member
Posts
23
Karma
0
Code: Select all
user@localhost:~/ > qdbus org.kde.amarok /Collection                                         
method QDBusRawType::aa{sv} org.kde.amarok.Collection.MprisQuery(QString queryXml)
method QDBusRawType::aa{sv} org.kde.amarok.Collection.Query(QString queryXml)
method QDBusVariant org.freedesktop.DBus.Properties.Get(QString interface_name, QString property_name)
method QVariantMap org.freedesktop.DBus.Properties.GetAll(QString interface_name)
method void org.freedesktop.DBus.Properties.Set(QString interface_name, QString property_name, QDBusVariant value)
method QString org.freedesktop.DBus.Introspectable.Introspect()
method QString org.freedesktop.DBus.Peer.GetMachineId()
method void org.freedesktop.DBus.Peer.Ping()

user@localhost:~/ > qdbus org.kde.amarok /Collection org.kde.amarok.Collection.Query
Error: org.freedesktop.DBus.Error.UnknownMethod
No such method 'Query' in interface 'org.kde.amarok.Collection' at object path '/Collection' (signature '')

Excuse me, how should the command look if I want to look for some track name in my Amarok collection?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
Based on the variable name of 'queryXml' it seems likely you will need to construct an appropriately formatted XML string in order to use that command.
I'd suggest posting in the Amarok forum as the folks there are more likely to know where to look to get the specification you need.

As for QString - it is a data type within Qt, which contains text data.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]