This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Need advice: which library for .xspf support ?

Tags: None
(comma "," separated)
wotan
Registered Member
Posts
131
Karma
-2
OS
Hello
I am coding a Pure-QT application that aims at being able to copy playlist on a specific directory:
E.g: Currently I am using it to copy the file listed in an .m3u to a given order on my N900 and writing an embeded M3u on the N900. So that i can manually sync my playlist.
I am now seeking forward to support .xspf playlist.
What I need to code now is basically a function that, being given an Xspf files will give me a Qstringlist containing a list of path to each song

I can "hard-code" it, pretty much as I have done for .m3u but i thought it would be better to not re-invent the wheel and use an already made library. This could also help me in the future to add some more features. (And btw also less code to maintain :p)
Now I have been on thehttp://www.xspf.org/ and it seems like the official library would be "libspiff" for ubuntu.
Sadly it looks like there is no packaged version of libspiff for ubuntu precise, neither in canonicals repos or in someone else's.

Also:
What you advice me?
1) Hard-code it because it's not that hard and I won't have to learn how the whole library work
2) Use another library .xspf (and which one)
3) Package libspiff myself? soso :S

BTW what is amarok doing for supporting it? Does it rely on something internal or an extra library?

Thanks for any advice
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
A quick glance at the Amarok source code reveals it parses it manually - using Qt's inbuilt XML support.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], markhm, rblackwell, sethaaaa, Sogou [Bot], Yahoo [Bot]