org.kde.koala
Interface CopyJobSignals


public interface CopyJobSignals


Method Summary
 void copying(Job job, KURL from, KURL to)
          The job is copying a file or directory.
 void copyingDone(Job job, KURL from, KURL to, boolean directory, boolean renamed)
          The job emits this signal when copying or moving a file or directory successfully finished.
 void copyingLinkDone(Job job, KURL from, java.lang.String target, KURL to)
          The job is copying or moving a symbolic link, that points to target.
 void creatingDir(Job job, KURL dir)
          The job is creating the directory dir.
 void linking(Job job, java.lang.String target, KURL to)
          The job is creating a symbolic link.
 void moving(Job job, KURL from, KURL to)
          The job is moving a file or directory.
 void processedDirs(Job job, long dirs)
          Sends the number of processed directories.
 void processedFiles(Job job, long files)
          Sends the number of processed files.
 void renamed(Job job, KURL from, KURL to)
          The user chose to rename from to to.
 void totalDirs(Job job, long dirs)
          Emitted when the toal number of direcotries is known.
 void totalFiles(Job job, long files)
          Emitted when the total number of files is known.
 

Method Detail

totalFiles

void totalFiles(Job job,
                long files)
Emitted when the total number of files is known.

Parameters:
job - the job that emitted this signal
files - the total number of files

totalDirs

void totalDirs(Job job,
               long dirs)
Emitted when the toal number of direcotries is known.

Parameters:
job - the job that emitted this signal
dirs - the total number of directories

processedFiles

void processedFiles(Job job,
                    long files)
Sends the number of processed files.

Parameters:
job - the job that emitted this signal
files - the number of processed files

processedDirs

void processedDirs(Job job,
                   long dirs)
Sends the number of processed directories.

Parameters:
job - the job that emitted this signal
dirs - the number of processed dirs

copying

void copying(Job job,
             KURL from,
             KURL to)
The job is copying a file or directory.

Parameters:
job - the job that emitted this signal
from - the URl of the file or directory that is currently being copied
to - the destination of the current operation

linking

void linking(Job job,
             java.lang.String target,
             KURL to)
The job is creating a symbolic link.

Parameters:
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

moving

void moving(Job job,
            KURL from,
            KURL to)
The job is moving a file or directory.

Parameters:
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

creatingDir

void creatingDir(Job job,
                 KURL dir)
The job is creating the directory dir.

Parameters:
job - the job that emitted this signal
dir - the directory that is currently being created

renamed

void renamed(Job job,
             KURL from,
             KURL to)
The user chose to rename from to to.

Parameters:
job - the job that emitted this signal
from - the original name
to - the new name

copyingDone

void copyingDone(Job job,
                 KURL from,
                 KURL to,
                 boolean directory,
                 boolean renamed)
The job emits this signal when copying or moving a file or directory successfully finished. This signal is mainly for the Undo feature.

Parameters:
job - the job that emitted this signal
from - the source URL
to - the destination URL
directory - indicates whether a file or directory was successfully copied/moved. true for a directoy, 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

copyingLinkDone

void copyingLinkDone(Job job,
                     KURL from,
                     java.lang.String target,
                     KURL to)
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.

Parameters:
job - the job that emitted this signal
from - the source URL
target - the target
to - the destination URL