diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-11-26 05:02:51 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2013-11-26 05:02:51 +0000 |
| commit | b67a746b18fecb139bfbbd52635dcec56da06ac5 (patch) | |
| tree | 2de7550fe960bd2dc28a8b004482a07e652427b0 /src/qmmpui/playlistparser.h | |
| parent | 81ce1a88424aece4b638fd12c4ceb5b8cbadc2b7 (diff) | |
| download | qmmp-b67a746b18fecb139bfbbd52635dcec56da06ac5.tar.gz qmmp-b67a746b18fecb139bfbbd52635dcec56da06ac5.tar.bz2 qmmp-b67a746b18fecb139bfbbd52635dcec56da06ac5.zip | |
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
Diffstat (limited to 'src/qmmpui/playlistparser.h')
| -rw-r--r-- | src/qmmpui/playlistparser.h | 13 |
1 files changed, 13 insertions, 0 deletions
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 <QStringList> #include <QUrl> +#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 <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); private: PlayListParser(){} |
