Mercurial > hg > svcore
comparison data/fileio/QuickTimeFileReader.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 |
---|---|
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(std::string path, | 40 QuickTimeFileReader(QString path, DecodeMode decodeMode, |
41 DecodeMode decodeMode, | |
42 CacheMode cacheMode); | 41 CacheMode cacheMode); |
43 virtual ~QuickTimeFileReader(); | 42 virtual ~QuickTimeFileReader(); |
44 | 43 |
45 virtual std::string getTitle() const { return m_title; } | 44 virtual QString getError() const { return m_error; } |
45 virtual QString getTitle() const { return m_title; } | |
46 | 46 |
47 static void getSupportedExtensions(std::set<std::string> &extensions); | 47 static void getSupportedExtensions(std::set<QString> &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 std::string m_path; | 56 QString m_path; |
57 std::string m_title; | 57 QString m_error; |
58 QString m_title; | |
58 | 59 |
59 class D; | 60 class D; |
60 D *m_d; | 61 D *m_d; |
61 | 62 |
62 QProgressDialog *m_progress; | 63 QProgressDialog *m_progress; |