SqlRegistry API question

Alexandre Oliveira aleprjlists at gmail.com
Thu Mar 15 23:04:58 CET 2007


Actually, I do think the whole application should only use DataPtrs
whenever possible.
But anyway, there's a simple reason for that: casting a whole QList at
once isn't very nice, and CollectionModel will only use QLists of
MetaPtrs most of the time. Ideally it would only use MetaPtrs.
We'll probably need both methods. Better than having loops for
"casting" the QLists duplicated throughout the code.


On 3/15/07, Maximilian Kossick <mkossick at gmx.de> wrote:
> Hi Alexandre,
> i've got a question about the getArtists / getGenres /... methods you added to
> SqlRegistry recently. I don't quite understand why all of the return a list
> of DataPtrs. When one calls a method called getArtists, wouldn't it make
> sense to have it return a list of ArtistPtrs? The calling code could cast it
> to DataPtr if necessary.
>
> Cheers, Max
>
>


More information about the Amarok-devel mailing list