org.kde.koala

Class CopyJob

public class CopyJob extends Job

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 CopyJobSignals for signals emitted by CopyJob

See Also: CopyJob CopyJob CopyJob CopyJob CopyJob CopyJob

UNKNOWN: CopyJob is used to move, copy or symlink files and directories.

Constructor Summary
protected CopyJob(Class dummy)
Method Summary
StringclassName()
KURLdestURL()
Returns the destination URL.
QMetaObjectmetaObject()
voidsetDefaultPermissions(boolean b)
By default the permissions of the copied files will be those of the source files.
voidsetInteractive(boolean b)
When an error happens while copying/moving a file, the user will be presented with a dialog for skipping the file that can't be copied/moved.
ArrayListsrcURLs()
Returns the list of source URLs.

Constructor Detail

CopyJob

protected CopyJob(Class dummy)

Method Detail

className

public String className()

destURL

public KURL destURL()
Returns the destination URL.

Returns: the destination URL

UNKNOWN: Returns the destination URL.

metaObject

public QMetaObject metaObject()

setDefaultPermissions

public void setDefaultPermissions(boolean b)
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) TODO KDE4: consider adding this as boolean to copy/copyAs?

UNKNOWN: By default the permissions of the copied files will be those of the source files.

setInteractive

public void setInteractive(boolean b)
When an error happens while copying/moving a file, the user will be presented with a dialog for skipping the file that can't be copied/moved. Or if the error is that the destination file already exists, the standard rename dialog is shown. If the program doesn't want CopyJob to show dialogs, but to simply fail on error, call setInteractive( false ). KDE4: remove, already in Job

UNKNOWN: When an error happens while copying/moving a file, the user will be presented with a dialog for skipping the file that can't be copied/moved.

srcURLs

public ArrayList srcURLs()
Returns the list of source URLs.

Returns: the list of source URLs.

UNKNOWN: Returns the list of source URLs.