KIO
KZipFileEntry Class Reference
A KZipFileEntry represents an file in a zip archive. More...
#include <kzip.h>
Inheritance diagram for KZipFileEntry:

Public Member Functions | |
qint64 | compressedSize () const |
unsigned long | crc32 () const |
virtual QIODevice * | createDevice () const |
virtual QByteArray | data () const |
int | encoding () const |
qint64 | headerStart () const |
KZipFileEntry (KZip *zip, const QString &name, int access, int date, const QString &user, const QString &group, const QString &symlink, const QString &path, qint64 start, qint64 uncompressedSize, int encoding, qint64 compressedSize) | |
const QString & | path () const |
void | setCompressedSize (qint64 compressedSize) |
void | setCRC32 (unsigned long crc32) |
void | setHeaderStart (qint64 headerstart) |
~KZipFileEntry () |
Detailed Description
A KZipFileEntry represents an file in a zip archive.
Definition at line 169 of file kzip.h.
Constructor & Destructor Documentation
KZipFileEntry::~KZipFileEntry | ( | ) |
Member Function Documentation
unsigned long KZipFileEntry::crc32 | ( | ) | const |
QIODevice * KZipFileEntry::createDevice | ( | ) | const [virtual] |
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.
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.
const QString & KZipFileEntry::path | ( | ) | const |
Name with complete path - KArchiveFile::name() is the filename only (no path).
void KZipFileEntry::setCompressedSize | ( | qint64 | compressedSize | ) |
void KZipFileEntry::setHeaderStart | ( | qint64 | headerstart | ) |
The documentation for this class was generated from the following files: