summaryrefslogtreecommitdiffstats
path: root/amarok/src/xspfplaylist.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-09 23:52:48 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-01-09 23:52:48 +0000
commit3ce9174229de91411a9abf5381a1f335fe0c6a98 (patch)
tree84b2736fa1b0d3fbf9c60fc04f510d2a13916b09 /amarok/src/xspfplaylist.h
downloadamarok-3ce9174229de91411a9abf5381a1f335fe0c6a98.tar.gz
amarok-3ce9174229de91411a9abf5381a1f335fe0c6a98.zip
Added abandoned KDE3 version of Amarok
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/amarok@1072335 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'amarok/src/xspfplaylist.h')
-rw-r--r--amarok/src/xspfplaylist.h90
1 files changed, 90 insertions, 0 deletions
diff --git a/amarok/src/xspfplaylist.h b/amarok/src/xspfplaylist.h
new file mode 100644
index 00000000..b419f234
--- /dev/null
+++ b/amarok/src/xspfplaylist.h
@@ -0,0 +1,90 @@
+// Author: Mattias Fliesberg (C) Copyright 2006
+// Copyright: See COPYING file that comes with this distribution
+//
+
+#ifndef XSPFPlaylist_H
+#define XSPFPlaylist_H
+
+class AtomicString;
+
+#include <qstring.h>
+#include <qtextstream.h>
+#include <qdom.h>
+#include <qdatetime.h>
+#include <qfile.h>
+#include <qvaluelist.h>
+
+#include <kurl.h>
+
+/**
+ * @class XSPFPlaylist
+ * @author Mattias Fliesberg
+ */
+
+typedef struct {
+ KURL location;
+ QString identifier;
+ QString title;
+ AtomicString creator;
+ QString annotation;
+ KURL info;
+ KURL image;
+ AtomicString album;
+ uint trackNum;
+ uint duration;
+ KURL link;
+// meta,
+// extension
+} XSPFtrack;
+
+typedef QValueList < XSPFtrack > XSPFtrackList;
+
+class XSPFPlaylist : public QDomDocument
+{
+public:
+ XSPFPlaylist();
+ XSPFPlaylist( QTextStream &stream );
+
+public:
+ /* convenience functions */
+ QString title();
+ QString creator();
+ QString annotation();
+ KURL info();
+ KURL location();
+ QString identifier();
+ KURL image();
+ QDateTime date();
+ KURL license();
+ KURL::List attribution();
+ KURL link();
+// meta();
+// extension();
+
+ void setTitle( QString title );
+ void setCreator( QString creator );
+ void setAnnotation( QString annotation );
+ void setInfo( KURL info );
+ void setLocation( KURL location );
+ void setIdentifier( QString identifier );
+ void setImage( KURL image );
+ void setDate( QDateTime date );
+ void setLicense( KURL license );
+ void setAttribution( KURL attribution, bool append = true );
+ void setLink( KURL link );
+ void setTrackList( XSPFtrackList trackList, bool append = false );
+// meta();
+// extension();
+
+ XSPFtrackList trackList();
+
+
+private:
+ bool loadXSPF( QTextStream& );
+};
+
+#endif // XSPFPlaylist_H
+
+
+
+