diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-06-14 20:24:58 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-06-14 20:24:58 +0000 |
| commit | b2576ddc181d3758e3a57d9cac871ee7d7e2ef06 (patch) | |
| tree | 1dfd6331a91f153d4a693a0aa32a774e2e53e2ea /src/qmmpui/playlistparser.h | |
| parent | 9e3bcc8653f5e0500e9d0e4ee0c953e8bbf4ea4c (diff) | |
| download | qmmp-b2576ddc181d3758e3a57d9cac871ee7d7e2ef06.tar.gz qmmp-b2576ddc181d3758e3a57d9cac871ee7d7e2ef06.tar.bz2 qmmp-b2576ddc181d3758e3a57d9cac871ee7d7e2ef06.zip | |
improved playlist formats support
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7237 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistparser.h')
| -rw-r--r-- | src/qmmpui/playlistparser.h | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/qmmpui/playlistparser.h b/src/qmmpui/playlistparser.h index c8e779b84..c171116e0 100644 --- a/src/qmmpui/playlistparser.h +++ b/src/qmmpui/playlistparser.h @@ -39,6 +39,9 @@ public: * Returns a list of the supported files name filters, i.e. "*.m3u *.pls" */ static QStringList nameFilters(); + + static bool isPlayList(const QString &url); + /*! * Returns PlayListFormat pointer which supports mime type \b mime * or \b 0 if mime type \b mime is unsupported @@ -59,17 +62,23 @@ public: * @param tracks A list of tracks. * @param f_name File name the playlist. */ - static void savePlayList(QList <PlayListTrack *> tracks, const QString &f_name); + static void savePlayList(QList<PlayListTrack *> tracks, const QString &f_name); /*! * Loads playlist from file \b f_name * @param f_name File name. * @return A list of URLs or file paths. */ - static QStringList loadPlaylist(const QString &f_name); + static QList<PlayListTrack *> loadPlaylist(const QString &f_name); + + static QList<PlayListTrack *> loadPlaylist(const QString &fmt, const QByteArray &contents); + /*! + * Loads all playlist plugins. Should be called before usage from another thread. + */ + static void loadFormats(); private: PlayListParser(){} - static void checkFormats(); + static QList<PlayListFormat*> *m_formats; |
