Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

KArchiveFile Class Reference

A file in an archive. More...

#include <karchive.h>

Inheritance diagram for KArchiveFile:

KArchiveEntry List of all members.

Public Methods

int position () const
int size () const
void setSize (int s)
virtual QByteArray data () const
QIODevice * device () const
virtual bool isFile () const
void copyTo (const QString &dest) const

Protected Methods

virtual void virtual_hook (int id, void *data)

Detailed Description

A file in an archive.

See also:
KArchive , KArchiveDirectory

Definition at line 243 of file karchive.h.


Member Function Documentation

void KArchiveFile::copyTo const QString &    dest const
 

Extracts the file to the directory dest

Since:
3.1

virtual QByteArray KArchiveFile::data   [virtual]
 

Returns:
the content of this file. Call data() with care (only once per file), this data isn't cached.

QIODevice* KArchiveFile::device  
 

This method returns QIODevice (internal class: KLimitedIODevice) on top of the underlying QIODevice. 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.

virtual bool KArchiveFile::isFile   const [inline, virtual]
 

Returns:
true, since this entry is a file

Reimplemented from KArchiveEntry.

Definition at line 283 of file karchive.h.

int KArchiveFile::position  
 

Position of the data in the [uncompressed] archive.

void KArchiveFile::setSize int    s [inline]
 

Set size of data, usually after writing the file.

Definition at line 263 of file karchive.h.

int KArchiveFile::size  
 

Size of the data.


The documentation for this class was generated from the following file:
Generated on Wed Aug 13 23:30:05 2003 for kdelibs by doxygen1.2.18