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

* change some QStrings to std::strings etc
author Chris Cannam
date Thu, 09 Aug 2007 16:29:29 +0000
parents e2fdcf9d35c5
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 QuickTimeFileReader(QString path, DecodeMode decodeMode, 40 QuickTimeFileReader(std::string path,
41 DecodeMode decodeMode,
41 CacheMode cacheMode); 42 CacheMode cacheMode);
42 virtual ~QuickTimeFileReader(); 43 virtual ~QuickTimeFileReader();
43 44
44 virtual QString getError() const { return m_error; } 45 virtual std::string getTitle() const { return m_title; }
45 virtual QString getTitle() const { return m_title; }
46 46
47 static void getSupportedExtensions(std::set<QString> &extensions); 47 static void getSupportedExtensions(std::set<std::string> &extensions);
48 48
49 virtual int getDecodeCompletion() const { return m_completion; } 49 virtual int getDecodeCompletion() const { return m_completion; }
50 50
51 virtual bool isUpdating() const { 51 virtual bool isUpdating() const {
52 return m_decodeThread && m_decodeThread->isRunning(); 52 return m_decodeThread && m_decodeThread->isRunning();
53 } 53 }
54 54
55 protected: 55 protected:
56 QString m_path; 56 std::string m_path;
57 QString m_error; 57 std::string m_title;
58 QString m_title;
59 58
60 class D; 59 class D;
61 D *m_d; 60 D *m_d;
62 61
63 QProgressDialog *m_progress; 62 QProgressDialog *m_progress;