class FileJob |
|
The file-job is an asynchronious version of normal file handling.
It allows block-wise reading and writing, and allows seeking. Results are returned through signals.
Should always be created using KIO.open(KUrl&) |
|
|
|
Close
Closes the file-slave |
|
File is closed and will accept no more commands
job - the job that emitted this signal |
|
Data from the slave has arrived.
job - the job that emitted this signal data - data received from the slave. |
|
Mimetype determined.
job - the job that emitted this signal type - the mime type |
|
File is open, metadata has been determined and the
file-slave is ready to receive commands.
job - the job that emitted this signal |
|
The file has reached this position. Emitted after seek.
job - the job that emitted this signal offset - the new position |
|
Read block
The slave emits the data through data(). size - the requested amount of data |
|
Signals the file is a redirection.
Follow this url manually to reach data
job - the job that emitted this signal url - the new URL |
|
Seek
The slave emits position() offset - the position from start to go to |
|
Size
Returns the file size |
|
Write block
data - the data to write |
|
Bytes written to the file.
job - the job that emitted this signal written - bytes written. |