class KArchiveFile

# class KArchiveFile | A file in an archive. More...
Definition | `#include <karchive.h>`
Inherits | KArchiveEntry [public ]
Inherited by | KZipFileEntry
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KArchiveFile ( KArchive* archive, const QString& name, int access, int date, const QString& user, const QString& group, const QString &symlink, int pos, int size )
- virtual ~KArchiveFile ()
- 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

See also: KArchive, KArchiveDirectory

KArchiveFile ( KArchive* archive, const QString& name, int access, int date, const QString& user, const QString& group, const QString &symlink, int pos, int size ) | ### KArchiveFile

~KArchiveFile () | ### ~KArchiveFile

[virtual]

int position () | ### position

[const]

Position of the data in the [uncompressed] archive.

int size () | ### size

[const]

Size of the data.

void setSize ( int s ) | ### setSize

Set size of data, usually after writing the file.

QByteArray data () | ### data

[const virtual]

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

QIODevice * device () | ### device

[const]

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.

bool isFile () | ### isFile

[const virtual]

Returns: true, since this entry is a file

Reimplemented from KArchiveEntry.

void copyTo (const QString& dest) | ### copyTo

[const]

Extracts the file to the directory `dest`

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

Reimplemented from KArchiveEntry.

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:57 2003, using kdoc 2.0a54.