Mercurial > hg > svcore
comparison data/fileio/BZipFileDevice.h @ 207:8ee6cf529c4e
* Further fix for restoring layer visibility from session file
* Better handling of error state in bzip file device to avoid spurious errors
* Fix #1495001 deleted layers prevail in saved session file
author | Chris Cannam |
---|---|
date | Fri, 05 Jan 2007 15:49:10 +0000 |
parents | 1a42221a1522 |
children | b3cb0edc25cd |
comparison
equal
deleted
inserted
replaced
206:a75e678f5d37 | 207:8ee6cf529c4e |
---|---|
29 virtual ~BZipFileDevice(); | 29 virtual ~BZipFileDevice(); |
30 | 30 |
31 virtual bool open(OpenMode mode); | 31 virtual bool open(OpenMode mode); |
32 virtual void close(); | 32 virtual void close(); |
33 | 33 |
34 virtual bool isOK() const; | |
35 | |
34 virtual bool isSequential() const { return true; } | 36 virtual bool isSequential() const { return true; } |
35 | 37 |
36 protected: | 38 protected: |
37 virtual qint64 readData(char *data, qint64 maxSize); | 39 virtual qint64 readData(char *data, qint64 maxSize); |
38 virtual qint64 writeData(const char *data, qint64 maxSize); | 40 virtual qint64 writeData(const char *data, qint64 maxSize); |
40 QString m_fileName; | 42 QString m_fileName; |
41 | 43 |
42 FILE *m_file; | 44 FILE *m_file; |
43 BZFILE *m_bzFile; | 45 BZFILE *m_bzFile; |
44 bool m_atEnd; | 46 bool m_atEnd; |
47 bool m_ok; | |
45 }; | 48 }; |
46 | 49 |
47 #endif | 50 #endif |