1 // Author: Mattias Fliesberg (C) Copyright 2006
2 // Copyright: See COPYING file that comes with this distribution
11 #include <q3textstream.h>
15 #include <q3valuelist.h>
21 * @author Mattias Fliesberg
40 typedef Q3ValueList
< XSPFtrack
> XSPFtrackList
;
42 class XSPFPlaylist
: public QDomDocument
46 XSPFPlaylist( QTextStream
&stream
);
49 /* convenience functions */
59 KUrl::List
attribution();
64 void setTitle( QString title
);
65 void setCreator( QString creator
);
66 void setAnnotation( QString annotation
);
67 void setInfo( KUrl info
);
68 void setLocation( KUrl location
);
69 void setIdentifier( QString identifier
);
70 void setImage( KUrl image
);
71 void setDate( QDateTime date
);
72 void setLicense( KUrl license
);
73 void setAttribution( KUrl attribution
, bool append
= true );
74 void setLink( KUrl link
);
75 void setTrackList( XSPFtrackList trackList
, bool append
= false );
79 XSPFtrackList
trackList();
83 bool loadXSPF( QTextStream
& );
86 #endif // XSPFPlaylist_H