• Skip to content
  • Skip to link menu
KDE 4.3 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

KZipFileEntry Class Reference

A KZipFileEntry represents an file in a zip archive. More...

#include <kzip.h>

Inheritance diagram for KZipFileEntry:
KArchiveFile KArchiveEntry

List of all members.

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

KZipFileEntry::~KZipFileEntry (  ) 

Destructor.

Do not call this.

Definition at line 1322 of file kzip.cpp.


Member Function Documentation

qint64 KZipFileEntry::compressedSize (  )  const

Definition at line 1332 of file kzip.cpp.

unsigned long KZipFileEntry::crc32 (  )  const

CRC: only used when writing.

Definition at line 1352 of file kzip.cpp.

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

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

int KZipFileEntry::encoding (  )  const

Definition at line 1327 of file kzip.cpp.

qint64 KZipFileEntry::headerStart (  )  const

Definition at line 1347 of file kzip.cpp.

const QString & KZipFileEntry::path (  )  const

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

Definition at line 1362 of file kzip.cpp.

void KZipFileEntry::setCompressedSize ( qint64  compressedSize  ) 

Only used when writing.

Definition at line 1337 of file kzip.cpp.

void KZipFileEntry::setCRC32 ( unsigned long  crc32  ) 

Definition at line 1357 of file kzip.cpp.

void KZipFileEntry::setHeaderStart ( qint64  headerstart  ) 

Header start: only used when writing.

Definition at line 1342 of file kzip.cpp.


The documentation for this class was generated from the following files:
  • kzip.h
  • kzip.cpp

KIO

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.6.1
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal