KZipFileEntry
KZipFileEntry Class Reference
#include <KZipFileEntry>
Inheritance diagram for KZipFileEntry:
Public Member Functions | |
KZipFileEntry (KZip *zip, const QString &name, int access, const QDateTime &date, const QString &user, const QString &group, const QString &symlink, const QString &path, qint64 start, qint64 uncompressedSize, int encoding, qint64 compressedSize) | |
~KZipFileEntry () override | |
qint64 | compressedSize () const |
unsigned long | crc32 () const |
QIODevice * | createDevice () const override |
QByteArray | data () const override |
int | encoding () const |
qint64 | headerStart () const |
const QString & | path () const |
void | setCompressedSize (qint64 compressedSize) |
void | setCRC32 (unsigned long crc32) |
void | setHeaderStart (qint64 headerstart) |
Public Member Functions inherited from KArchiveFile | |
KArchiveFile (KArchive *archive, const QString &name, int access, const QDateTime &date, const QString &user, const QString &group, const QString &symlink, qint64 pos, qint64 size) | |
~KArchiveFile () override | |
bool | copyTo (const QString &dest) const |
bool | isFile () const override |
qint64 | position () const |
void | setSize (qint64 s) |
qint64 | size () const |
Public Member Functions inherited from KArchiveEntry | |
KArchiveEntry (KArchive *archive, const QString &name, int access, const QDateTime &date, const QString &user, const QString &group, const QString &symlink) | |
QDateTime | date () const |
QString | group () const |
virtual bool | isDirectory () const |
QString | name () const |
mode_t | permissions () const |
QString | symLinkTarget () const |
QString | user () const |
Additional Inherited Members | |
Protected Member Functions inherited from KArchiveFile | |
void | virtual_hook (int id, void *data) override |
Protected Member Functions inherited from KArchiveEntry | |
KArchive * | archive () const |
Detailed Description
A KZipFileEntry represents a file in a zip archive.
Definition at line 18 of file kzipfileentry.h.
Constructor & Destructor Documentation
◆ KZipFileEntry()
◆ ~KZipFileEntry()
|
override |
Member Function Documentation
◆ compressedSize()
◆ crc32()
unsigned long KZipFileEntry::crc32 | ( | ) | const |
◆ createDevice()
|
overridevirtual |
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.
◆ data()
|
overridevirtual |
- Returns
- the content of this file. Call data() with care (only once per file), this data isn't cached.
Reimplemented from KArchiveFile.
◆ encoding()
◆ headerStart()
◆ path()
const QString & KZipFileEntry::path | ( | ) | const |
Name with complete path - KArchiveFile::name() is the filename only (no path)
◆ setCompressedSize()
void KZipFileEntry::setCompressedSize | ( | qint64 | compressedSize | ) |
◆ setCRC32()
◆ setHeaderStart()
void KZipFileEntry::setHeaderStart | ( | qint64 | headerstart | ) |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:56:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.