class TransferJob

The tranfer job pumps data into and/or out of a Slave. More...

Full nameKIO::TransferJob
Definition#include <jobclasses.h>
InheritsKIO::SimpleJob
Inherited byMimetypeJob
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Signals

Protected Slots

Protected Members


Detailed Description

The tranfer job pumps data into and/or out of a Slave. Data is sent to the slave on request of the slave (dataReq). If data coming from the slave can not be handled, the reading of data from the slave should be suspended.

 TransferJob (const KURL& url, int command, const QByteArray &packedArgs, const QByteArray &_staticData, bool showProgressInfo)

void  start (Slave *slave)

[virtual]

Reimplemented from SimpleJob.

void  slotResult ( KIO::Job *job )

[virtual]

Called when m_subJob finishes.

Reimplemented from Job.

void  suspend ()

Flow control. Suspend data processing from the slave.

void  resume ()

Flow control. Resume data processing from the slave.

void  setMetaData ( const KIO::MetaData &)

Set meta data to be sent to the slave.

void  addMetaData (const QString &key, const QString &value)

Add key/value pair to the meta data that is sent to the slave

MetaData  metaData ()

Get meta data received from the slave. (Valid when first data is received and/or slave is finished)

QString  queryMetaData (const QString &key)

Query meta data received from the slave. (Valid when first data is received and/or slave is finished)

void  data ( KIO::Job *, const QByteArray &data)

[signal]

Data from the slave has arrived.

Parameters:
datadata received from the slave End of data (EOD) has been reached if data.size() == 0

void  dataReq ( KIO::Job *, QByteArray &data)

[signal]

Request for data.

Parameters:
databuffer to fill with data to send to the slave. An empty buffer indicates end of data. (EOD)

void  redirection ( KIO::Job *, const KURL &url )

[signal]

Signals a redirection Use to update the URL shown to the user The redirection itself is handled internally

void  mimetype ( KIO::Job *, const QString &type )

[signal]

Mimetype determined

void  slotRedirection ( const KURL &url)

[protected virtual slot]

void  slotFinished ()

[protected virtual slot]

Reimplemented from SimpleJob.

void  slotData ( const QByteArray &data)

[protected virtual slot]

void  slotDataReq ()

[protected virtual slot]

void  slotMimetype ( const QString &mimetype )

[protected virtual slot]

void  slotMetaData ( const KIO::MetaData &_metaData)

[protected virtual slot]

void  slotNeedSubURLData ()

[protected virtual slot]

void  slotSubURLData (KIO::Job*, const QByteArray &)

[protected virtual slot]

bool m_suspended

[protected]

QByteArray staticData

[protected]

KURL m_redirectionURL

[protected]

KURL::List m_redirectionList

[protected]

QString m_mimetype

[protected]

MetaData m_outgoingMetaData

[protected]

MetaData m_incomingMetaData

[protected]

TransferJob * m_subJob

[protected]


Generated by: prospector@porky.devel.redhat.com on Thu Aug 24 05:36:06 2000, using kdoc 2.0a36.