class KArchiveFile

A file in an archive. More...

Definition#include <karchive.h>
InheritsKArchiveEntry [public ]
Inherited byKZipFileEntry
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Protected Methods


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.

QIODevicedevice ()

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: caleb on tcdevel on Tue Jan 28 12:54:15 2003, using kdoc $.