svcore  1.9
BZipFileDevice Class Reference

#include <BZipFileDevice.h>

Inheritance diagram for BZipFileDevice:
Collaboration diagram for BZipFileDevice:

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::BZipFileDevice ( QString  fileName)

Definition at line 24 of file BZipFileDevice.cpp.

◆ ~BZipFileDevice()

BZipFileDevice::~BZipFileDevice ( )
virtual

Definition at line 33 of file BZipFileDevice.cpp.

References close(), and m_bzFile.

Member Function Documentation

◆ open()

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.

◆ close()

void BZipFileDevice::close ( )
virtual

Definition at line 135 of file BZipFileDevice.cpp.

References m_bzFile, m_file, and m_ok.

Referenced by ~BZipFileDevice().

◆ isOK()

bool BZipFileDevice::isOK ( ) const
virtual

Definition at line 40 of file BZipFileDevice.cpp.

References m_ok.

◆ isSequential()

virtual bool BZipFileDevice::isSequential ( ) const
inlinevirtual

Definition at line 36 of file BZipFileDevice.h.

◆ readData()

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

Definition at line 176 of file BZipFileDevice.cpp.

References m_atEnd, m_bzFile, and m_ok.

◆ writeData()

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

Definition at line 201 of file BZipFileDevice.cpp.

References m_bzFile, and m_ok.

Member Data Documentation

◆ m_fileName

QString BZipFileDevice::m_fileName
protected

Definition at line 42 of file BZipFileDevice.h.

Referenced by open().

◆ m_file

FILE* BZipFileDevice::m_file
protected

Definition at line 44 of file BZipFileDevice.h.

Referenced by close(), and open().

◆ m_bzFile

BZFILE* BZipFileDevice::m_bzFile
protected

Definition at line 45 of file BZipFileDevice.h.

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

◆ m_atEnd

bool BZipFileDevice::m_atEnd
protected

Definition at line 46 of file BZipFileDevice.h.

Referenced by open(), and readData().

◆ m_ok

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: