org.kde.koala
Class StoredTransferJob
public
class
StoredTransferJob
extends TransferJob
StoredTransferJob is a TransferJob (for downloading or uploading data) that
also stores a byte[] with the data, making it simpler to use than the
standard TransferJob.
For KIO.storedGet it puts the data into the member byte[], so the user
of this class can get hold of the whole data at once by calling data()
when the result signal is emitted.
You should only use StoredTransferJob to download data if you cannot
process the data by chunks while it's being downloaded, since storing
everything in a byte[] can potentially require a lot of memory.
For KIO.storedPut the user of this class simply provides the bytearray from
the start, and the job takes care of uploading it.
You should only use StoredTransferJob to upload data if you cannot
provide the in chunks while it's being uploaded, since storing
everything in a byte[] can potentially require a lot of memory.
UNKNOWN: StoredTransferJob is a TransferJob (for downloading or uploading data) that also stores a QByteArray with the data, making it simpler to use than the standard TransferJob.
protected StoredTransferJob(Class dummy)
public StoredTransferJob(
KURL url, int command, byte[] packedArgs, byte[] _staticData, boolean showProgressInfo)
Do not create a StoredTransferJob. Use storedGet() or storedPut()
instead.
Parameters: url the url to get or put command the command to issue packedArgs the arguments _staticData additional data to transmit (e.g. in a HTTP Post) showProgressInfo true to show progress information to the user
UNKNOWN: Do not create a StoredTransferJob.
public String className()
public byte[] data()
Get hold of the downloaded data. This is for get jobs.
You're supposed to call this only from the slot connected to the result() signal.
UNKNOWN: Get hold of the downloaded data.
public QMetaObject metaObject()
public void setData(byte[] arr)
Set data to be uploaded. This is for put jobs.
Automatically called by KIO.storedPut(const byte[] &, ...),
do not call this yourself.
UNKNOWN: Set data to be uploaded.