<br><br><div class="gmail_quote">On Dec 24, 2007 11:44 PM, Jeff Mitchell &lt;<a href="mailto:kde-dev@emailgoeshere.com">kde-dev@emailgoeshere.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Monday 24 December 2007, Bart Cerneels wrote:<br>&gt; 2007/12/24, Maximilian Kossick &lt;<a href="mailto:maximilian.kossick@googlemail.com">maximilian.kossick@googlemail.com</a>&gt;:<br>&gt; &gt; hi bart,
<br>&gt; &gt; what do you want to use playlistMap in the AmarokMimeData::Private for.<br>&gt; &gt; Do you want to add support for playlists to querymaker?\<br>&gt; &gt; merry christmas everybody, max<br>&gt;<br>&gt; Yes, I was considering it. Obviously QueryMaker as it is, is very
<br>&gt; geared towards the Collection.<br>&gt; It makes sense because some of the PlaylistProviders, the equivalent<br>&gt; of Collection would talk some time to return. Like the<br>&gt; AmpachePlaylistProvider, which we can now implement thanks to vollmer,
<br>&gt; who added adding playlists to the Ampache API.<br>&gt;<br>&gt; I would like to know your suggestions, you&#39;ve got experience.<br>&gt; Let me again congratulate you with Meta and Collection. This framework<br>&gt; stuff is *so* hard.
<br><br></div>I second that &nbsp;:-)<br><br>As far as adding support for playlists to querymaker, it needs to be done at<br>some point if we&#39;re going to (as I thought we were) store playlists in the<br>database in 2.0. &nbsp;This lets us access/modify them much more easily and
<br>quickly, and makes importing/exporting fairly simple...and also allows AFT to<br>eventually work on playlists too. &nbsp;:-)<br></blockquote><div><br>Unfortunately I can&#39;t ask you on IRC how exactly you want to add support for playlists to Querymaker, but I don&#39;t quite understand why that would be necessary. I can&#39;t check the sources right now, but why not make the PlaylistProvider class asynchronous? Subclasses could then use one or more QueryMaker instances to get the tracks for the playlist (for smart playlists), or download the playlist from the ampache server. Querymaker basically allows us to retrieve tracks from a database (and albums, artists, etc) based on certain criteria. Do we need something similar for playlists. Are we ever going to have a use case &quot;give me all playlists whose name ends with &#39;foobar&#39; &quot;?
<br><br>&nbsp;Max<br></div></div><br>