KIO::SimpleJob Class Reference
A simple job (one url and one command). More...
#include <jobclasses.h>
Inheritance diagram for KIO::SimpleJob:

Public Slots | |
void | slotTotalSize (KIO::filesize_t data_size) |
virtual void | slotError (int, const QString &) |
Public Member Functions | |
SimpleJob (const KURL &url, int command, const QByteArray &packedArgs, bool showProgressInfo) | |
~SimpleJob () | |
const KURL & | url () const |
virtual void | kill (bool quietly=true) |
virtual void | putOnHold () |
virtual void | start (Slave *slave) |
void | slaveDone () |
Slave * | slave () const |
int | command () const |
Static Public Member Functions | |
static void | removeOnHold () |
Protected Slots | |
virtual void | slotFinished () |
void | slotWarning (const QString &) |
void | slotInfoMessage (const QString &s) |
void | slotConnected () |
void | slotProcessedSize (KIO::filesize_t data_size) |
void | slotSpeed (unsigned long bytes_per_second) |
virtual void | slotMetaData (const KIO::MetaData &_metaData) |
void | slotNeedProgressId () |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
void | storeSSLSessionFromJob (const KURL &m_redirectionURL) |
Protected Attributes | |
Slave * | m_slave |
QByteArray | m_packedArgs |
KURL | m_url |
KURL | m_subUrl |
int | m_command |
KIO::filesize_t | m_totalSize |
Detailed Description
A simple job (one url and one command).This is the base class for all jobs that are scheduled. Other jobs are high-level jobs (CopyJob, DeleteJob, FileCopyJob...) that manage subjobs but aren't scheduled directly.
Definition at line 487 of file jobclasses.h.
Constructor & Destructor Documentation
|
Creates a new simple job. You don't need to use this constructor, unless you create a new job that inherits from SimpleJob.
Definition at line 390 of file job.cpp. References KIO::Scheduler::doJob(), QValueList::fromLast(), KURL::hasSubURL(), KURL::isValid(), QValueList< KURL >::Iterator(), KURL::join(), KIO::Job::m_error, KIO::Job::m_errorText, m_subUrl, m_url, QValueList::remove(), QTimer::singleShot(), slotFinished(), KURL::split(), and KURL::url(). |
Member Function Documentation
|
Returns the SimpleJob's URL.
Definition at line 508 of file jobclasses.h. Referenced by KRun::init(), KRun::scanFile(), slotFinished(), KIO::ListJob::slotListEntries(), KIO::Scheduler::slotScheduleCoSlave(), KFileDialog::slotStatResult(), KIO::Scheduler::startJobDirect(), and KIO::Scheduler::startJobScheduled(). |
|
Abort job. This kills all subjobs and deletes the job.
Reimplemented from KIO::Job. Definition at line 417 of file job.cpp. References KIO::Scheduler::cancelJob(), KIO::Job::kill(), and m_slave. Referenced by putOnHold(). |
|
Abort job. Suspends slave to be reused by another job for the same request. Definition at line 424 of file job.cpp. References kill(), m_slave, m_url, and KIO::Scheduler::putSlaveOnHold(). Referenced by KRun::foundMimeType(). |
|
Discard suspended slave.
Definition at line 431 of file job.cpp. References KIO::Scheduler::removeSlaveOnHold(). |
|
Forward signal from the slave Can also be called by the parent job, when it knows the size.
Definition at line 592 of file job.cpp. References m_totalSize, and KIO::Job::totalSize(). Referenced by KIO::TransferJob::sendAsyncData(), slotProcessedSize(), KIO::ListJob::start(), and start(). |
|
Called when the slave marks the job as finished.
Reimplemented in KIO::DavJob, KIO::StatJob, KIO::MkdirJob, KIO::TransferJob, KIO::MultiGetJob, KIO::MimetypeJob, and KIO::ListJob. Definition at line 522 of file job.cpp. References KURL::directory(), KIO::Job::emitResult(), KDirNotify_stub::FileRenamed(), KDirNotify_stub::FilesAdded(), QPtrList::isEmpty(), m_command, KIO::Job::m_error, m_packedArgs, KURL::setPath(), slaveDone(), KIO::Job::subjobs, and url(). Referenced by SimpleJob(), slotError(), KIO::ListJob::slotFinished(), KIO::TransferJob::slotFinished(), KIO::StatJob::slotFinished(), KIO::MkdirJob::slotFinished(), and start(). |
|
Called on a slave's info message.
Definition at line 575 of file job.cpp. References KIO::Job::infoMessage(). Referenced by start(). |
|
Called on a slave's connected signal.
Definition at line 580 of file job.cpp. References KIO::Job::connected(). Referenced by start(). |
|
Forward signal from the slave.
Definition at line 601 of file job.cpp. References KIO::Job::emitPercent(), m_totalSize, KIO::Job::processedSize(), KIO::Job::setProcessedSize(), and slotTotalSize(). Referenced by KIO::ListJob::slotListEntries(), and start(). |
|
Forward signal from the slave.
Definition at line 612 of file job.cpp. References KIO::Job::emitSpeed(). Referenced by start(). |
|
MetaData from the slave is received.
Reimplemented in KIO::StatJob, KIO::TransferJob, and KIO::ListJob. Definition at line 618 of file job.cpp. References KIO::Job::m_incomingMetaData. Referenced by KIO::ListJob::slotMetaData(), KIO::TransferJob::slotMetaData(), KIO::StatJob::slotMetaData(), and start(). |
The documentation for this class was generated from the following files: