class CopyJob |
|
CopyJob is used to move, copy or symlink files and directories.
Don't create the job directly, but use KIO.copy(),
KIO.move(), KIO.link() and friends.
See also KIO.copy() See also KIO.copyAs() See also KIO.move() See also KIO.moveAs() See also KIO.link() See also KIO.linkAs() |
|
|
|
Emitted when it is known which files / directories are going
to be created. Note that this may still change e.g. when
existing files with the same name are discovered.
job - the job that emitted this signal files - a list of items that are about to be created. |
|
The job is copying a file or directory.
Note: This signal is used for progress dialogs, it's not emitted for every file or directory (this would be too slow), but every 200ms. job - the job that emitted this signal src - the URL of the file or directory that is currently being copied dest - the destination of the current operation |
|
The job emits this signal when copying or moving a file or directory successfully finished.
This signal is mainly for the Undo feature.
If you simply want to know when a copy job is done, use result().
job - the job that emitted this signal from - the source URL to - the destination URL mtime - the modification time of the source file, hopefully set on the destination file too (when the kioslave supports it). directory - indicates whether a file or directory was successfully copied/moved. true for a directory, false for file renamed - indicates that the destination URL was created using a rename operation (i.e. fast directory moving). true if is has been renamed |
|
The job is copying or moving a symbolic link, that points to target.
The new link is created in to. The existing one is/was in from.
This signal is mainly for the Undo feature.
job - the job that emitted this signal from - the source URL target - the target to - the destination URL |
|
The job is creating the directory dir.
This signal is emitted for every directory being created. job - the job that emitted this signal dir - the directory that is currently being created |
|
Returns the destination URL. Returns the destination URL |
|
Reimplemented for internal reasons |
|
The job is creating a symbolic link.
Note: This signal is used for progress dialogs, it's not emitted for every file or directory (this would be too slow), but every 200ms. job - the job that emitted this signal target - the URL of the file or directory that is currently being linked to - the destination of the current operation |
|
The job is moving a file or directory.
Note: This signal is used for progress dialogs, it's not emitted for every file or directory (this would be too slow), but every 200ms. job - the job that emitted this signal from - the URL of the file or directory that is currently being moved to - the destination of the current operation |
|
Returns the mode of the operation (copy, move, or link), depending on whether KIO.copy(), KIO.move() or KIO.link() was called. |
|
Sends the number of processed directories.
job - the job that emitted this signal dirs - the number of processed dirs |
|
Sends the number of processed files.
job - the job that emitted this signal files - the number of processed files |
|
The user chose to rename from to to.
job - the job that emitted this signal from - the original name to - the new name |
|
By default the permissions of the copied files will be those of the source files.
But when copying "template" files to "new" files, people prefer the umask to apply, rather than the template's permissions. For that case, call setDefaultPermissions(true) |
|
|
Returns the list of source URLs. Returns the list of source URLs. |
|
Emitted when the toal number of direcotries is known.
job - the job that emitted this signal dirs - the total number of directories |
|
Emitted when the total number of files is known.
job - the job that emitted this signal files - the total number of files |
Defines the mode of the operation
Copy | - | - | ||
Move | - | - | ||
Link | - | - |