Mercurial > hg > svcore
comparison data/fileio/BZipFileDevice.h @ 1348:b3cb0edc25cd 3.0-integration
Update WAV/MP3/BZipFileDevice code to avoid using local 8-bit encoding
author | Chris Cannam |
---|---|
date | Fri, 06 Jan 2017 16:40:11 +0000 |
parents | 8ee6cf529c4e |
children | c01cbe41aeb5 |
comparison
equal
deleted
inserted
replaced
1347:281a8c9d4886 | 1348:b3cb0edc25cd |
---|---|
11 published by the Free Software Foundation; either version 2 of the | 11 published by the Free Software Foundation; either version 2 of the |
12 License, or (at your option) any later version. See the file | 12 License, or (at your option) any later version. See the file |
13 COPYING included with this distribution for more information. | 13 COPYING included with this distribution for more information. |
14 */ | 14 */ |
15 | 15 |
16 #ifndef _BZIP_FILE_DEVICE_H_ | 16 #ifndef SV_BZIP_FILE_DEVICE_H |
17 #define _BZIP_FILE_DEVICE_H_ | 17 #define SV_BZIP_FILE_DEVICE_H |
18 | 18 |
19 #include <QIODevice> | 19 #include <QIODevice> |
20 #include <QFile> | |
20 | 21 |
21 #include <bzlib.h> | 22 #include <bzlib.h> |
22 | 23 |
23 class BZipFileDevice : public QIODevice | 24 class BZipFileDevice : public QIODevice |
24 { | 25 { |
39 virtual qint64 readData(char *data, qint64 maxSize); | 40 virtual qint64 readData(char *data, qint64 maxSize); |
40 virtual qint64 writeData(const char *data, qint64 maxSize); | 41 virtual qint64 writeData(const char *data, qint64 maxSize); |
41 | 42 |
42 QString m_fileName; | 43 QString m_fileName; |
43 | 44 |
45 QFile m_qfile; | |
44 FILE *m_file; | 46 FILE *m_file; |
45 BZFILE *m_bzFile; | 47 BZFILE *m_bzFile; |
46 bool m_atEnd; | 48 bool m_atEnd; |
47 bool m_ok; | 49 bool m_ok; |
48 }; | 50 }; |