Mercurial > hg > svcore
comparison data/fileio/QuickTimeFileReader.h @ 317:c324d410b096
* RemoteFile -> FileSource
now it's used all over the place for local files as well.
author | Chris Cannam |
---|---|
date | Thu, 18 Oct 2007 16:20:26 +0000 |
parents | 3a6725f285d6 |
children | 700cd3350391 |
comparison
equal
deleted
inserted
replaced
316:3a6725f285d6 | 317:c324d410b096 |
---|---|
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(RemoteFile source, | 40 QuickTimeFileReader(FileSource source, |
41 DecodeMode decodeMode, | 41 DecodeMode decodeMode, |
42 CacheMode cacheMode, | 42 CacheMode cacheMode, |
43 size_t targetRate = 0); | 43 size_t targetRate = 0); |
44 virtual ~QuickTimeFileReader(); | 44 virtual ~QuickTimeFileReader(); |
45 | 45 |
47 virtual QString getTitle() const { return m_title; } | 47 virtual QString getTitle() const { return m_title; } |
48 | 48 |
49 static void getSupportedExtensions(std::set<QString> &extensions); | 49 static void getSupportedExtensions(std::set<QString> &extensions); |
50 static bool supportsExtension(QString ext); | 50 static bool supportsExtension(QString ext); |
51 static bool supportsContentType(QString type); | 51 static bool supportsContentType(QString type); |
52 static bool supports(RemoteFile &source); | 52 static bool supports(FileSource &source); |
53 | 53 |
54 virtual int getDecodeCompletion() const { return m_completion; } | 54 virtual int getDecodeCompletion() const { return m_completion; } |
55 | 55 |
56 virtual bool isUpdating() const { | 56 virtual bool isUpdating() const { |
57 return m_decodeThread && m_decodeThread->isRunning(); | 57 return m_decodeThread && m_decodeThread->isRunning(); |
58 } | 58 } |
59 | 59 |
60 protected: | 60 protected: |
61 RemoteFile m_source; | 61 FileSource m_source; |
62 QString m_path; | 62 QString m_path; |
63 QString m_error; | 63 QString m_error; |
64 QString m_title; | 64 QString m_title; |
65 | 65 |
66 class D; | 66 class D; |