Querying Collections from dbus

Maximilian Kossick maximilian.kossick at googlemail.com
Wed Feb 18 12:07:43 CET 2009


Provide a dbus method that takes xml, creates a querymaker from the
xml (we might already have that code as part of dynamic playlists),
run the querymaker, and return the result.

The only hard part is figuring out the structure of the result.

A simple SQL pass-through method is a really bad idea imo.

On Wed, Feb 18, 2009 at 11:15 AM, Nikolaj Hald Nielsen
<nhnfreespirit at gmail.com> wrote:
> Definitely not a JJ in my opinion, more like a GSoC project if we want
> it done right  (perhaps a generic "make the scripting + dbus API even
> better" project?)
>
> The only way I see to truly expose all of the collection framework to
> scripts is to basically expose the collections and query makers
> directly, which is all well and good (although it is giving scripters
> a hell of a lot of rope to hang themselves with) using qtscript but
> will obviously not work using DBus.
>
> Then there is the option of actually layering SQL or something
> SQL-like on top of the collection framework, and having a parser
> transform that into calls to the collection/query makers (which then
> in turn might make SQL of it once more, or do something completely
> different). This would be very powerful, but getting it right is no
> trivial task. Again possible GSoC material IMO. This would have the
> added benefit of giving people and other apps a very familiar
> interface to Amaroks collections. Potentially, this way, other apps
> could even draw on the services for whatever nefarious purpose they
> might want to do that for.
>
> That was just the thoughts I had reading this mail in a pretty raw
> form, hope its useful! :-)
>
> - Nikolaj
>
>
>
> On Wed, Feb 18, 2009 at 10:22 AM, Casey Link <unnamedrambler at gmail.com> wrote:
>> There have been quite a few requests lately for some way to query
>> collections  via dbus.  Mark and I discussed this a bit on IRC.
>>
>> In 1.4, there was only one collection and you used SQL to query it. In
>> 2.x we have multiple collections and they don't all use SQL - hence
>> the QueryMaker. Obviously to provide the most robust support to
>> scripters, amarok should expose some way to interact with the
>> querymakers for the active collections. How feasible is this? I
>> suspect Nikolaj and Maxx will have some clue.
>>
>> Additionally, Mark stressed that a simple SQL pass-through dbus method
>> for the local collection would be helpful for testing and make some
>> people happy.
>>
>> Thoughts? Any volunteers? JJ?
>>
>> Casey
>> _______________________________________________
>> Amarok-devel mailing list
>> Amarok-devel at kde.org
>> https://mail.kde.org/mailman/listinfo/amarok-devel
>>
> _______________________________________________
> Amarok-devel mailing list
> Amarok-devel at kde.org
> https://mail.kde.org/mailman/listinfo/amarok-devel
>


More information about the Amarok-devel mailing list