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