PlaylistSaver Class Reference
#include <playlistsaver.h>
Public Types | |
| enum | Options { XMLPlaylist = 1, M3U = 2, PLS = 4, EXTM3U = 8, ASX = 16 } |
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 () |
Detailed Description
a simple one-group implementatio of the standard XML playlist format:http://noatun.kde.org/formats/xmlplaylist.phtml
A custom implementation like yours should have a different "client" attribute for the playlist tag
Definition at line 19 of file playlistsaver.h.
Member Enumeration Documentation
|
|
Definition at line 24 of file playlistsaver.h. |
Constructor & Destructor Documentation
|
|
|
|
|
|
Member Function Documentation
|
|
unused, for future expansion Definition at line 75 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 84 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 |
The documentation for this class was generated from the following file:
