QuaZIP quazip-0-5-1

- Main Page
- Related Pages
- Classes
- Files
- Directories

- File List

quaziodevice.h

    00001 #ifndef QUAZIP_QUAZIODEVICE_H
    00002 #define QUAZIP_QUAZIODEVICE_H
    00003
    00004 #include <QIODevice>
    00005 #include "quazip_global.h"
    00006
    00007 #include <zlib.h>
    00008
    00009 class QuaZIODevicePrivate;
    00010
    00012
    00017 class QUAZIP_EXPORT QuaZIODevice: public QIODevice {
    00018   Q_OBJECT
    00019 public:
    00021
    00025   QuaZIODevice(QIODevice *io, QObject *parent = NULL);
    00027   ~QuaZIODevice();
    00029
    00049   virtual bool flush();
    00051
    00055   virtual bool open(QIODevice::OpenMode mode);
    00057
    00061   virtual void close();
    00063   QIODevice *getIoDevice() const;
    00065   virtual bool isSequential() const;
    00066 protected:
    00068   virtual qint64 readData(char *data, qint64 maxSize);
    00070   virtual qint64 writeData(const char *data, qint64 maxSize);
    00071 private:
    00072   QuaZIODevicePrivate *d;
    00073 };
    00074 #endif // QUAZIP_QUAZIODEVICE_H