#include <playlistsaver.h>
Public Types | |
| enum | Options { XMLPlaylist = 1, M3U = 2, PLS = 4 } |
Public Member Functions | |
| 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 Member Functions | |
| 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
Definition at line 19 of file playlistsaver.h.
|
|
Definition at line 23 of file playlistsaver.h. |
|
|
|
|
|
|
|
|
unused, for future expansion Definition at line 72 of file playlistsaver.h. |
|
||||||||||||
|
|
|
|
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() Definition at line 81 of file playlistsaver.h. |
|
||||||||||||
|
|
|
|
unused, for future expansion, do not use |
|
|
add this item to the XML file or a null item if we're at the end |
|
|
Definition at line 21 of file playlistsaver.h. |
1.3-rc3