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

kio

KZipFileEntry Class Reference

#include <kzip.h>

Inheritance diagram for KZipFileEntry:

Inheritance graph
[legend]

List of all members.


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

KZipFileEntry::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 
) [inline]

Definition at line 228 of file kzip.h.


Member Function Documentation

Q_LONG KZipFileEntry::compressedSize (  )  const [inline]

Definition at line 241 of file kzip.h.

unsigned long KZipFileEntry::crc32 (  )  const [inline]

CRC: only used when writing.

Definition at line 251 of file kzip.h.

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

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.

Definition at line 1451 of file kzip.cpp.

int KZipFileEntry::encoding (  )  const [inline]

Definition at line 240 of file kzip.h.

Q_LONG KZipFileEntry::headerStart (  )  const [inline]

Definition at line 248 of file kzip.h.

QString KZipFileEntry::path (  )  const [inline]

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

Definition at line 255 of file kzip.h.

void KZipFileEntry::setCompressedSize ( Q_LONG  compressedSize  )  [inline]

Only used when writing.

Definition at line 244 of file kzip.h.

void KZipFileEntry::setCRC32 ( unsigned long  crc32  )  [inline]

Definition at line 252 of file kzip.h.

void KZipFileEntry::setHeaderStart ( Q_LONG  headerstart  )  [inline]

Header start: only used when writing.

Definition at line 247 of file kzip.h.


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

kio

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

API Reference

Skip menu "API Reference"
  • dcop
  • DNSSD
  • interfaces
  • Kate
  • kconf_update
  • KDECore
  • KDED
  • kdefx
  • KDEsu
  • kdeui
  • KDocTools
  • KHTML
  • KImgIO
  • KInit
  • kio
  • kioslave
  • KJS
  • KNewStuff
  • KParts
  • KUtils
Generated for API Reference by doxygen 1.5.9
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