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 | 
| 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 | 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. 
 
 Definition at line 1870 of file job.cpp. References QObject::connect(), QTimer::singleShot(), slotStart(), totalDirs(), and totalFiles(). | 
Member Function Documentation
| 
 | 
| Returns the list of source URLs. 
 
 Definition at line 1284 of file jobclasses.h. | 
| 
 | 
| Returns the destination URL. 
 
 Definition at line 1290 of file jobclasses.h. | 
| 
 | ||||||||||||
| Emitted when the total number of files is known. 
 
 Referenced by CopyJob(). | 
| 
 | ||||||||||||
| Emitted when the toal number of direcotries is known. 
 
 Referenced by CopyJob(). | 
| 
 | ||||||||||||
| 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. 
 
 Referenced by slotResult(). | 
| 
 | ||||||||||||||||||||
| The job is copying or moving a symbolic link, that points to target. 
The new link is created in  
 | 
| 
 | 
| 
 Definition at line 1890 of file job.cpp. References KIO::Job::addSubjob(), QObject::connect(), QTimer::start(), and KIO::stat(). Referenced by CopyJob(). | 
| 
 | 
| 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. Definition at line 3007 of file job.cpp. References KURL::addPath(), KIO::Job::addSubjob(), copyingDone(), KURL::directory(), KIO::Job::emitResult(), endl(), KIO::Job::error(), QFile::exists(), KURL::fileName(), QPtrList< Job >::isEmpty(), KURL::isLocalFile(), kdDebug(), kdError(), QString::lower(), KTempFile::name(), Observer::open_RenameDlg(), KURL::path(), KURL::prettyURL(), QPtrList< Job >::remove(), KIO::RenameDlg_Result, Observer::self(), QTimer::start(), KIO::stat(), KTempFile::status(), QTimer::stop(), KTempFile::unlink(), and KURL::url(). | 
| 
 | ||||||||||||
| Forward signal from subjob. 
 Definition at line 2963 of file job.cpp. References KIO::Job::emitPercent(), KIO::filesize_t, KIO::Job::processedSize(), KIO::Job::setProcessedSize(), and KIO::Job::totalSize(). | 
| 
 | ||||||||||||
| Forward signal from subjob. 
 
 Definition at line 2980 of file job.cpp. References KIO::filesize_t, and KIO::Job::totalSize(). | 
The documentation for this class was generated from the following files:

