kio
KZipFileEntry Class Reference
#include <kzip.h>
Inheritance diagram for KZipFileEntry:
Public Member Functions | |
Q_LONG | compressedSize () const |
unsigned long | crc32 () const |
virtual QByteArray | data () const |
QIODevice * | device () const |
int | encoding () const |
Q_LONG | headerStart () const |
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) | |
QString | path () const |
void | setCompressedSize (Q_LONG compressedSize) |
void | setCRC32 (unsigned long crc32) |
void | setHeaderStart (Q_LONG headerstart) |
Detailed Description
For internal use only.
Definition at line 223 of file kzip.h.
Constructor & Destructor Documentation
Member Function Documentation
unsigned long KZipFileEntry::crc32 | ( | ) | const [inline] |
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.
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.
QString KZipFileEntry::path | ( | ) | const [inline] |
Name with complete path - KArchiveFile::name() is the filename only (no path).
void KZipFileEntry::setCompressedSize | ( | Q_LONG | compressedSize | ) | [inline] |
void KZipFileEntry::setCRC32 | ( | unsigned long | crc32 | ) | [inline] |
void KZipFileEntry::setHeaderStart | ( | Q_LONG | headerstart | ) | [inline] |
The documentation for this class was generated from the following files: