Qmmp
|
The PlaylistParser class provides a simple api to access playlist format plugins. More...
#include <playlistparser.h>
Static Public Member Functions | |
static QList< PlayListFormat * > | formats () |
static QStringList | nameFilters () |
static PlayListFormat * | findByMime (const QString &mime) |
static PlayListFormat * | findByPath (const QString &filePath) |
static PlayListFormat * | findByUrl (const QUrl &url) |
static void | savePlayList (QList< PlayListTrack * > tracks, const QString &f_name) |
static QStringList | loadPlaylist (const QString &f_name) |
The PlaylistParser class provides a simple api to access playlist format plugins.
static PlayListFormat* findByMime | ( | const QString & | mime | ) | [static] |
Returns PlayListFormat pointer which supports mime type mime or 0 if mime type mime is unsupported
static PlayListFormat* findByPath | ( | const QString & | filePath | ) | [static] |
Finds playlist format by file path filePath Returns 0 if file filePath is unsupported.
static PlayListFormat* findByUrl | ( | const QUrl & | url | ) | [static] |
Finds playlist format by url path url Returns 0 if file filePath is unsupported.
static QList<PlayListFormat*> formats | ( | ) | [static] |
Returns a list of the installed playlist formats.
static QStringList loadPlaylist | ( | const QString & | f_name | ) | [static] |
Loads playlist from file f_name
f_name | File name. |
static QStringList nameFilters | ( | ) | [static] |
Returns a list of the supported files name filters, i.e. "*.m3u *.pls"
static void savePlayList | ( | QList< PlayListTrack * > | tracks, |
const QString & | f_name | ||
) | [static] |
Saves a list of tracks to the file.
tracks | A list of tracks. |
f_name | File name the playlist. |