kio Library API Documentation

KZipFileEntry Class Reference

Inheritance diagram for KZipFileEntry:

Inheritance graph
[legend]
Collaboration diagram for KZipFileEntry:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 KZipFileEntry (KZip *zip, const QString &name, int access, int date, const QString &user, const QString &group, const QString &symlink, const QString &path, Q_LONG start, Q_LONG uncompressedSize, int encoding, Q_LONG compressedSize)
int encoding () const
Q_LONG compressedSize () const
void setCompressedSize (Q_LONG compressedSize)
void setHeaderStart (Q_LONG headerstart)
Q_LONG headerStart () const
unsigned long crc32 () const
void setCRC32 (unsigned long crc32)
QString path () const
virtual QByteArray data () const
QIODevicedevice () const

Detailed Description

Definition at line 226 of file kzip.h.


Member Function Documentation

void KZipFileEntry::setCompressedSize Q_LONG  compressedSize  )  [inline]
 

Only used when writing.

Definition at line 247 of file kzip.h.

void KZipFileEntry::setHeaderStart Q_LONG  headerstart  )  [inline]
 

Header start: only used when writing.

Definition at line 250 of file kzip.h.

Referenced by KZip::prepareWriting_impl().

unsigned long KZipFileEntry::crc32  )  const [inline]
 

CRC: only used when writing.

Definition at line 254 of file kzip.h.

QByteArray KZipFileEntry::data  )  const [virtual]
 

Returns:
the content of this file. Call data() with care (only once per file), this data isn't cached.

Reimplemented from KArchiveFile.

Definition at line 1371 of file kzip.cpp.

References device(), and QIODevice::readAll().

QIODevice * KZipFileEntry::device  )  const
 

This method returns a QIODevice to read the file contents.

This is obviously for reading only. Note that the ownership of the device is being transferred to the caller, who will have to delete it. The returned device auto-opens (in readonly mode), no need to open it.

Reimplemented from KArchiveFile.

Definition at line 1382 of file kzip.cpp.

References KArchiveEntry::archive(), compressedSize(), KFilterDev::device(), encoding(), endl(), kdError(), QIODevice::open(), and KArchiveFile::position().

Referenced by data().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for kio Library Version 3.4.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Thu Jul 20 12:41:24 2006 by doxygen 1.4.4 written by Dimitri van Heesch, © 1997-2003