KArchiveFile Class Reference
#include <karchive.h>
Inheritance diagram for KArchiveFile:

Detailed Description
Represents a file entry in a KArchive.A file in an archive.
- See also:
- KArchive
Definition at line 490 of file karchive.h.
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) | |
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 Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Constructor & Destructor Documentation
|
Creates a new file entry.
Definition at line 472 of file karchive.cpp. |
Member Function Documentation
|
Extracts the file to the directory
Definition at line 514 of file karchive.cpp. |
|
Returns the data of the file. Call data() with care (only once per file), this data isn't cached.
Reimplemented in KZipFileEntry. Definition at line 492 of file karchive.cpp. |
|
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.
Reimplemented in KZipFileEntry. Definition at line 509 of file karchive.cpp. |
|
Checks whether this entry is a file.
Reimplemented from KArchiveEntry. Definition at line 548 of file karchive.h. |
|
Position of the data in the [uncompressed] archive.
Definition at line 482 of file karchive.cpp. |
|
Set size of data, usually after writing the file.
Definition at line 525 of file karchive.h. |
|
Size of the data.
Definition at line 487 of file karchive.cpp. |
The documentation for this class was generated from the following files: