#include <BZipFileDevice.h>

Inheritance diagram for BZipFileDevice:
Inheritance graph
Collaboration diagram for BZipFileDevice:
Collaboration graph

Public Member Functions

 BZipFileDevice (QString fileName)
 
virtual ~BZipFileDevice ()
 
bool open (OpenMode mode) override
 
void close () override
 
virtual bool isOK () const
 
bool isSequential () const override
 

Protected Member Functions

qint64 readData (char *data, qint64 maxSize) override
 
qint64 writeData (const char *data, qint64 maxSize) override
 

Protected Attributes

QString m_fileName
 
QFile m_qfile
 
FILE * m_file
 
BZFILE * m_bzFile
 
bool m_atEnd
 
bool m_ok
 

Detailed Description

Definition at line 24 of file BZipFileDevice.h.

Constructor & Destructor Documentation

BZipFileDevice::BZipFileDevice ( QString  fileName)

Definition at line 31 of file BZipFileDevice.cpp.

BZipFileDevice::~BZipFileDevice ( )
virtual

Definition at line 41 of file BZipFileDevice.cpp.

References close(), and m_bzFile.

Member Function Documentation

bool BZipFileDevice::open ( OpenMode  mode)
override

Definition at line 54 of file BZipFileDevice.cpp.

References m_atEnd, m_bzFile, m_file, m_ok, and m_qfile.

void BZipFileDevice::close ( )
override

Definition at line 179 of file BZipFileDevice.cpp.

References m_bzFile, m_file, m_ok, and m_qfile.

Referenced by ~BZipFileDevice().

bool BZipFileDevice::isOK ( ) const
virtual

Definition at line 48 of file BZipFileDevice.cpp.

References m_ok.

bool BZipFileDevice::isSequential ( ) const
inlineoverride

Definition at line 37 of file BZipFileDevice.h.

References readData(), and writeData().

qint64 BZipFileDevice::readData ( char *  data,
qint64  maxSize 
)
overrideprotected

Definition at line 222 of file BZipFileDevice.cpp.

References m_atEnd, m_bzFile, and m_ok.

Referenced by isSequential().

qint64 BZipFileDevice::writeData ( const char *  data,
qint64  maxSize 
)
overrideprotected

Definition at line 247 of file BZipFileDevice.cpp.

References m_bzFile, and m_ok.

Referenced by isSequential().

Member Data Documentation

QString BZipFileDevice::m_fileName
protected

Definition at line 43 of file BZipFileDevice.h.

QFile BZipFileDevice::m_qfile
protected

Definition at line 45 of file BZipFileDevice.h.

Referenced by close(), and open().

FILE* BZipFileDevice::m_file
protected

Definition at line 46 of file BZipFileDevice.h.

Referenced by close(), and open().

BZFILE* BZipFileDevice::m_bzFile
protected

Definition at line 47 of file BZipFileDevice.h.

Referenced by close(), open(), readData(), writeData(), and ~BZipFileDevice().

bool BZipFileDevice::m_atEnd
protected

Definition at line 48 of file BZipFileDevice.h.

Referenced by open(), and readData().

bool BZipFileDevice::m_ok
protected

Definition at line 49 of file BZipFileDevice.h.

Referenced by close(), isOK(), open(), readData(), and writeData().


The documentation for this class was generated from the following files: