comparison data/fileio/AudioFileReaderFactory.h @ 285:20028c634494

* change some QStrings to std::strings etc
author Chris Cannam
date Thu, 09 Aug 2007 16:29:29 +0000
parents 1a42221a1522
children 92e8dbde73cd
comparison
equal deleted inserted replaced
284:41d64b873d87 285:20028c634494
14 */ 14 */
15 15
16 #ifndef _AUDIO_FILE_READER_FACTORY_H_ 16 #ifndef _AUDIO_FILE_READER_FACTORY_H_
17 #define _AUDIO_FILE_READER_FACTORY_H_ 17 #define _AUDIO_FILE_READER_FACTORY_H_
18 18
19 #include <QString> 19 #include <string>
20 20
21 class AudioFileReader; 21 class AudioFileReader;
22 22
23 class AudioFileReaderFactory 23 class AudioFileReaderFactory
24 { 24 {
26 /** 26 /**
27 * Return the file extensions that we have audio file readers for, 27 * Return the file extensions that we have audio file readers for,
28 * in a format suitable for use with QFileDialog. For example, 28 * in a format suitable for use with QFileDialog. For example,
29 * "*.wav *.aiff *.ogg". 29 * "*.wav *.aiff *.ogg".
30 */ 30 */
31 static QString getKnownExtensions(); 31 static std::string getKnownExtensions();
32 32
33 /** 33 /**
34 * Return an audio file reader initialised to the file at the 34 * Return an audio file reader initialised to the file at the
35 * given path, or NULL if no suitable reader for this path is 35 * given path, or NULL if no suitable reader for this path is
36 * available or the file cannot be opened. 36 * available or the file cannot be opened.
37 * Caller owns the returned object and must delete it after use. 37 * Caller owns the returned object and must delete it after use.
38 */ 38 */
39 static AudioFileReader *createReader(QString path); 39 static AudioFileReader *createReader(std::string path);
40 }; 40 };
41 41
42 #endif 42 #endif
43 43