• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

KIO::StoredTransferJob

KIO::StoredTransferJob Class Reference

#include <jobclasses.h>

Inheritance diagram for KIO::StoredTransferJob:

Inheritance graph
[legend]

List of all members.


Detailed Description

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.

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

Definition at line 680 of file jobclasses.h.


Public Member Functions

QByteArray data () const
void setData (const QByteArray &arr)
 ~StoredTransferJob ()

Protected Member Functions

 StoredTransferJob (StoredTransferJobPrivate &dd)

Constructor & Destructor Documentation

StoredTransferJob::~StoredTransferJob (  ) 

Definition at line 1454 of file job.cpp.

StoredTransferJob::StoredTransferJob ( StoredTransferJobPrivate &  dd  )  [protected]

Definition at line 1445 of file job.cpp.


Member Function Documentation

QByteArray StoredTransferJob::data (  )  const

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 1466 of file job.cpp.

void StoredTransferJob::setData ( const QByteArray &  arr  ) 

Set data to be uploaded.

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

Definition at line 1458 of file job.cpp.


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

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal