KIO::FileCopyJob Class Reference
The FileCopyJob copies data from one place to another. More...
#include <jobclasses.h>
Inheritance diagram for KIO::FileCopyJob:

Public Slots | |
void | slotStart () |
void | slotData (KIO::Job *, const QByteArray &data) |
void | slotDataReq (KIO::Job *, QByteArray &data) |
Public Methods | |
FileCopyJob (const KURL &src, const KURL &dest, int permissions, bool move, bool overwrite, bool resume, bool showProgressInfo) | |
~FileCopyJob () | |
void | setSourceSize64 (KIO::filesize_t size) |
void | setSourceSize (off_t size) KDE_DEPRECATED |
KURL | srcURL () const |
KURL | destURL () const |
Protected Slots | |
virtual void | slotResult (KIO::Job *job) |
void | slotProcessedSize (KIO::Job *job, KIO::filesize_t size) |
void | slotTotalSize (KIO::Job *job, KIO::filesize_t size) |
void | slotPercent (KIO::Job *job, unsigned long pct) |
void | slotCanResume (KIO::Job *job, KIO::filesize_t offset) |
Protected Methods | |
void | startCopyJob () |
void | startCopyJob (const KURL &slave_url) |
void | startDataPump () |
void | connectSubjob (SimpleJob *job) |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
KURL | m_src |
KURL | m_dest |
int | m_permissions |
bool | m_move:1 |
bool | m_overwrite:1 |
bool | m_resume:1 |
bool | m_canResume:1 |
bool | m_resumeAnswerSent:1 |
QByteArray | m_buffer |
SimpleJob * | m_moveJob |
SimpleJob * | m_copyJob |
TransferJob * | m_getJob |
TransferJob * | m_putJob |
KIO::filesize_t | m_totalSize |
Detailed Description
The FileCopyJob copies data from one place to another.
- See also:
- KIO::file_copy() , KIO::file_move()
Definition at line 1030 of file jobclasses.h.
Constructor & Destructor Documentation
|
Do not create a FileCopyJob directly. Use KIO::file_move() or KIO::file_copy() instead.
Definition at line 1314 of file job.cpp. References KIO::move(), Observer::self(), QTimer::singleShot(), Observer::slotCopying(), and Observer::slotMoving(). |
Member Function Documentation
|
If you know the size of the source file, call this method to inform this job. It will be displayed in the "resume" dialog.
|
|
|
|
Returns the source URL.
Definition at line 1066 of file jobclasses.h. |
|
Returns the destination URL.
Definition at line 1072 of file jobclasses.h. |
|
Called whenever a subjob finishes.
Reimplemented from KIO::Job. Definition at line 1579 of file job.cpp. References KIO::Job::addSubjob(), KIO::Job::emitResult(), KIO::Job::error(), KIO::Job::errorText(), KIO::file_delete(), KIO::SimpleJob::kill(), KIO::Job::removeSubjob(), and KIO::TransferJob::resume(). |
|
Forward signal from subjob.
Definition at line 1421 of file job.cpp. References KIO::Job::emitPercent(), KIO::Job::processedSize(), KIO::Job::setProcessedSize(), and slotTotalSize(). |
|
Forward signal from subjob.
Definition at line 1431 of file job.cpp. References KIO::Job::totalSize(). Referenced by slotProcessedSize(). |
|
Forward signal from subjob.
Definition at line 1437 of file job.cpp. References KIO::Job::percent(). |
|
Forward signal from subjob.
Definition at line 1465 of file job.cpp. References KIO::Job::addMetaData(), KIO::Job::addSubjob(), KProtocolManager::autoResume(), QObject::connect(), KIO::Job::emitResult(), KIO::get(), KIO::SimpleJob::kill(), KIO::SlaveInterface::offset(), Observer::open_RenameDlg(), KIO::Job::parentJob(), KURL::prettyURL(), KIO::RenameDlg_Result, KIO::TransferJob::resume(), Observer::self(), KIO::SlaveInterface::setOffset(), KIO::SimpleJob::slave(), KIO::SimpleJob::slotTotalSize(), and KIO::TransferJob::suspend(). |
The documentation for this class was generated from the following files: