|
| ||||||||||||||
| |
[protected]
| ~ |
[protected virtual]
| bool |
[virtual]
Opens the tar file/data for reading or writing.
Parameters:
| mode | may be IO_ReadOnly or IO_WriteOnly |
| void |
[virtual]
Closes the tar file/data.
| bool |
[const]
Returns: true if the file is opened
| void |
If a tar file is opened for writing then you can add new directories using this function. KTar won't write one directory twice.
| void |
If a tar file is opened for writing then you can add a new file using this function. If the file name is for example "mydir/test1" then the directory "mydir" is automatically appended first if that did not happen yet.
| const KTarDirectory* |
[const]
If a tar file is opened for reading, then the contents of the file can be accessed via this function.
| int |
[protected pure virtual]
Read len data into buffer - reimplemented
Returns: length read
| void |
[protected pure virtual]
Write len data from buffer - reimplemented
| int |
[protected pure virtual]
Returns: the current position - reimplemented
| KTarDirectory * |
[protected]
Ensure path exists, create otherwise. This handles tar files missing directory entries, like mico-2.3.0.tar.gz :)
| void |
[protected]
Fills buffer for writing a file as required by the tar format
Has to be called LAST, since it does the checksum
(normally, only the name has to be filled in before)
Parameters:
| mode | is expected to be 6 chars long, [uname and gname 31]. |
| KTarDirectory* |
[protected]
| bool |
[protected]
| QStringList |
[protected]
| char |
[protected]