#include <playlistsaver.h>
Public Types | |
| enum | Options { XMLPlaylist = 1, M3U = 2, PLS = 4 } |
Public Methods | |
| PlaylistSaver () | |
| virtual | ~PlaylistSaver () |
| bool | save (const KURL &file, int options=0) |
| bool | load (const KURL &file, int options=0) |
| bool | metalist (const KURL &url) |
| virtual void | setGroup (const QString &) |
Protected Methods | |
| virtual void | readItem (const QMap< QString, QString > &properties)=0 |
| virtual PlaylistItem | writeItem ()=0 |
| virtual void | changeGroup (const QString &) |
| virtual void | reset () |
Friends | |
| class | Structure |
http://noatun.kde.org/formats/xmlplaylist.phtml
A custom implemenation like yours should have a different "client" attribute for the playlist tag
|
|
|
|
|
|
|
|
|
|
|
unused, for future expansion For internal use only. |
|
|||||||||||||||
|
|
|
|
guess the list's content between M3U or PLS, and give it to you this is also the way to make icecast work. you can also pass true icecast urls here and it'l do its magic. This calls readItem |
|
|
read the item, and add it to your list Given is a list of properties which coincide with the standard noatun ones |
|
|
this is called when you should either clear your list, or start writing from the start of the list You usually don't need to implement this, since it'l always be called immediately after load() or save() |
|
|||||||||||||||
|
|
|
|
unused, for future expansion, do not use For internal use only. |
|
|
add this item to the XML file or a null item if we're at the end |
|
|
|
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001