KIO::CopyJob Class Reference
CopyJob is used to move, copy or symlink files and directories. More...
#include <jobclasses.h>
Inheritance diagram for KIO::CopyJob:

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) |
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) |
virtual void | virtual_hook (int id, void *data) |
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 1252 of file jobclasses.h.
Member Enumeration Documentation
|
Defines the mode of the operation.
Definition at line 1259 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
|
Returns the list of source URLs.
Definition at line 1286 of file jobclasses.h. |
|
Returns the destination URL.
Definition at line 1292 of file jobclasses.h. |
|
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?
Definition at line 3248 of file job.cpp. References setDefaultPermissions(). Referenced by setDefaultPermissions(). |
|
Emitted when the total number of files is known.
|
|
Emitted when the toal number of direcotries is known.
|
|
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.
|
|
Sends the number of processed files.
|
|
Sends the number of processed directories.
|
|
The job is copying a file or directory.
|
|
The job is creating a symbolic link.
|
|
The job is moving a file or directory.
|
|
The job is creating the directory
|
|
The user chose to rename
|
|
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
|
|
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.
|
|
Forward signal from subjob.
|
The documentation for this class was generated from the following files: