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

void  addMetaData (const QMap<QString,QString> &values)

Add key/value pairs 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)

bool  isErrorPage ()

[const]

Returns: true if we got an (HTML) error page from the server instead of what we asked for. This currently only happens with HTTP urls. Call this from your slot connected to result().

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

[signal]

Data from the slave has arrived.

Parameters:

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

[signal]

Request for data.

Parameters:

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  canResume ( KIO::Job *, unsigned long offset )

[signal]

Emitted if the "put" job found an existing partial file (in which case offset is the size of that file) and emitted by the "get" job if it supports resuming to the given offset - in this case offset is unused)

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]

void  slotErrorPage ()

[protected slot]

void  slotCanResume ( unsigned long offset )

[protected slot]

bool m_suspended

[protected]

bool m_errorPage

[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: baudens@ke.mandrakesoft.com on Thu Oct 26 17:36:34 2000, using kdoc 2.0a40.