• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KIO

  • KIO
  • SimpleJob
Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Member Functions

KIO::SimpleJob Class Reference

A simple job (one url and one command). More...

#include <jobclasses.h>

Inheritance diagram for KIO::SimpleJob:
Inheritance graph
[legend]

List of all members.

Public Slots

void slotError (int, const QString &)

Public Member Functions

 ~SimpleJob ()
bool isRedirectionHandlingEnabled () const
virtual void putOnHold ()
void setRedirectionHandlingEnabled (bool handle)
const KUrl & url () const

Static Public Member Functions

static void removeOnHold ()

Protected Slots

virtual void slotFinished ()
virtual void slotMetaData (const KIO::MetaData &_metaData)
virtual void slotWarning (const QString &)

Protected Member Functions

 SimpleJob (SimpleJobPrivate &dd)
virtual bool doKill ()
virtual bool doResume ()
virtual bool doSuspend ()
void storeSSLSessionFromJob (const KUrl &m_redirectionURL)

Detailed Description

A simple job (one url and one command).

This is the base class for all jobs that are scheduled. Other jobs are high-level jobs (CopyJob, DeleteJob, FileCopyJob...) that manage subjobs but aren't scheduled directly.

Definition at line 323 of file jobclasses.h.


Constructor & Destructor Documentation

SimpleJob::~SimpleJob ( )

Definition at line 405 of file job.cpp.

SimpleJob::SimpleJob ( SimpleJobPrivate &  dd) [protected]

Creates a new simple job.

You don't need to use this constructor, unless you create a new job that inherits from SimpleJob.

Definition at line 322 of file job.cpp.


Member Function Documentation

bool SimpleJob::doKill ( ) [protected, virtual]

Abort job.

This kills all subjobs and deletes the job.

Reimplemented from KIO::Job.

Definition at line 343 of file job.cpp.

bool SimpleJob::doResume ( ) [protected, virtual]

Resume this job.

See also:
suspend

Reimplemented from KIO::Job.

Reimplemented in KIO::TransferJob.

Definition at line 363 of file job.cpp.

bool SimpleJob::doSuspend ( ) [protected, virtual]

Suspend this job.

See also:
resume

Reimplemented from KIO::Job.

Definition at line 355 of file job.cpp.

bool SimpleJob::isRedirectionHandlingEnabled ( ) const

Returns true when redirections are handled internally, the default.

Since:
4.4

Definition at line 394 of file job.cpp.

void SimpleJob::putOnHold ( ) [virtual]

Abort job.

Suspends slave to be reused by another job for the same request.

Definition at line 376 of file job.cpp.

void SimpleJob::removeOnHold ( ) [static]

Discard suspended slave.

Definition at line 389 of file job.cpp.

void SimpleJob::setRedirectionHandlingEnabled ( bool  handle)

Set handle to false to prevent the internal handling of redirections.

When this flag is set, redirection requests are simply forwarded to the caller instead of being handled internally.

Since:
4.4

Definition at line 399 of file job.cpp.

void SimpleJob::slotError ( int  err,
const QString &  errorText 
) [slot]

Called on a slave's error. Made public for the scheduler.

Definition at line 529 of file job.cpp.

void SimpleJob::slotFinished ( ) [protected, virtual, slot]

Called when the slave marks the job as finished.

Reimplemented in KIO::DavJob, KIO::MkdirJob, KIO::StatJob, KIO::TransferJob, KIO::MultiGetJob, KIO::MimetypeJob, and KIO::ListJob.

Definition at line 498 of file job.cpp.

void SimpleJob::slotMetaData ( const KIO::MetaData &  _metaData) [protected, virtual, slot]

MetaData from the slave is received.

Parameters:
_metaDatathe meta data
See also:
metaData()

Reimplemented in KIO::StatJob, KIO::TransferJob, and KIO::ListJob.

Definition at line 591 of file job.cpp.

void SimpleJob::slotWarning ( const QString &  errorText) [protected, virtual, slot]

Called on a slave's warning.

Definition at line 540 of file job.cpp.

void SimpleJob::storeSSLSessionFromJob ( const KUrl &  m_redirectionURL) [protected]

Definition at line 604 of file job.cpp.

const KUrl & SimpleJob::url ( ) const

Returns the SimpleJob's URL.

Returns:
the url

Definition at line 371 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
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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