Class for containing the info of a pls or m3u file. More...
#include <pls.h>
Public Member Functions | |
| PlayListFile (void) | |
| ~PlayListFile (void) | |
| int | size (void) const |
| Get the number of entries in the pls file. | |
| PlayListFileEntry * | get (int i) |
| Get a file entry. | |
| int | version (void) const |
| Version of the parsed pls file. | |
| void | add (PlayListFileEntry *e) |
| Add a entry to the playlist. | |
| void | clear (void) |
| Clear out all the entries. | |
Static Public Member Functions | |
| static int | parse (PlayListFile *pls, QTextStream *stream, const QString &extension) |
| Parse a pls or m3u playlist file. | |
| static int | parsePLS (PlayListFile *pls, QTextStream *stream) |
| Parse a pls file. | |
| static int | parseM3U (PlayListFile *pls, QTextStream *stream) |
| Parse a m3u file. | |
Private Attributes | |
| QList< PlayListFileEntry * > | m_entries |
| int | m_version |
Class for containing the info of a pls or m3u file.
Definition at line 40 of file pls.h.
| int PlayListFile::size | ( | void | ) | const [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 53 of file pls.h.
Referenced by DecoderHandler::createPlaylistForSingleFile(), DecoderHandler::createPlaylistFromFile(), DecoderHandler::done(), DecoderHandler::next(), parseM3U(), and DecoderHandler::start().
| PlayListFileEntry* PlayListFile::get | ( | int | i | ) | [inline] |
Get a file entry.
| i | which entry to get, between 0 and the value returned by calling PlayListParser::size |
PlayListEntry Definition at line 59 of file pls.h.
Referenced by DecoderHandler::next(), and DecoderHandler::start().
| int PlayListFile::version | ( | void | ) | const [inline] |
| void PlayListFile::add | ( | PlayListFileEntry * | e | ) | [inline] |
Add a entry to the playlist.
| e | a PlayListFileEntry object |
Definition at line 79 of file pls.h.
Referenced by DecoderHandler::createPlaylistForSingleFile(), parseM3U(), and parsePLS().
| void PlayListFile::clear | ( | void | ) | [inline] |
Clear out all the entries.
Definition at line 82 of file pls.h.
Referenced by DecoderHandler::start(), and ~PlayListFile().
| int PlayListFile::parse | ( | PlayListFile * | pls, | |
| QTextStream * | stream, | |||
| const QString & | extension | |||
| ) | [static] |
Parse a pls or m3u playlist file.
| pls | the PlaylistFile to add the entries to | |
| stream | the playlist file in a QTextStream | |
| extension | the file extension of the original playlist file |
Definition at line 204 of file pls.cpp.
Referenced by DecoderHandler::createPlaylistFromFile(), and DecoderHandler::createPlaylistFromRemoteUrl().
| int PlayListFile::parsePLS | ( | PlayListFile * | pls, | |
| QTextStream * | stream | |||
| ) | [static] |
| int PlayListFile::parseM3U | ( | PlayListFile * | pls, | |
| QTextStream * | stream | |||
| ) | [static] |
QList<PlayListFileEntry*> PlayListFile::m_entries [private] |
int PlayListFile::m_version [private] |
1.6.3