comparison data/fileio/MP3FileReader.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
33 enum DecodeMode { 33 enum DecodeMode {
34 DecodeAtOnce, // decode the file on construction, with progress dialog 34 DecodeAtOnce, // decode the file on construction, with progress dialog
35 DecodeThreaded // decode in a background thread after construction 35 DecodeThreaded // decode in a background thread after construction
36 }; 36 };
37 37
38 MP3FileReader(std::string path, DecodeMode decodeMode, CacheMode cacheMode); 38 MP3FileReader(QString path, DecodeMode decodeMode, CacheMode cacheMode);
39 virtual ~MP3FileReader(); 39 virtual ~MP3FileReader();
40 40
41 virtual std::string getTitle() const { return m_title; } 41 virtual QString getError() const { return m_error; }
42
43 virtual QString getTitle() const { return m_title; }
42 44
43 static void getSupportedExtensions(std::set<std::string> &extensions); 45 static void getSupportedExtensions(std::set<QString> &extensions);
44 46
45 virtual int getDecodeCompletion() const { return m_completion; } 47 virtual int getDecodeCompletion() const { return m_completion; }
46 48
47 virtual bool isUpdating() const { 49 virtual bool isUpdating() const {
48 return m_decodeThread && m_decodeThread->isRunning(); 50 return m_decodeThread && m_decodeThread->isRunning();
49 } 51 }
50 52
51 protected: 53 protected:
52 std::string m_path; 54 QString m_path;
53 std::string m_title; 55 QString m_error;
56 QString m_title;
54 size_t m_fileSize; 57 size_t m_fileSize;
55 double m_bitrateNum; 58 double m_bitrateNum;
56 size_t m_bitrateDenom; 59 size_t m_bitrateDenom;
57 int m_completion; 60 int m_completion;
58 bool m_done; 61 bool m_done;