AmarokPlaylistScript::addMedia-functions

Peter Zhou peterzhoulei at gmail.com
Tue Sep 2 08:38:29 UTC 2008


Yes, it should be QUrl instead of KUrl :). Thanks for the reminder.
and addMediaList now needs a QList<QUrl> instead of KUrl::List

On Tue, Sep 2, 2008 at 4:50 AM, Christoph Spielmann <spielc at gmail.com> wrote:
> Hi everybody!
>
> After a weekend of playing around with QtScript in Amarok, i have to say
> that i really am able to use almost all the things i've been able to use
> with dcop for amarok 1.4. One thing i remarked tho, is that both functions
> mentioned in the subject (void addMedia( const KUrl &url ) and void const
> KUrl::List &urls )) use KUrl instead of QUrl. I dunno if you did that on
> purpose but i think it would be better to use QUrl in the public interface
> of every function that can be called from QtScript (except there is a way to
> expose the javascript-bindings of kdelibs to the developers of qtscripts). I
> could hack together a small patch for the mentioned functions (from looking
> at the code it doesn't seem to be neither a very complicated nor a time
> consuming task) with my erm limited ;) knowledge of c++.
>
> Beside that i've been working on a class in QtScript that offers some
> functionality to the script-developer you haven't included (e.g. i wrote a
> function to get all the urls of all tracks of the artist with a given name
> in the collection...) plus i ported a object-serialization-script from
> javascript to qtscript. I thought i'd mention these things here in case
> somebody has an idea what i could/should/must add to my library just give me
> a shout and i'll see what i can do.
>
> Christoph
>
> _______________________________________________
> Amarok mailing list
> Amarok at kde.org
> https://mail.kde.org/mailman/listinfo/amarok
>
>

-- 
Peter
-------------------------------
http://www.peterzl.net/



More information about the Amarok mailing list