KArchiveFile Class Reference
Represents a file entry in a KArchive. A file in an archive. More...
#include <karchive.h>
Inheritance diagram for KArchiveFile:

Public Member Functions | |
KArchiveFile (KArchive *archive, const QString &name, int access, int date, const QString &user, const QString &group, const QString &symlink, int pos, int size) | |
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 Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
Represents a file entry in a KArchive. A file in an archive.
- See also:
- KArchive
Definition at line 477 of file karchive.h.
Constructor & Destructor Documentation
|
Creates a new file entry.
|
Member Function Documentation
|
Position of the data in the [uncompressed] archive.
Referenced by KArchiveDirectory::copyTo(). |
|
Size of the data.
|
|
Set size of data, usually after writing the file.
|
|
Returns the data of the file. Call data() with care (only once per file), this data isn't cached.
References QIODevice::at(), KArchive::device(), and QIODevice::readBlock(). Referenced by copyTo(). |
|
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.
|
|
Checks whether this entry is a file.
Reimplemented from KArchiveEntry. Definition at line 535 of file karchive.h. |
|
Extracts the file to the directory
References QFile::close(), data(), KArchiveEntry::name(), and QFile::open(). Referenced by KArchiveDirectory::copyTo(). |
The documentation for this class was generated from the following files: