FileCopyJob Class Reference
from PyKDE4.kio import *
Inherits: KIO.Job → KCompositeJob → KJob → QObject
Namespace: KIO
Detailed Description
The FileCopyJob copies data from one place to another.
- See also:
- KIO.file_copy()
- See also:
- KIO.file_move()
Signals | |
mimetype (KIO.Job job, QString type) | |
Methods | |
__init__ (self) | |
KUrl | destUrl (self) |
bool | doResume (self) |
bool | doSuspend (self) |
setModificationTime (self, QDateTime mtime) | |
setSourceSize (self, long size) | |
slotResult (self, KJob job) | |
KUrl | srcUrl (self) |
Signal Documentation
Mimetype determined during a file copy. This is never emitted during a move, and might not be emitted during a file copy, depending on the slave. But when a get and a put are being used (which is the common case), this signal forwards the mimetype information from the get job.
- Parameters:
-
job the job that emitted this signal type the mime type
- Signal syntax:
QObject.connect(source, SIGNAL("mimetype(KIO::Job*, const QString&)"), target_slot)
Method Documentation
__init__ | ( | self ) |
KUrl destUrl | ( | self ) |
Returns the destination URL.
- Returns:
- the destination URL
bool doResume | ( | self ) |
bool doSuspend | ( | self ) |
setModificationTime | ( | self, | ||
QDateTime | 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).
setSourceSize | ( | self, | ||
long | size | |||
) |
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
slotResult | ( | self, | ||
KJob | job | |||
) |
Called whenever a subjob finishes.
- Parameters:
-
job the job that emitted this signal
KUrl srcUrl | ( | self ) |
Returns the source URL.
- Returns:
- the source URL