#include <jobclasses.h>
Public Slots | |
| void | slotTotalSize (TDEIO::filesize_t data_size) |
| virtual void | slotError (int, const TQString &) |
Public Member Functions | |
| SimpleJob (const KURL &url, int command, const TQByteArray &packedArgs, bool showProgressInfo) | |
| 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 TQString &) |
| void | slotInfoMessage (const TQString &s) |
| void | slotConnected () |
| void | slotProcessedSize (TDEIO::filesize_t data_size) |
| void | slotSpeed (unsigned long speed) |
| virtual void | slotMetaData (const TDEIO::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 |
| TQByteArray | m_packedArgs |
| KURL | m_url |
| KURL | m_subUrl |
| int | m_command |
| TDEIO::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 528 of file jobclasses.h.
Constructor & Destructor Documentation
| SimpleJob::SimpleJob | ( | const KURL & | url, |
| int | command, | ||
| const TQByteArray & | packedArgs, | ||
| bool | showProgressInfo | ||
| ) |
Creates a new simple job.
You don't need to use this constructor, unless you create a new job that inherits from SimpleJob.
- Parameters:
-
url the url of the job command the command of the job packedArgs the arguments showProgressInfo true to show progress information to the user
Member Function Documentation
| void SimpleJob::kill | ( | bool | quietly = true | ) | [virtual] |
Abort job.
This kills all subjobs and deletes the job.
- Parameters:
-
quietly if true, Job will emit signal result Should only be set to false when the user kills the job (from tdeio_uiserver), not when you want to abort a job.
Reimplemented from TDEIO::Job.
| void SimpleJob::putOnHold | ( | ) | [virtual] |
| void SimpleJob::removeOnHold | ( | ) | [static] |
| void SimpleJob::slotConnected | ( | ) | [protected, slot] |
| void SimpleJob::slotFinished | ( | ) | [protected, virtual, slot] |
Called when the slave marks the job as finished.
Reimplemented in TDEIO::LocalURLJob, TDEIO::ListJob, TDEIO::MimetypeJob, TDEIO::MultiGetJob, TDEIO::TransferJob, TDEIO::MkdirJob, TDEIO::StatJob, and TDEIO::DavJob.
| void SimpleJob::slotInfoMessage | ( | const TQString & | s | ) | [protected, slot] |
| void SimpleJob::slotMetaData | ( | const TDEIO::MetaData & | _metaData | ) | [protected, virtual, slot] |
MetaData from the slave is received.
- Parameters:
-
_metaData the meta data
- See also:
- metaData()
Reimplemented in TDEIO::ListJob, TDEIO::TransferJob, and TDEIO::StatJob.
| void SimpleJob::slotProcessedSize | ( | TDEIO::filesize_t | data_size | ) | [protected, slot] |
Forward signal from the slave.
- Parameters:
-
data_size the processed size in bytes
- See also:
- processedSize()
| void SimpleJob::slotSpeed | ( | unsigned long | speed | ) | [protected, slot] |
| void SimpleJob::slotTotalSize | ( | TDEIO::filesize_t | data_size | ) | [slot] |
| const KURL& TDEIO::SimpleJob::url | ( | ) | const [inline] |
The documentation for this class was generated from the following files:
Trinity API Reference