KDE 4.5 PyKDE API Reference
  • KDE's Python API
  • Overview
  • PyKDE Home
  • Sitemap
  • Contact Us
 

SimpleJob Class Reference

from PyKDE4.kio import *

Inherits: KIO.Job → KCompositeJob → KJob → QObject
Subclasses: KIO.FileJob, KIO.StatJob, KIO.TransferJob, KIO.ListJob
Namespace: KIO

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.


Methods

 __init__ (self)
bool doKill (self)
bool doResume (self)
bool doSuspend (self)
bool isRedirectionHandlingEnabled (self)
 putOnHold (self)
 setRedirectionHandlingEnabled (self, bool handle)
 slotError (self, int a0, QString a1)
 slotFinished (self)
 slotMetaData (self, KIO.MetaData _metaData)
 slotWarning (self, QString a0)
 storeSSLSessionFromJob (self, KUrl m_redirectionURL)
KUrl url (self)

Static Methods

 removeOnHold ()

Method Documentation

__init__ (   self )
bool doKill (   self )

Abort job. This kills all subjobs and deletes the job.

bool doResume (   self )

Resume this job

See also:
suspend

bool doSuspend (   self )

Suspend this job

See also:
resume

bool isRedirectionHandlingEnabled (   self )

Returns true when redirections are handled internally, the default.

Since:
4.4

putOnHold (   self )

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

setRedirectionHandlingEnabled (  self,
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

slotError (  self,
int  a0,
QString  a1
)

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

slotFinished (   self )

Called when the slave marks the job as finished.

slotMetaData (  self,
KIO.MetaData  _metaData
)

MetaData from the slave is received.

Parameters:
_metaData  the meta data

See also:
metaData()

slotWarning (  self,
QString  a0
)

Internal:
Called on a slave's warning.

storeSSLSessionFromJob (  self,
KUrl  m_redirectionURL
)
KUrl url (   self )

Returns the SimpleJob's URL

Returns:
the url


Static Method Documentation

removeOnHold (   )

Discard suspended slave.

  • Full Index

Modules

  • akonadi
  • dnssd
  • kdecore
  • kdeui
  • khtml
  • kio
  • knewstuff
  • kparts
  • kutils
  • nepomuk
  • phonon
  • plasma
  • polkitqt
  • solid
  • soprano
This documentation is maintained by Simon Edwards.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal