#include <jobclasses.h>
|
| | FileCopyJob (const KURL &src, const KURL &dest, int permissions, bool move, bool overwrite, bool resume, bool showProgressInfo) |
| |
| void | setSourceSize64 (TDEIO::filesize_t size) |
| |
| void | setModificationTime (time_t mtime) |
| |
| void | setSourceSize (off_t size) TDE_DEPRECATED |
| |
| KURL | srcURL () const |
| |
| KURL | destURL () const |
| |
| virtual void | kill (bool quietly=true) |
| |
| int | error () const |
| |
| int | progressId () const |
| |
| const TQString & | errorText () const |
| |
| TQString | errorString () const |
| |
| TQStringList | detailedErrorStrings (const KURL *reqUrl=0L, int method=-1) const |
| |
| void | showErrorDialog (TQWidget *parent=0L) |
| |
| void | setAutoErrorHandlingEnabled (bool enable, TQWidget *parentWidget=0) |
| |
| bool | isAutoErrorHandlingEnabled () const |
| |
| void | setAutoWarningHandlingEnabled (bool enable) |
| |
| bool | isAutoWarningHandlingEnabled () const |
| |
| void | setInteractive (bool enable) |
| |
| bool | isInteractive () const |
| |
| void | setWindow (TQWidget *window) |
| |
| TQWidget * | window () const |
| |
| void | updateUserTimestamp (unsigned long time) |
| |
| void | setParentJob (Job *parentJob) |
| |
| Job * | parentJob () const |
| |
| void | setMetaData (const TDEIO::MetaData &metaData) |
| |
| void | addMetaData (const TQString &key, const TQString &value) |
| |
| void | addMetaData (const TQMap< TQString, TQString > &values) |
| |
| void | mergeMetaData (const TQMap< TQString, TQString > &values) |
| |
| MetaData | outgoingMetaData () const |
| |
| MetaData | metaData () const |
| |
| TQString | queryMetaData (const TQString &key) |
| |
| TDEIO::filesize_t | getProcessedSize () |
| |
|
| enum | { EF_TransferJobAsync = (1 << 0)
, EF_TransferJobNeedData = (1 << 1)
, EF_TransferJobDataSent = (1 << 2)
, EF_ListJobUnrestricted = (1 << 3)
} |
| |
The FileCopyJob copies data from one place to another.
- See also
- TDEIO::file_copy()
-
TDEIO::file_move()
Definition at line 1249 of file jobclasses.h.
◆ FileCopyJob()
| FileCopyJob::FileCopyJob |
( |
const KURL & |
src, |
|
|
const KURL & |
dest, |
|
|
int |
permissions, |
|
|
bool |
move, |
|
|
bool |
overwrite, |
|
|
bool |
resume, |
|
|
bool |
showProgressInfo |
|
) |
| |
Do not create a FileCopyJob directly.
Use TDEIO::file_move() or TDEIO::file_copy() instead.
- Parameters
-
| src | the source URL |
| dest | the destination URL |
| permissions | the permissions of the resulting resource |
| move | true to move, false to copy |
| overwrite | true to allow overwriting, false otherwise |
| resume | true to resume an operation, false otherwise |
| showProgressInfo | true to show progress information to the user |
Definition at line 1620 of file job.cpp.
◆ ~FileCopyJob()
| FileCopyJob::~FileCopyJob |
( |
| ) |
|
◆ connectSubjob()
| void FileCopyJob::connectSubjob |
( |
SimpleJob * |
job | ) |
|
|
protected |
◆ destURL()
| KURL TDEIO::FileCopyJob::destURL |
( |
| ) |
const |
|
inline |
Returns the destination URL.
- Returns
- the destination URL
Definition at line 1300 of file jobclasses.h.
◆ mimetype
| void TDEIO::FileCopyJob::mimetype |
( |
TDEIO::Job * |
job, |
|
|
const TQString & |
type |
|
) |
| |
|
signal |
Mimetype determined during a file copy.
This is never emitted during a move, and might not be emitted during a copy, depending on the slave.
- Parameters
-
| job | the job that emitted this signal |
| type | the mime type |
- Since
- 3.5.7
◆ setModificationTime()
| void FileCopyJob::setModificationTime |
( |
time_t |
mtime | ) |
|
Sets the modification time of the file.
Note that this is ignored if a direct copy (SlaveBase::copy) can be done, in which case the mtime of the source is applied to the destination (if the protocol supports the concept).
Definition at line 1717 of file job.cpp.
◆ setSourceSize()
| void FileCopyJob::setSourceSize |
( |
off_t |
size | ) |
|
◆ setSourceSize64()
If you know the size of the source file, call this method
to inform this job. It will be displayed in the "resume" dialog.
- Parameters
-
| size | the size of the source file |
- Since
- 3.2
Definition at line 1710 of file job.cpp.
◆ slotCanResume
Forward signal from subjob
- Parameters
-
| job | the job that emitted this signal |
| offset | the offset to resume from |
Definition at line 1810 of file job.cpp.
◆ slotData
| void FileCopyJob::slotData |
( |
TDEIO::Job * |
, |
|
|
const TQByteArray & |
data |
|
) |
| |
|
slot |
◆ slotDataReq
| void FileCopyJob::slotDataReq |
( |
TDEIO::Job * |
, |
|
|
TQByteArray & |
data |
|
) |
| |
|
slot |
◆ slotMimetype
| void FileCopyJob::slotMimetype |
( |
TDEIO::Job * |
, |
|
|
const TQString & |
type |
|
) |
| |
|
slot |
◆ slotPercent
| void FileCopyJob::slotPercent |
( |
TDEIO::Job * |
job, |
|
|
unsigned long |
pct |
|
) |
| |
|
protectedslot |
Forward signal from subjob
- Parameters
-
| job | the job that emitted this signal |
| pct | the percentage |
Definition at line 1778 of file job.cpp.
◆ slotProcessedSize
Forward signal from subjob
- Parameters
-
| job | the job that emitted this signal |
| size | the processed size in bytes |
Definition at line 1759 of file job.cpp.
◆ slotResult
Called whenever a subjob finishes.
- Parameters
-
| job | the job that emitted this signal |
Definition at line 1944 of file job.cpp.
◆ slotStart
| void FileCopyJob::slotStart |
( |
| ) |
|
|
slot |
◆ slotTotalSize
Forward signal from subjob
- Parameters
-
| job | the job that emitted this signal |
| size | the total size |
Definition at line 1769 of file job.cpp.
◆ srcURL()
| KURL TDEIO::FileCopyJob::srcURL |
( |
| ) |
const |
|
inline |
Returns the source URL.
- Returns
- the source URL
Definition at line 1294 of file jobclasses.h.
◆ startCopyJob() [1/2]
| void FileCopyJob::startCopyJob |
( |
| ) |
|
|
protected |
◆ startCopyJob() [2/2]
| void FileCopyJob::startCopyJob |
( |
const KURL & |
slave_url | ) |
|
|
protected |
◆ startDataPump()
| void FileCopyJob::startDataPump |
( |
| ) |
|
|
protected |
◆ startRenameJob()
| void FileCopyJob::startRenameJob |
( |
const KURL & |
slave_url | ) |
|
|
protected |
◆ virtual_hook()
| void FileCopyJob::virtual_hook |
( |
int |
id, |
|
|
void * |
data |
|
) |
| |
|
protectedvirtual |
◆ m_buffer
| TQByteArray TDEIO::FileCopyJob::m_buffer |
|
protected |
◆ m_canResume
| bool TDEIO::FileCopyJob::m_canResume |
|
protected |
◆ m_copyJob
◆ m_dest
| KURL TDEIO::FileCopyJob::m_dest |
|
protected |
◆ m_getJob
◆ m_move
| bool TDEIO::FileCopyJob::m_move |
|
protected |
◆ m_moveJob
◆ m_overwrite
| bool TDEIO::FileCopyJob::m_overwrite |
|
protected |
◆ m_permissions
| int TDEIO::FileCopyJob::m_permissions |
|
protected |
◆ m_putJob
◆ m_resume
| bool TDEIO::FileCopyJob::m_resume |
|
protected |
◆ m_resumeAnswerSent
| bool TDEIO::FileCopyJob::m_resumeAnswerSent |
|
protected |
◆ m_src
| KURL TDEIO::FileCopyJob::m_src |
|
protected |
◆ m_totalSize
The documentation for this class was generated from the following files: