Mercurial > hg > svcore
comparison data/fileio/MP3FileReader.h @ 285:20028c634494
* change some QStrings to std::strings etc
author | Chris Cannam |
---|---|
date | Thu, 09 Aug 2007 16:29:29 +0000 |
parents | 822bd7fd526c |
children | 92e8dbde73cd |
comparison
equal
deleted
inserted
replaced
284:41d64b873d87 | 285:20028c634494 |
---|---|
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(QString path, DecodeMode decodeMode, CacheMode cacheMode); | 38 MP3FileReader(std::string path, DecodeMode decodeMode, CacheMode cacheMode); |
39 virtual ~MP3FileReader(); | 39 virtual ~MP3FileReader(); |
40 | 40 |
41 virtual QString getError() const { return m_error; } | 41 virtual std::string getTitle() const { return m_title; } |
42 | |
43 virtual QString getTitle() const { return m_title; } | |
44 | 42 |
45 static void getSupportedExtensions(std::set<QString> &extensions); | 43 static void getSupportedExtensions(std::set<std::string> &extensions); |
46 | 44 |
47 virtual int getDecodeCompletion() const { return m_completion; } | 45 virtual int getDecodeCompletion() const { return m_completion; } |
48 | 46 |
49 virtual bool isUpdating() const { | 47 virtual bool isUpdating() const { |
50 return m_decodeThread && m_decodeThread->isRunning(); | 48 return m_decodeThread && m_decodeThread->isRunning(); |
51 } | 49 } |
52 | 50 |
53 protected: | 51 protected: |
54 QString m_path; | 52 std::string m_path; |
55 QString m_error; | 53 std::string m_title; |
56 QString m_title; | |
57 size_t m_fileSize; | 54 size_t m_fileSize; |
58 double m_bitrateNum; | 55 double m_bitrateNum; |
59 size_t m_bitrateDenom; | 56 size_t m_bitrateDenom; |
60 int m_completion; | 57 int m_completion; |
61 bool m_done; | 58 bool m_done; |