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

SlaveInterface Class Reference

from PyKDE4.kio import *

Inherits: QObject
Subclasses: KIO.Slave
Namespace: KIO

Detailed Description

There are two classes that specifies the protocol between application ( KIO.Job) and kioslave. SlaveInterface is the class to use on the application end, SlaveBase is the one to use on the slave end.

A call to foo() results in a call to slotFoo() on the other end.


Signals

 canResume (long a0)
 connected ()
 data (QByteArray a0)
 dataReq ()
 error (int a0, QString a1)
 errorPage ()
 finished ()
 infoMessage (QString a0)
 listEntries ([KIO.UDSEntry] a0)
 metaData (KIO.MetaData a0)
 mimeType (QString a0)
 needSubUrlData ()
 open ()
 position (long a0)
 processedSize (long a0)
 redirection (KUrl a0)
 slaveStatus (int a0, QByteArray a1, QString a2, bool a3)
 speed (long a0)
 statEntry (KIO.UDSEntry a0)
 totalSize (long a0)
 warning (QString a0)
 written (long a0)

Methods

 __init__ (self)
 calcSpeed (self)
KIO.Connection connection (self)
bool dispatch (self)
bool dispatch (self, int _cmd, QByteArray data)
 dropNetwork (self, QString a0, QString a1)
 messageBox (self, int type, QString text, QString caption, QString buttonYes, QString buttonNo)
 messageBox (self, int type, QString text, QString caption, QString buttonYes, QString buttonNo, QString dontAskAgainName)
long offset (self)
 requestNetwork (self, QString a0, QString a1)
 sendResumeAnswer (self, bool resume)
 setConnection (self, KIO.Connection connection)
 setOffset (self, long offset)

Signal Documentation

canResume ( long  a0
)
Signal syntax:
QObject.connect(source, SIGNAL("canResume(KIO::filesize_t)"), target_slot)
connected (   )
Signal syntax:
QObject.connect(source, SIGNAL("connected()"), target_slot)
data ( QByteArray  a0
)
Signal syntax:
QObject.connect(source, SIGNAL("data(const QByteArray&)"), target_slot)
dataReq (   )
Signal syntax:
QObject.connect(source, SIGNAL("dataReq()"), target_slot)
error ( int  a0,
QString  a1
)
Signal syntax:
QObject.connect(source, SIGNAL("error(int, const QString&)"), target_slot)
errorPage (   )
Signal syntax:
QObject.connect(source, SIGNAL("errorPage()"), target_slot)
finished (   )
Signal syntax:
QObject.connect(source, SIGNAL("finished()"), target_slot)
infoMessage ( QString  a0
)
Signal syntax:
QObject.connect(source, SIGNAL("infoMessage(const QString&)"), target_slot)
listEntries ( [KIO.UDSEntry]  a0
)
Signal syntax:
QObject.connect(source, SIGNAL("listEntries(const KIO::UDSEntryList&)"), target_slot)
metaData ( KIO.MetaData  a0
)
Signal syntax:
QObject.connect(source, SIGNAL("metaData(const KIO::MetaData&)"), target_slot)
mimeType ( QString  a0
)
Signal syntax:
QObject.connect(source, SIGNAL("mimeType(const QString&)"), target_slot)
needSubUrlData (   )
Signal syntax:
QObject.connect(source, SIGNAL("needSubUrlData()"), target_slot)
open (   )
Signal syntax:
QObject.connect(source, SIGNAL("open()"), target_slot)
position ( long  a0
)
Signal syntax:
QObject.connect(source, SIGNAL("position(KIO::filesize_t)"), target_slot)
processedSize ( long  a0
)
Signal syntax:
QObject.connect(source, SIGNAL("processedSize(KIO::filesize_t)"), target_slot)
redirection ( KUrl  a0
)
Signal syntax:
QObject.connect(source, SIGNAL("redirection(const KUrl&)"), target_slot)
slaveStatus ( int  a0,
QByteArray  a1,
QString  a2,
bool  a3
)
Signal syntax:
QObject.connect(source, SIGNAL("slaveStatus(pid_t, const QByteArray&, const QString&, bool)"), target_slot)
speed ( long  a0
)
Signal syntax:
QObject.connect(source, SIGNAL("speed(unsigned long)"), target_slot)
statEntry ( KIO.UDSEntry  a0
)
Signal syntax:
QObject.connect(source, SIGNAL("statEntry(const KIO::UDSEntry&)"), target_slot)
totalSize ( long  a0
)
Signal syntax:
QObject.connect(source, SIGNAL("totalSize(KIO::filesize_t)"), target_slot)
warning ( QString  a0
)
Signal syntax:
QObject.connect(source, SIGNAL("warning(const QString&)"), target_slot)
written ( long  a0
)
Signal syntax:
QObject.connect(source, SIGNAL("written(KIO::filesize_t)"), target_slot)

Method Documentation

__init__ (   self )
calcSpeed (   self )
KIO.Connection connection (   self )
bool dispatch (   self )
bool dispatch (  self,
int  _cmd,
QByteArray  data
)
dropNetwork (  self,
QString  a0,
QString  a1
)
messageBox (  self,
int  type,
QString  text,
QString  caption,
QString  buttonYes,
QString  buttonNo
)
messageBox (  self,
int  type,
QString  text,
QString  caption,
QString  buttonYes,
QString  buttonNo,
QString  dontAskAgainName
)
long offset (   self )
requestNetwork (  self,
QString  a0,
QString  a1
)
sendResumeAnswer (  self,
bool  resume
)
setConnection (  self,
KIO.Connection  connection
)
setOffset (  self,
long  offset
)
  • 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