From aecf8592751e7beb682fcd5bc8c5b1d38335fa84 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Sat, 22 Dec 2012 19:16:29 +0000 Subject: libqmmpui: added URL dialog implementation, added PlayListDownloader class git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3089 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistparser.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/qmmpui/playlistparser.h') diff --git a/src/qmmpui/playlistparser.h b/src/qmmpui/playlistparser.h index d78e3ad7d..00dc4d24d 100644 --- a/src/qmmpui/playlistparser.h +++ b/src/qmmpui/playlistparser.h @@ -20,6 +20,8 @@ #ifndef PLAYLISTPARSER_H #define PLAYLISTPARSER_H +#include +#include #include "playlistformat.h" /*! @brief The PlaylistParser class provides a simple api to access playlist format plugins. @@ -36,11 +38,21 @@ public: * Returns a list of the supported files name filters, i.e. "*.m3u *.pls" */ static QStringList nameFilters(); + /*! + * Returns PlayListFormat pointer which supports mime type \b mime + * or \b 0 if mime type \b mime is unsupported + */ + static PlayListFormat *findByMime(const QString &mime); /*! * Finds playlist format by file path \b filePath * Returns \b 0 if file \b filePath is unsupported. */ static PlayListFormat *findByPath(const QString &filePath); + /*! + * Finds playlist format by url path \b url + * Returns \b 0 if file \b filePath is unsupported. + */ + static PlayListFormat *findByUrl(const QUrl &url); private: PlayListParser(){} -- cgit v1.2.3-13-gbd6f