KIO::CopyJob Class Reference
#include <jobclasses.h>
Inheritance diagram for KIO::CopyJob:

Detailed Description
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.
Definition at line 1508 of file jobclasses.h.
Public Types | |
enum | CopyMode { Copy, Move, Link } |
Signals | |
void | totalFiles (KIO::Job *job, unsigned long files) |
void | totalDirs (KIO::Job *job, unsigned long dirs) |
void | aboutToCreate (KIO::Job *job, const QValueList< KIO::CopyInfo > &files) |
void | processedFiles (KIO::Job *job, unsigned long files) |
void | processedDirs (KIO::Job *job, unsigned long dirs) |
void | copying (KIO::Job *job, const KURL &from, const KURL &to) |
void | linking (KIO::Job *job, const QString &target, const KURL &to) |
void | moving (KIO::Job *job, const KURL &from, const KURL &to) |
void | creatingDir (KIO::Job *job, const KURL &dir) |
void | renamed (KIO::Job *job, const KURL &from, const KURL &to) |
void | copyingDone (KIO::Job *job, const KURL &from, const KURL &to, bool directory, bool renamed) |
void | copyingLinkDone (KIO::Job *job, const KURL &from, const QString &target, const KURL &to) |
Public Member Functions | |
CopyJob (const KURL::List &src, const KURL &dest, CopyMode mode, bool asMethod, bool showProgressInfo) | |
KURL::List | srcURLs () const |
KURL | destURL () const |
void | setDefaultPermissions (bool b) |
void | setInteractive (bool b) |
Protected Slots | |
void | slotStart () |
void | slotEntries (KIO::Job *, const KIO::UDSEntryList &list) |
virtual void | slotResult (KIO::Job *job) |
void | slotProcessedSize (KIO::Job *, KIO::filesize_t data_size) |
void | slotTotalSize (KIO::Job *, KIO::filesize_t size) |
void | slotReport () |
Protected Member Functions | |
void | statCurrentSrc () |
void | statNextSrc () |
void | slotResultStating (KIO::Job *job) |
void | startListing (const KURL &src) |
void | slotResultCreatingDirs (KIO::Job *job) |
void | slotResultConflictCreatingDirs (KIO::Job *job) |
void | createNextDir () |
void | slotResultCopyingFiles (KIO::Job *job) |
void | slotResultConflictCopyingFiles (KIO::Job *job) |
void | copyNextFile () |
void | slotResultDeletingDirs (KIO::Job *job) |
void | deleteNextDir () |
void | skip (const KURL &sourceURL) |
void | slotResultRenaming (KIO::Job *job) |
void | setNextDirAttribute () |
virtual void | virtual_hook (int id, void *data) |
Friends | |
class | CopyJobPrivate |
Member Enumeration Documentation
|
Defines the mode of the operation.
Definition at line 1515 of file jobclasses.h. |
Constructor & Destructor Documentation
|
Do not create a CopyJob directly. Use KIO::copy(), KIO::move(), KIO::link() and friends instead.
|
Member Function Documentation
|
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.
|
|
The job is copying a file or directory.
|
|
The job emits this signal when copying or moving a file or directory successfully finished. This signal is mainly for the Undo feature.
|
|
The job is copying or moving a symbolic link, that points to target.
The new link is created in
|
|
The job is creating the directory
|
|
Returns the destination URL.
Definition at line 1548 of file jobclasses.h. |
|
The job is creating a symbolic link.
|
|
The job is moving a file or directory.
|
|
Sends the number of processed directories.
|
|
Sends the number of processed files.
|
|
The user chose to rename
|
|
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 bool to copy/copyAs?
|
|
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
Reimplemented from KIO::Job. |
|
Forward signal from subjob.
|
|
Called whenever a subjob finishes. Default implementation checks for errors and propagates to parent job, then calls removeSubjob. Override if you don't want subjobs errors to be propagated.
Reimplemented from KIO::Job. |
|
Forward signal from subjob.
|
|
Returns the list of source URLs.
Definition at line 1542 of file jobclasses.h. |
|
Emitted when the toal number of direcotries is known.
|
|
Emitted when the total number of files is known.
|
The documentation for this class was generated from the following files: