Qmmp
|
#include <playlistparser.h>
Public Member Functions | |
PlaylistParser (QObject *parent) | |
~PlaylistParser () | |
QStringList | getExtensions () |
bool | supports (const QString &filePath) |
QList< PlaylistFormat * > | formats () |
PlaylistFormat * | findByPath (const QString &filePath) |
Static Public Member Functions | |
static PlaylistParser * | instance () |
The PlaylistParser class provides a simple api to access playlist format plugins.
PlaylistParser | ( | QObject * | parent | ) |
Object constructor,
parent | Parent object |
~PlaylistParser | ( | ) |
Destructor
PlaylistFormat* findByPath | ( | const QString & | filePath | ) |
Finds playlist format by file path filePath Returns 0 if file filePath is unsupported.
QList<PlaylistFormat*> formats | ( | ) |
Returns a list of the installed playlist formats.
QStringList getExtensions | ( | ) |
Returns a list of supported file extensions.
static PlaylistParser* instance | ( | ) | [static] |
Returns a pointer to the object's instance.
bool supports | ( | const QString & | filePath | ) |
Returns true if file filePath is supported, otherwise returns false