1 // Author: Mattias Fliesberg (C) Copyright 2006
2 // Copyright: See COPYING file that comes with this distribution
8 #include "atomicstring.h"
13 #include <QDomDocument>
31 typedef QList
<XSPFtrack
> XSPFtrackList
;
35 * @author Mattias Fliesberg
38 class XSPFPlaylist
: public QDomDocument
42 XSPFPlaylist( QTextStream
&stream
);
45 /* convenience functions */
55 KUrl::List
attribution();
60 void setTitle( QString title
);
61 void setCreator( QString creator
);
62 void setAnnotation( QString annotation
);
63 void setInfo( KUrl info
);
64 void setLocation( KUrl location
);
65 void setIdentifier( QString identifier
);
66 void setImage( KUrl image
);
67 void setDate( QDateTime date
);
68 void setLicense( KUrl license
);
69 void setAttribution( KUrl attribution
, bool append
= true );
70 void setLink( KUrl link
);
71 void setTrackList( Meta::TrackList trackList
, bool append
= false );
75 XSPFtrackList
trackList();
79 bool loadXSPF( QTextStream
& );
82 #endif // XSPFPlaylist_H