Mercurial > hg > svcore
comparison data/fileio/AudioFileReaderFactory.h @ 290:92e8dbde73cd
* Revert revision 713. We do like QStrings after all.
author | Chris Cannam |
---|---|
date | Fri, 24 Aug 2007 11:41:48 +0000 |
parents | 20028c634494 |
children | c022976d18e8 |
comparison
equal
deleted
inserted
replaced
289:3020904de772 | 290:92e8dbde73cd |
---|---|
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 <string> | 19 #include <QString> |
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 std::string getKnownExtensions(); | 31 static QString 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(std::string path); | 39 static AudioFileReader *createReader(QString path); |
40 }; | 40 }; |
41 | 41 |
42 #endif | 42 #endif |
43 | 43 |