Mercurial > hg > svcore
comparison data/fileio/OggVorbisFileReader.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 | 1afaf98dbf11 |
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 OggVorbisFileReader(RemoteFile source, | 40 OggVorbisFileReader(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 ~OggVorbisFileReader(); | 44 virtual ~OggVorbisFileReader(); |
45 | 45 |
48 virtual QString getTitle() const { return m_title; } | 48 virtual QString getTitle() const { return m_title; } |
49 | 49 |
50 static void getSupportedExtensions(std::set<QString> &extensions); | 50 static void getSupportedExtensions(std::set<QString> &extensions); |
51 static bool supportsExtension(QString ext); | 51 static bool supportsExtension(QString ext); |
52 static bool supportsContentType(QString type); | 52 static bool supportsContentType(QString type); |
53 static bool supports(RemoteFile &source); | 53 static bool supports(FileSource &source); |
54 | 54 |
55 virtual int getDecodeCompletion() const { return m_completion; } | 55 virtual int getDecodeCompletion() const { return m_completion; } |
56 | 56 |
57 virtual bool isUpdating() const { | 57 virtual bool isUpdating() const { |
58 return m_decodeThread && m_decodeThread->isRunning(); | 58 return m_decodeThread && m_decodeThread->isRunning(); |
59 } | 59 } |
60 | 60 |
61 protected: | 61 protected: |
62 RemoteFile m_source; | 62 FileSource m_source; |
63 QString m_path; | 63 QString m_path; |
64 QString m_error; | 64 QString m_error; |
65 QString m_title; | 65 QString m_title; |
66 | 66 |
67 OGGZ *m_oggz; | 67 OGGZ *m_oggz; |