svcore  1.9
BZipFileDevice Class Reference

#include <BZipFileDevice.h>

List of all members.

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

Detailed Description

Definition at line 23 of file BZipFileDevice.h.


Constructor & Destructor Documentation

BZipFileDevice::BZipFileDevice ( QString  fileName)

Definition at line 24 of file BZipFileDevice.cpp.

Definition at line 33 of file BZipFileDevice.cpp.

References close(), and m_bzFile.


Member Function Documentation

bool BZipFileDevice::open ( OpenMode  mode) [virtual]

Definition at line 46 of file BZipFileDevice.cpp.

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

void BZipFileDevice::close ( ) [virtual]

Definition at line 135 of file BZipFileDevice.cpp.

References m_bzFile, m_file, and m_ok.

Referenced by ~BZipFileDevice().

bool BZipFileDevice::isOK ( ) const [virtual]

Definition at line 40 of file BZipFileDevice.cpp.

References m_ok.

virtual bool BZipFileDevice::isSequential ( ) const [inline, virtual]

Definition at line 36 of file BZipFileDevice.h.

qint64 BZipFileDevice::readData ( char *  data,
qint64  maxSize 
) [protected, virtual]

Definition at line 176 of file BZipFileDevice.cpp.

References m_atEnd, m_bzFile, and m_ok.

qint64 BZipFileDevice::writeData ( const char *  data,
qint64  maxSize 
) [protected, virtual]

Definition at line 201 of file BZipFileDevice.cpp.

References m_bzFile, and m_ok.


Member Data Documentation

QString BZipFileDevice::m_fileName [protected]

Definition at line 42 of file BZipFileDevice.h.

Referenced by open().

FILE* BZipFileDevice::m_file [protected]

Definition at line 44 of file BZipFileDevice.h.

Referenced by close(), and open().

BZFILE* BZipFileDevice::m_bzFile [protected]

Definition at line 45 of file BZipFileDevice.h.

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

bool BZipFileDevice::m_atEnd [protected]

Definition at line 46 of file BZipFileDevice.h.

Referenced by open(), and readData().

bool BZipFileDevice::m_ok [protected]

Definition at line 47 of file BZipFileDevice.h.

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


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