diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-03-12 16:43:53 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2009-03-12 16:43:53 +0000 |
| commit | ae33fdc0a3898d45896d4670f64e140deb78e35c (patch) | |
| tree | 5d4fc6174ae957562d50c58890f583f28d1dec78 /src/qmmpui/playlistparser.h | |
| parent | 657434a5ec73229ba4211127dce4eef6ff1a8bc9 (diff) | |
| download | qmmp-ae33fdc0a3898d45896d4670f64e140deb78e35c.tar.gz qmmp-ae33fdc0a3898d45896d4670f64e140deb78e35c.tar.bz2 qmmp-ae33fdc0a3898d45896d4670f64e140deb78e35c.zip | |
playlist format api documentation
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@843 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistparser.h')
| -rw-r--r-- | src/qmmpui/playlistparser.h | 34 |
1 files changed, 27 insertions, 7 deletions
diff --git a/src/qmmpui/playlistparser.h b/src/qmmpui/playlistparser.h index a3ff358e3..7b9688a52 100644 --- a/src/qmmpui/playlistparser.h +++ b/src/qmmpui/playlistparser.h @@ -22,24 +22,44 @@ #include <QObject> - class PlaylistFormat; -/** - @author Ilya Kotov <forkotov02@hotmail.ru> -*/ +/*! @brief The PlaylistParser class provides a simple api to access playlist format plugins. + * @author Ilya Kotov <forkotov02@hotmail.ru> + */ class PlaylistParser : public QObject { -Q_OBJECT + Q_OBJECT public: + /*! + * Object constructor, + * @param parent Parent object + */ PlaylistParser(QObject *parent); - + /*! + * Destructor + */ ~PlaylistParser(); - + /*! + * Returns a list of supported file extensions. + */ QStringList getExtensions(); + /*! + * Returns \b true if file \b filePath is supported, otherwise \b false + */ bool supports(const QString &filePath); + /*! + * Returns a list of the installed playlist formats. + */ QList<PlaylistFormat*> formats(); + /*! + * Returns a pointer to the object's instance. + */ static PlaylistParser* instance(); + /*! + * Finds playlist format by file path \b filePath + * Returns \b 0 if file \b filePath is unsupported. + */ PlaylistFormat *findByPath(const QString &filePath); private: |
