KIO
#include <filejob.h>

Signals | |
| void | close (KIO::Job *job) |
| void | data (KIO::Job *job, const QByteArray &data) |
| void | mimetype (KIO::Job *job, const QString &type) |
| void | open (KIO::Job *job) |
| void | position (KIO::Job *job, KIO::filesize_t offset) |
| void | redirection (KIO::Job *job, const KUrl &url) |
| void | written (KIO::Job *job, KIO::filesize_t written) |
Signals inherited from KIO::Job | |
| void | canceled (KJob *job) |
| void | connected (KIO::Job *job) |
Signals inherited from KCompositeJob | |
| void | description (KJob *job, const QString &title, const QPair< QString, QString > &field1=qMakePair(QString(), QString()), const QPair< QString, QString > &field2=qMakePair(QString(), QString())) |
| void | finished (KJob *job) |
| void | infoMessage (KJob *job, const QString &plain, const QString &rich=QString()) |
| void | percent (KJob *job, unsigned long percent) |
| void | processedAmount (KJob *job, KJob::Unit unit, qulonglong amount) |
| void | processedSize (KJob *job, qulonglong size) |
| void | result (KJob *job) |
| void | resumed (KJob *job) |
| void | speed (KJob *job, unsigned long speed) |
| void | suspended (KJob *job) |
| void | totalAmount (KJob *job, KJob::Unit unit, qulonglong amount) |
| void | totalSize (KJob *job, qulonglong size) |
| void | warning (KJob *job, const QString &plain, const QString &rich=QString()) |
Public Member Functions | |
| ~FileJob () | |
| void | close () |
| void | read (KIO::filesize_t size) |
| void | seek (KIO::filesize_t offset) |
| KIO::filesize_t | size () |
| void | write (const QByteArray &data) |
Public Member Functions inherited from KIO::SimpleJob | |
| ~SimpleJob () | |
| bool | isRedirectionHandlingEnabled () const |
| virtual void | putOnHold () |
| void | setRedirectionHandlingEnabled (bool handle) |
| const KUrl & | url () const |
Public Member Functions inherited from KIO::Job | |
| virtual | ~Job () |
| void | addMetaData (const QString &key, const QString &value) |
| void | addMetaData (const QMap< QString, QString > &values) |
| QStringList | detailedErrorStrings (const KUrl *reqUrl=0L, int method=-1) const |
| QString | errorString () const |
| bool | isInteractive () const |
| void | mergeMetaData (const QMap< QString, QString > &values) |
| MetaData | metaData () const |
| MetaData | outgoingMetaData () const |
| Job * | parentJob () const |
| QString | queryMetaData (const QString &key) |
| void | setMetaData (const KIO::MetaData &metaData) |
| void | setParentJob (Job *parentJob) |
| void | showErrorDialog (QWidget *parent=0) |
| void | start () |
| JobUiDelegate * | ui () const |
Public Member Functions inherited from KCompositeJob | |
| KCompositeJob (QObject *parent=0) | |
| virtual | ~KCompositeJob () |
| virtual | ~KJob () |
| Capabilities | capabilities () const |
| int | error () const |
| QString | errorText () const |
| bool | exec () |
| bool | isAutoDelete () const |
| bool | isSuspended () const |
| KJob (QObject *parent=0) | |
| unsigned long | percent () const |
| qulonglong | processedAmount (Unit unit) const |
| void | setAutoDelete (bool autodelete) |
| void | setUiDelegate (KJobUiDelegate *delegate) |
| qulonglong | totalAmount (Unit unit) const |
| KJobUiDelegate * | uiDelegate () const |
Protected Member Functions | |
| FileJob (FileJobPrivate &dd) | |
Protected Member Functions inherited from KIO::SimpleJob | |
| SimpleJob (SimpleJobPrivate &dd) | |
| virtual bool | doKill () |
| virtual bool | doResume () |
| virtual bool | doSuspend () |
| void | storeSSLSessionFromJob (const KUrl &m_redirectionURL) |
Protected Member Functions inherited from KIO::Job | |
| Job () | |
| Job (JobPrivate &dd) | |
| virtual bool | addSubjob (KJob *job) |
| virtual bool | removeSubjob (KJob *job) |
Protected Member Functions inherited from KCompositeJob | |
| KCompositeJob (KCompositeJobPrivate &dd, QObject *parent) | |
| void | clearSubjobs () |
| void | emitPercent (qulonglong processedAmount, qulonglong totalAmount) |
| void | emitResult () |
| void | emitSpeed (unsigned long speed) |
| bool | hasSubjobs () |
| KJob (KJobPrivate &dd, QObject *parent) | |
| void | setCapabilities (Capabilities capabilities) |
| void | setError (int errorCode) |
| void | setErrorText (const QString &errorText) |
| void | setPercent (unsigned long percentage) |
| void | setProcessedAmount (Unit unit, qulonglong amount) |
| void | setTotalAmount (Unit unit, qulonglong amount) |
| const QList< KJob * > & | subjobs () const |
Additional Inherited Members | |
Public Types inherited from KCompositeJob | |
| enum | Capability |
| enum | KillVerbosity |
| enum | Unit |
Public Slots inherited from KIO::SimpleJob | |
| void | slotError (int, const QString &) |
Public Slots inherited from KCompositeJob | |
| bool | kill (KillVerbosity verbosity=Quietly) |
| bool | resume () |
| bool | suspend () |
Static Public Member Functions inherited from KIO::SimpleJob | |
| static void | removeOnHold () |
Protected Slots inherited from KIO::SimpleJob | |
| virtual void | slotMetaData (const KIO::MetaData &_metaData) |
| virtual void | slotWarning (const QString &) |
Protected Slots inherited from KCompositeJob | |
| virtual void | slotInfoMessage (KJob *job, const QString &plain, const QString &rich) |
| virtual void | slotResult (KJob *job) |
Protected Attributes inherited from KCompositeJob | |
| KJobPrivate *const | d_ptr |
Detailed Description
The file-job is an asynchronious version of normal file handling.
It allows block-wise reading and writing, and allows seeking. Results are returned through signals.
Should always be created using KIO::open(KUrl&)
Constructor & Destructor Documentation
| FileJob::~FileJob | ( | ) |
Definition at line 78 of file filejob.cpp.
|
protected |
Definition at line 73 of file filejob.cpp.
Member Function Documentation
| void FileJob::close | ( | ) |
|
signal |
File is closed and will accept no more commands.
- Parameters
-
job the job that emitted this signal
|
signal |
Data from the slave has arrived.
- Parameters
-
job the job that emitted this signal data data received from the slave.
Mimetype determined.
- Parameters
-
job the job that emitted this signal type the mime type
|
signal |
File is open, metadata has been determined and the file-slave is ready to receive commands.
- Parameters
-
job the job that emitted this signal
|
signal |
The file has reached this position.
Emitted after seek.
- Parameters
-
job the job that emitted this signal offset the new position
| void FileJob::read | ( | KIO::filesize_t | size | ) |
Read block.
The slave emits the data through data().
- Parameters
-
size the requested amount of data
Definition at line 82 of file filejob.cpp.
Signals the file is a redirection.
Follow this url manually to reach data
- Parameters
-
job the job that emitted this signal url the new URL
| void FileJob::seek | ( | KIO::filesize_t | offset | ) |
Seek.
The slave emits position()
- Parameters
-
offset the position from start to go to
Definition at line 100 of file filejob.cpp.
| KIO::filesize_t FileJob::size | ( | ) |
| void FileJob::write | ( | const QByteArray & | data | ) |
|
signal |
Bytes written to the file.
- Parameters
-
job the job that emitted this signal written bytes written.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Signals inherited from