• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDECore

Public Member Functions | List of all members
KZipFileEntry Class Reference

#include <kzip.h>

Inheritance diagram for KZipFileEntry:
KArchiveFile KArchiveEntry

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, qint64 start, qint64 uncompressedSize, int encoding, qint64 compressedSize)
 ~KZipFileEntry ()
qint64 compressedSize () const
unsigned long crc32 () const
virtual QIODevice * createDevice () const
virtual QByteArray data () const
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, int date, const QString &user, const QString &group, const QString &symlink, qint64 pos, qint64 size)
virtual ~KArchiveFile ()
void copyTo (const QString &dest) const
virtual bool isFile () const
qint64 position () const
void setSize (qint64 s)
qint64 size () const
Public Member Functions inherited from KArchiveEntry
 KArchiveEntry (KArchive *archive, const QString &name, int access, int date, const QString &user, const QString &group, const QString &symlink)
virtual ~KArchiveEntry ()
int date () const
QDateTime datetime () 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
virtual void virtual_hook (int id, void *data)
Protected Member Functions inherited from KArchiveEntry
KArchive * archive () const

Detailed Description

A KZipFileEntry represents an file in a zip archive.

Definition at line 170 of file kzip.h.

Constructor & Destructor Documentation

◆ KZipFileEntry()

KZipFileEntry::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 )

Creates a new zip file entry.

Do not call this, KZip takes care of it.

Definition at line 1318 of file kzip.cpp.

◆ ~KZipFileEntry()

KZipFileEntry::~KZipFileEntry ( )

Destructor.

Do not call this.

Definition at line 1330 of file kzip.cpp.

Member Function Documentation

◆ compressedSize()

qint64 KZipFileEntry::compressedSize ( ) const

Definition at line 1340 of file kzip.cpp.

◆ crc32()

unsigned long KZipFileEntry::crc32 ( ) const

CRC: only used when writing.

Definition at line 1360 of file kzip.cpp.

◆ createDevice()

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.

Definition at line 1386 of file kzip.cpp.

◆ data()

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 1375 of file kzip.cpp.

◆ encoding()

int KZipFileEntry::encoding ( ) const

Definition at line 1335 of file kzip.cpp.

◆ headerStart()

qint64 KZipFileEntry::headerStart ( ) const

Definition at line 1355 of file kzip.cpp.

◆ path()

const QString & KZipFileEntry::path ( ) const

Name with complete path - KArchiveFile::name() is the filename only (no path)

Definition at line 1370 of file kzip.cpp.

◆ setCompressedSize()

void KZipFileEntry::setCompressedSize ( qint64 compressedSize)

Only used when writing.

Definition at line 1345 of file kzip.cpp.

◆ setCRC32()

void KZipFileEntry::setCRC32 ( unsigned long crc32)

Definition at line 1365 of file kzip.cpp.

◆ setHeaderStart()

void KZipFileEntry::setHeaderStart ( qint64 headerstart)

Header start: only used when writing.

Definition at line 1350 of file kzip.cpp.


The documentation for this class was generated from the following files:
  • kzip.h
  • kzip.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Tue Mar 25 2025 00:00:00 by doxygen 1.14.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

Skip menu "KDECore"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal