comparison data/fileio/PlaylistFileReader.h @ 1853:f36fef97ac81

Add isSupported
author Chris Cannam
date Wed, 06 May 2020 09:08:06 +0100
parents ad5f892c0c4d
children
comparison
equal deleted inserted replaced
1852:a454c7477b4f 1853:f36fef97ac81
36 36
37 virtual bool isOK() const; 37 virtual bool isOK() const;
38 virtual QString getError() const; 38 virtual QString getError() const;
39 virtual Playlist load() const; 39 virtual Playlist load() const;
40 40
41 // Return the set of file extensions that are expected to
42 // represent parseable playlists.
41 static void getSupportedExtensions(std::set<QString> &extensions); 43 static void getSupportedExtensions(std::set<QString> &extensions);
44
45 // Return true if the given source has a file extension that is
46 // one of the supported extensions. Does not look at the content
47 // of the file.
48 static bool isSupported(FileSource source);
42 49
43 protected: 50 protected:
44 void init(); 51 void init();
45 52
46 FileSource m_source; 53 FileSource m_source;