diff options
| author | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-10-24 20:49:28 +0000 |
|---|---|---|
| committer | trialuser02 <trialuser02@90c681e8-e032-0410-971d-27865f9a5e38> | 2017-10-24 20:49:28 +0000 |
| commit | fc595e1a34265a1538343440f8f1e11dc59c6cf8 (patch) | |
| tree | 02b95cb3288f37afbde55d6568b01274fee82426 /src/qmmpui/playlistparser.h | |
| parent | 2f300cd969c2c1dc4cf91686f563c32573628601 (diff) | |
| download | qmmp-fc595e1a34265a1538343440f8f1e11dc59c6cf8.tar.gz qmmp-fc595e1a34265a1538343440f8f1e11dc59c6cf8.tar.bz2 qmmp-fc595e1a34265a1538343440f8f1e11dc59c6cf8.zip | |
updated API documentation
git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@7637 90c681e8-e032-0410-971d-27865f9a5e38
Diffstat (limited to 'src/qmmpui/playlistparser.h')
| -rw-r--r-- | src/qmmpui/playlistparser.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/qmmpui/playlistparser.h b/src/qmmpui/playlistparser.h index 5b0c4d552..35545e2c0 100644 --- a/src/qmmpui/playlistparser.h +++ b/src/qmmpui/playlistparser.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2013 by Ilya Kotov * + * Copyright (C) 2008-2017 by Ilya Kotov * * forkotov02@ya.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -39,9 +39,11 @@ public: * Returns a list of the supported files name filters, i.e. "*.m3u *.pls" */ static QStringList nameFilters(); - + /*! + * Returns \b true if file \b url is playlist. Otherwise returns \b false. + * \param url Local file path or URL. + */ 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 @@ -64,13 +66,18 @@ public: */ static void savePlayList(QList<PlayListTrack *> tracks, const QString &f_name); /*! - * Loads playlist from file \b f_name + * Loads playlist from file \b f_name. * @param f_name File name. - * @return A list of URLs or file paths. + * @return A list of tracks. */ static QList<PlayListTrack *> loadPlaylist(const QString &f_name); - - static QList<PlayListTrack *> loadPlaylist(const QString &fmt, const QByteArray &contents); + /*! + * Loads playlist from content \b content. + * @param fmt Playlist format (short name). + * @param content Playlist content. + * @return A list of tracks. + */ + static QList<PlayListTrack *> loadPlaylist(const QString &fmt, const QByteArray &content); /*! * Loads all playlist plugins. Should be called before usage from another thread. */ |
