MythTV
master
|
Class for containing the info of a pls or m3u file. More...
#include <mythplugins/mythmusic/mythmusic/pls.h>
Public Member Functions | |
PlayListFile (void)=default | |
~PlayListFile (void) | |
int | size (void) const |
Get the number of entries in the pls file. More... | |
PlayListFileEntry * | get (int i) |
Get a file entry. More... | |
int | version (void) const |
Version of the parsed pls file. More... | |
void | add (PlayListFileEntry *e) |
Add a entry to the playlist. More... | |
void | clear (void) |
Clear out all the entries. More... | |
Static Public Member Functions | |
static int | parse (PlayListFile *pls, const QString &filename) |
Parse a pls, m3u or asx playlist file. More... | |
static int | parsePLS (PlayListFile *pls, const QString &filename) |
Parse a pls file. More... | |
static int | parseM3U (PlayListFile *pls, const QString &filename) |
Parse a m3u file. More... | |
static int | parseASX (PlayListFile *pls, const QString &filename) |
Parse a asx file. More... | |
Private Attributes | |
QList< PlayListFileEntry * > | m_entries |
int | m_version {0} |
|
default |
|
inline |
Get the number of entries in the pls file.
This returns the number of actual parsed entries, not the numberofentries
field.
Definition at line 54 of file pls.h.
Referenced by DecoderHandler::createPlaylistForSingleFile(), DecoderHandler::createPlaylistFromFile(), DecoderHandler::done(), DecoderHandler::doStart(), DecoderHandler::next(), parseASX(), parseM3U(), and parsePLS().
|
inline |
Get a file entry.
i | which entry to get, between 0 and the value returned by calling PlayListParser::size |
PlayListEntry
Definition at line 60 of file pls.h.
Referenced by DecoderHandler::doStart(), hardwareprofile.distros.mythtv_data.orddict.OrdDict::itervalues(), and DecoderHandler::next().
|
inline |
|
inline |
Add a entry to the playlist.
e | a PlayListFileEntry object |
Definition at line 80 of file pls.h.
Referenced by DecoderHandler::createPlaylistForSingleFile(), parseASX(), parseM3U(), and parsePLS().
|
inline |
Clear out all the entries.
Definition at line 83 of file pls.h.
Referenced by DecoderHandler::start(), and ~PlayListFile().
|
static |
Parse a pls, m3u or asx playlist file.
pls | the PlaylistFile to add the entries to |
filename | the playlist's filename |
Definition at line 34 of file pls.cpp.
Referenced by DecoderHandler::createPlaylistFromFile().
|
static |
|
static |
|
static |
|
private |
|
private |