From a3f5bd5887248dc7c549632957b26ecfa9ea1f40 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sun, 26 Sep 2010 09:34:42 +0000 Subject: api changes: removed AbstractPlaylistItem class git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@1915 90c681e8-e032-0410-971d-27865f9a5e38 --- src/plugins/PlaylistFormats/xspf/xspfplaylistformat.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/plugins/PlaylistFormats/xspf/xspfplaylistformat.cpp') diff --git a/src/plugins/PlaylistFormats/xspf/xspfplaylistformat.cpp b/src/plugins/PlaylistFormats/xspf/xspfplaylistformat.cpp index 9b5612fab..ad6c8f2a6 100644 --- a/src/plugins/PlaylistFormats/xspf/xspfplaylistformat.cpp +++ b/src/plugins/PlaylistFormats/xspf/xspfplaylistformat.cpp @@ -68,7 +68,7 @@ QStringList XSPFPlaylistFormat::decode(const QString & contents) // Needs more work - it's better use libSpiff there and put it as plugin. -QString XSPFPlaylistFormat::encode(const QList & files) +QString XSPFPlaylistFormat::encode(const QList & files) { QDomDocument doc; QDomElement root = doc.createElement("playlist"); @@ -83,7 +83,7 @@ QString XSPFPlaylistFormat::encode(const QList & files) QDomElement tracklist = doc.createElement("trackList"); int counter = 1; - foreach(AbstractPlaylistItem* f,files) + foreach(PlayListItem* f,files) { QDomElement track = doc.createElement("track"); @@ -98,22 +98,22 @@ QString XSPFPlaylistFormat::encode(const QList & files) track.appendChild(ch); ch = doc.createElement("title"); - text = doc.createTextNode(f->title()); + text = doc.createTextNode(f->value(Qmmp::TITLE)); ch.appendChild(text); track.appendChild(ch); ch = doc.createElement("creator"); - text = doc.createTextNode(f->artist()); + text = doc.createTextNode(f->value(Qmmp::ARTIST)); ch.appendChild(text); track.appendChild(ch); ch = doc.createElement("annotation"); - text = doc.createTextNode(f->comment()); + text = doc.createTextNode(f->value(Qmmp::COMMENT)); ch.appendChild(text); track.appendChild(ch); ch = doc.createElement("album"); - text = doc.createTextNode(f->album()); + text = doc.createTextNode(f->value(Qmmp::ALBUM)); ch.appendChild(text); track.appendChild(ch); @@ -124,7 +124,7 @@ QString XSPFPlaylistFormat::encode(const QList & files) ch = doc.createElement("meta"); ch.setAttribute("rel", "year"); - text = doc.createTextNode(f->year()); + text = doc.createTextNode(f->value(Qmmp::YEAR)); ch.appendChild(text); track.appendChild(ch); -- cgit v1.2.3-13-gbd6f