[GSoC update] Distributed Collections: Week 1

Maximilian Kossick maximilian.kossick at googlemail.com
Sat Jun 12 19:24:40 CEST 2010


On Sat, Jun 12, 2010 at 8:58 AM, Varrun Ramani <varrunr at gmail.com> wrote:
> Hi Max
>
> On 29 May 2010 18:31, Maximilian Kossick <maximilian.kossick at googlemail.com>
> wrote:
>>
>> That approach is used quite successfully in Amarok's D-Bus API. There
>> is a D-BUS method that allows external applications to query Amarok's
>> collections (all collections, unlike earlier versions which had to use
>> SQL, and broke horribly when Amarok's SQL schema changed). Amarok
>> takes a XML string, and returns a list of maps continaing track
>> metadata.
>>
>
> Can you point me to the part of the source where the Amarok D-bus API is
> implemented. I read the source of the XmlQueryReader and XmlQueryWriter
> classes. I would like to make a small test implementation by converting a
> query to XML. Hence, I would like to refer to some code that already uses
> these classes, to get a better idea.

src/dbus/CollectonDbusHandler.cpp

>>
>> Theoretically the XML format does already support queries for other
>> entities than tracks, it's just that the current D-BUS API does not
>> support this.
>
> What other entities? Do you mean album, genre etc.. ?

Yes

>>
>> I think I've got a draft for a XSD lying around on my harddrive
>> somewhere. I'll try to dig it up.
>>
>
> That would be helpful
>
> --
> Varrun
>


More information about the Amarok-devel mailing list