|
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 |
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().
|
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.makeopts.MakeOpts::dump(), hardwareprofile.distros.mythtv_data.orddict.OrdDict::itervalues(), and DecoderHandler::next().
|
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 |
|
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(), mythburn.FontDef::drawText(), mythburn.FontDef::getFont(), DecoderHandler::next(), parseASX(), parseM3U(), and parsePLS().
|
inline |
Version of the parsed pls file.
Returns the version number specified in the version field of the pls file.
Definition at line 75 of file pls.h.
Referenced by nv_python_libs.vimeo.oauth.oauth_api.OAuthServer::_get_version().
|
private |
|
private |