PlayListParser Class Reference

The PlaylistParser class provides a simple api to access playlist format plugins. More...

#include <playlistparser.h>

List of all members.

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)


Detailed Description

The PlaylistParser class provides a simple api to access playlist format plugins.

Author:
Ilya Kotov <forkotov02@hotmail.ru>

Member Function Documentation

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

Parameters:
f_name File name.
Returns:
A list of URLs or file paths.

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.

Parameters:
tracks A list of tracks.
f_name File name the playlist.


The documentation for this class was generated from the following file:

Generated on Mon May 9 23:58:51 2016 for Qmmp by  doxygen 1.5.9