• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

TDEIO::StoredTransferJob

TDEIO::StoredTransferJob Class Reference

StoredTransferJob is a TransferJob (for downloading or uploading data) that also stores a TQByteArray with the data, making it simpler to use than the standard TransferJob. More...

#include <jobclasses.h>

Inheritance diagram for TDEIO::StoredTransferJob:
TDEIO::TransferJob TDEIO::SimpleJob TDEIO::Job TQObject

List of all members.

Public Member Functions

 StoredTransferJob (const KURL &url, int command, const TQByteArray &packedArgs, const TQByteArray &_staticData, bool showProgressInfo)
void setData (const TQByteArray &arr)
TQByteArray data () const

Detailed Description

StoredTransferJob is a TransferJob (for downloading or uploading data) that also stores a TQByteArray with the data, making it simpler to use than the standard TransferJob.

For TDEIO::storedGet it puts the data into the member TQByteArray, 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 TQByteArray can potentially require a lot of memory.

For TDEIO::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 TQByteArray can potentially require a lot of memory.

Since:
3.3

Definition at line 1075 of file jobclasses.h.


Constructor & Destructor Documentation

StoredTransferJob::StoredTransferJob ( const KURL &  url,
int  command,
const TQByteArray &  packedArgs,
const TQByteArray &  _staticData,
bool  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

Definition at line 1425 of file job.cpp.


Member Function Documentation

TQByteArray TDEIO::StoredTransferJob::data (  )  const [inline]

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.

Definition at line 1104 of file jobclasses.h.

void StoredTransferJob::setData ( const TQByteArray &  arr  ) 

Set data to be uploaded.

This is for put jobs. Automatically called by TDEIO::storedPut(const TQByteArray &, ...), do not call this yourself.

Definition at line 1438 of file job.cpp.


The documentation for this class was generated from the following files:
  • jobclasses.h
  • job.cpp

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.6.3
This website is maintained by Timothy Pearson.