Mercurial > hg > svcore
diff data/fileio/PlaylistFileReader.h @ 1853:f36fef97ac81
Add isSupported
author | Chris Cannam |
---|---|
date | Wed, 06 May 2020 09:08:06 +0100 |
parents | ad5f892c0c4d |
children |
line wrap: on
line diff
--- a/data/fileio/PlaylistFileReader.h Thu Apr 30 14:46:07 2020 +0100 +++ b/data/fileio/PlaylistFileReader.h Wed May 06 09:08:06 2020 +0100 @@ -38,8 +38,15 @@ virtual QString getError() const; virtual Playlist load() const; + // Return the set of file extensions that are expected to + // represent parseable playlists. static void getSupportedExtensions(std::set<QString> &extensions); + // Return true if the given source has a file extension that is + // one of the supported extensions. Does not look at the content + // of the file. + static bool isSupported(FileSource source); + protected: void init();