From b67a746b18fecb139bfbbd52635dcec56da06ac5 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Tue, 26 Nov 2013 05:02:51 +0000 Subject: added new api functions: PlayListParser::savePlayList and PlayListParser::loadPlaylist git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3929 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/playlistparser.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/qmmpui/playlistparser.h') diff --git a/src/qmmpui/playlistparser.h b/src/qmmpui/playlistparser.h index b2fdc44c9..c8e779b84 100644 --- a/src/qmmpui/playlistparser.h +++ b/src/qmmpui/playlistparser.h @@ -22,6 +22,7 @@ #include #include +#include "playlisttrack.h" #include "playlistformat.h" /*! @brief The PlaylistParser class provides a simple api to access playlist format plugins. @@ -53,6 +54,18 @@ public: * Returns \b 0 if file \b filePath is unsupported. */ static PlayListFormat *findByUrl(const QUrl &url); + /*! + * Saves a list of tracks to the file. + * @param tracks A list of tracks. + * @param f_name File name the playlist. + */ + static void savePlayList(QList 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); private: PlayListParser(){} -- cgit v1.2.3-13-gbd6f