kio Library API Documentation

KIO::FileCopyJob Class Reference

The FileCopyJob copies data from one place to another. More...

#include <jobclasses.h>

Inheritance diagram for KIO::FileCopyJob:

KIO::Job QObject List of all members.

Public Methods

void setSourceSize (off_t size)
 If you know the size of the source file, call this method to inform this job.


Protected Slots

virtual void slotResult (KIO::Job *job)
 Called whenever a subjob finishes.

void slotProcessedSize (KIO::Job *, KIO::filesize_t size)
 Forward signal from subjob.

void slotTotalSize (KIO::Job *, KIO::filesize_t size)
 Forward signal from subjob.

void slotPercent (KIO::Job *, unsigned long pct)
 Forward signal from subjob.

void slotCanResume (KIO::Job *, KIO::filesize_t offset)
 Forward signal from subjob.


Protected Methods

virtual void virtual_hook (int id, void *data)

Detailed Description

The FileCopyJob copies data from one place to another.

Definition at line 769 of file jobclasses.h.


Member Function Documentation

void FileCopyJob::setSourceSize (  off_t    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.

Definition at line 1257 of file job.cpp.

void FileCopyJob::slotResult (  KIO::Job *    job )  [protected, virtual, slot]
 

Called whenever a subjob finishes.

Reimplemented from KIO::Job.

Definition at line 1447 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().

void FileCopyJob::slotProcessedSize (  KIO::Job *   ,
KIO::filesize_t    size
)  [protected, slot]
 

Forward signal from subjob.

Definition at line 1290 of file job.cpp.

References KIO::Job::emitPercent(), KIO::Job::processedSize(), and slotTotalSize().

void FileCopyJob::slotTotalSize (  KIO::Job *   ,
KIO::filesize_t    size
)  [protected, slot]
 

Forward signal from subjob.

Definition at line 1299 of file job.cpp.

References KIO::Job::totalSize().

Referenced by slotProcessedSize().

void FileCopyJob::slotPercent (  KIO::Job *   ,
unsigned long    pct
)  [protected, slot]
 

Forward signal from subjob.

Definition at line 1305 of file job.cpp.

References KIO::Job::percent().

void FileCopyJob::slotCanResume (  KIO::Job *   ,
KIO::filesize_t    offset
)  [protected, slot]
 

Forward signal from subjob.

Definition at line 1333 of file job.cpp.

References KIO::Job::addMetaData(), KIO::Job::addSubjob(), KProtocolManager::autoResume(), QObject::connect(), KIO::Job::emitResult(), KIO::get(), KIO::SimpleJob::kill(), KIO::number(), KIO::SlaveInterface::offset(), Observer::open_RenameDlg(), KIO::Job::parentJob(), KURL::prettyURL(), 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:
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.3.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sat Feb 28 02:50:36 2004 by doxygen 1.2.18 written by Dimitri van Heesch, © 1997-2001