TaurusZIPLibrary  $VERSION$
QtZipHelper::Unzip Class Reference

This class represents a ZIP file being read. More...

#include <qtziphlp.h>

Inheritance diagram for QtZipHelper::Unzip:
QtZipHelper::ZipHlpBase

Public Slots

virtual bool open (QIODevice *d)
 
virtual void close ()
 
virtual int fileCount () const
 returns the amount of files stored in this ZIP file More...
 
virtual ZipFileInfo firstFile ()
 jumps to the first file stored in the ZIP file, returning its information More...
 
virtual ZipFileInfo nextFile ()
 moves to the next file in the ZIP file, returning its information More...
 
virtual ZipFileInfo locateFile (const QString &name, Qt::CaseSensitivity cs=Qt::CaseSensitive)
 tries to find a file with the given name, returning its information More...
 
virtual ZipFileInfo currentFile () const
 returns information about the file currently being unpacked More...
 
virtual ZipFileInfo currentFile (QIODevice &d) const
 
virtual ZipFileInfo currentFile (QByteArray &) const
 
virtual QByteArray currentFileContent () const
 returns the uncompressed content of the current file More...
 
virtual ZipFileInfo currentFileRaw (QIODevice &d) const
 
virtual ZipFileInfo currentFileRaw (QByteArray &) const
 
virtual QByteArray currentFileRawContent () const
 returns the still compressed content of the current file More...
 
virtual QString currentFileName () const
 returns the name of the file currently being uncompressed More...
 
virtual bool copyCurrentFile (Zip &) const
 copies the current file to the given Zip object, returns true on success More...
 

Public Member Functions

 Unzip (QObject *parent=0)
 create a new ZIP object More...
 
virtual ~Unzip ()
 delete the ZIP object More...
 
virtual bool isOpen () const
 returns true if the ZIP file is currently open for reading More...
 
- Public Member Functions inherited from QtZipHelper::ZipHlpBase
 ZipHlpBase (QObject *parent=0)
 create Zip object with parent More...
 
virtual ~ZipHlpBase ()
 delete the object More...
 
virtual void close ()=0
 abstract base function: close the ZIP file More...
 

Additional Inherited Members

- Protected Attributes inherited from QtZipHelper::ZipHlpBase
Private * d
 

Detailed Description

This class represents a ZIP file being read.

Constructor & Destructor Documentation

QtZipHelper::Unzip::Unzip ( QObject *  parent = 0)
explicit

create a new ZIP object

virtual QtZipHelper::Unzip::~Unzip ( )
virtual

delete the ZIP object

Member Function Documentation

virtual void QtZipHelper::Unzip::close ( )
virtualslot

closes the ZIP object (abandoning internal state), but does not close the actual QIODevice

virtual bool QtZipHelper::Unzip::copyCurrentFile ( Zip ) const
virtualslot

copies the current file to the given Zip object, returns true on success

virtual ZipFileInfo QtZipHelper::Unzip::currentFile ( ) const
virtualslot

returns information about the file currently being unpacked

virtual ZipFileInfo QtZipHelper::Unzip::currentFile ( QIODevice &  d) const
virtualslot

returns information about the file currently being unpacked and stores its uncompressed content in the given QIODevice

virtual ZipFileInfo QtZipHelper::Unzip::currentFile ( QByteArray &  ) const
virtualslot

returns information about the file currently being unpacked and stores its uncompressed content in the given byte array

virtual QByteArray QtZipHelper::Unzip::currentFileContent ( ) const
virtualslot

returns the uncompressed content of the current file

virtual QString QtZipHelper::Unzip::currentFileName ( ) const
virtualslot

returns the name of the file currently being uncompressed

virtual ZipFileInfo QtZipHelper::Unzip::currentFileRaw ( QIODevice &  d) const
virtualslot

returns information about the file currently being unpacked and stores its still compressed content in the given QIODevice

virtual ZipFileInfo QtZipHelper::Unzip::currentFileRaw ( QByteArray &  ) const
virtualslot

returns information about the file currently being unpacked and stores its still compressed content in the given byte array

virtual QByteArray QtZipHelper::Unzip::currentFileRawContent ( ) const
virtualslot

returns the still compressed content of the current file

virtual int QtZipHelper::Unzip::fileCount ( ) const
virtualslot

returns the amount of files stored in this ZIP file

virtual ZipFileInfo QtZipHelper::Unzip::firstFile ( )
virtualslot

jumps to the first file stored in the ZIP file, returning its information

virtual bool QtZipHelper::Unzip::isOpen ( ) const
virtual

returns true if the ZIP file is currently open for reading

Implements QtZipHelper::ZipHlpBase.

virtual ZipFileInfo QtZipHelper::Unzip::locateFile ( const QString &  name,
Qt::CaseSensitivity  cs = Qt::CaseSensitive 
)
virtualslot

tries to find a file with the given name, returning its information

virtual ZipFileInfo QtZipHelper::Unzip::nextFile ( )
virtualslot

moves to the next file in the ZIP file, returning its information

virtual bool QtZipHelper::Unzip::open ( QIODevice *  d)
virtualslot

attaches a QIODevice to the ZIP object, does not take ownership of the device, you are responsible for closing or reparenting it


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