#include <playlistparser.h>
The PlaylistParser class provides a simple api to access playlist format plugins.
- Author
- Ilya Kotov forko.nosp@m.tov0.nosp@m.2@ya..nosp@m.ru
◆ findByMime()
Returns PlayListFormat pointer which supports mime type mime or 0 if mime type mime is unsupported
◆ findByPath()
Finds playlist format by file path filePath Returns 0 if file filePath is unsupported.
◆ findByUrl()
Finds playlist format by url path url Returns 0 if file filePath is unsupported.
◆ formats()
Returns a list of the installed playlist formats.
◆ isPlayList()
static bool isPlayList |
( |
const QString & |
url | ) |
|
|
static |
Returns true if file url is playlist. Otherwise returns false.
- Parameters
-
url | Local file path or URL. |
◆ loadFormats()
static void loadFormats |
( |
| ) |
|
|
static |
Loads all playlist plugins. Should be called before usage from another thread.
◆ loadPlaylist() [1/2]
static QList<PlayListTrack *> loadPlaylist |
( |
const QString & |
f_name | ) |
|
|
static |
Loads playlist from file f_name.
- Parameters
-
- Returns
- A list of tracks.
◆ loadPlaylist() [2/2]
static QList<PlayListTrack *> loadPlaylist |
( |
const QString & |
fmt, |
|
|
const QByteArray & |
content |
|
) |
| |
|
static |
Loads playlist from content content.
- Parameters
-
fmt | Playlist format (short name). |
content | Playlist content. |
- Returns
- A list of tracks.
◆ nameFilters()
static QStringList nameFilters |
( |
| ) |
|
|
static |
Returns a list of the supported files name filters, i.e. "*.m3u *.pls"
◆ savePlayList()
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: