class SimpleJob

# class SimpleJob | A simple job (one url and one command). More...
Full name | `KIO::SimpleJob`
Definition | `#include <jobclasses.h>`
Inherits | KIO::Job [public ]
Inherited by | DavJob, ListJob, MimetypeJob, MultiGetJob, StatJob, TransferJob
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- 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

#### Public Slots

- void slotTotalSize ( KIO::filesize_t data_size )
- virtual void slotError ( int , const QString & )

#### Public Static Methods

- static void removeOnHold ()

#### Protected Methods

- virtual void virtual_hook ( int id, void* data )

#### Protected Slots

- virtual void slotFinished ( )
- void slotWarning ( const QString & )
- void slotInfoMessage ( const QString & )
- 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 Members

- 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.

SimpleJob (const KURL& url, int command, const QByteArray &packedArgs, bool showProgressInfo) | ### SimpleJob

~SimpleJob () | ### ~SimpleJob

const KURL& url () | ### url

[const]

void kill ( bool quietly = true ) | ### kill

[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 kio_uiserver), not when you want to abort a job.

Reimplemented from Job.

void putOnHold () | ### putOnHold

[virtual]

Abort job. Suspends slave to be reused by another job for the same request.

void removeOnHold () | ### removeOnHold

[static]

Discard suspended slave.

void start ( Slave *slave ) | ### start

[virtual]

Called by the scheduler when a slave gets to work on this job.

void slaveDone () | ### slaveDone

Called to detach a slave from a job.

Slave * slave () | ### slave

[const]

Slave in use by this job.

int command () | ### command

[const]

void slotTotalSize ( KIO::filesize_t data_size ) | ### slotTotalSize

[slot]

Forward signal from the slave Can also be called by the parent job, when it knows the size

void slotFinished ( ) | ### slotFinished

[protected slots virtual slot]

Called when the slave marks the job as finished.

void slotWarning ( const QString & ) | ### slotWarning

[protected slots slot]

Called on a slave's warning.

void slotInfoMessage ( const QString & ) | ### slotInfoMessage

[protected slots slot]

Called on a slave's info message.

Reimplemented from Job.

void slotConnected () | ### slotConnected

[protected slots slot]

Called on a slave's connected signal.

void slotProcessedSize ( KIO::filesize_t data_size ) | ### slotProcessedSize

[protected slots slot]

Forward signal from the slave

void slotSpeed ( unsigned long bytes_per_second ) | ### slotSpeed

[protected slots slot]

Forward signal from the slave

Reimplemented from Job.

void slotMetaData ( const KIO::MetaData &_metaData) | ### slotMetaData

[protected slots virtual slot]

MetaData from the slave is received.

void slotError ( int , const QString & ) | ### slotError

[virtual slot]

Called on a slave's error. Made public for the scheduler.

void slotNeedProgressId () | ### slotNeedProgressId

[protected slots slot]

Slave * m_slave | ### m_slave

[protected]

QByteArray m_packedArgs | ### m_packedArgs

[protected]

KURL m_url | ### m_url

[protected]

KURL m_subUrl | ### m_subUrl

[protected]

int m_command | ### m_command

[protected]

KIO::filesize_t m_totalSize | ### m_totalSize

[protected]

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

Reimplemented from Job.

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:57 2003, using kdoc 2.0a54.