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