SlaveInterface Class Reference
from PyKDE4.kio import *
Inherits: QObject
Subclasses: KIO.Slave
Namespace: KIO.SlaveInterface
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 (, KIO.filesize_t a0) |
| connected () |
| data (, QByteArray a0) |
| dataReq () |
| error (, int a0, QString a1) |
| errorPage () |
| finished () |
| infoMessage (, QString a0) |
| listEntries (, KIO.UDSEntryList a0) |
| metaData (, KIO.MetaData a0) |
| mimeType (, QString a0) |
| needSubUrlData () |
| open () |
| position (, KIO.filesize_t a0) |
| processedSize (, KIO.filesize_t a0) |
| redirection (, KUrl a0) |
| slaveStatus (, pid_t a0, QByteArray a1, QString a2, bool a3) |
| speed (, long a0) |
| statEntry (, KIO.UDSEntry a0) |
| totalSize (, KIO.filesize_t a0) |
| warning (, QString a0) |
| written (, KIO.filesize_t a0) |
Methods |
| __init__ (self) |
| calcSpeed (self) |
| canResume (self, KIO.filesize_t a0) |
| connected (self) |
KIO.Connection | connection (self) |
| data (self, QByteArray a0) |
| dataReq (self) |
bool | dispatch (self) |
bool | dispatch (self, int _cmd, QByteArray data) |
| dropNetwork (self, QString a0, QString a1) |
| error (self, int a0, QString a1) |
| errorPage (self) |
| finished (self) |
| infoMessage (self, QString a0) |
| listEntries (self, KIO.UDSEntryList a0) |
| 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) |
| metaData (self, KIO.MetaData a0) |
| mimeType (self, QString a0) |
| needSubUrlData (self) |
KIO.filesize_t | offset (self) |
| open (self) |
| position (self, KIO.filesize_t a0) |
| processedSize (self, KIO.filesize_t a0) |
| redirection (self, KUrl a0) |
| requestNetwork (self, QString a0, QString a1) |
| sendResumeAnswer (self, bool resume) |
| setConnection (self, KIO.Connection connection) |
| setOffset (self, KIO.filesize_t offset) |
| slaveStatus (self, pid_t a0, QByteArray a1, QString a2, bool a3) |
| speed (self, long a0) |
| statEntry (self, KIO.UDSEntry a0) |
| totalSize (self, KIO.filesize_t a0) |
| warning (self, QString a0) |
| written (self, KIO.filesize_t a0) |
Method Documentation
- Signal syntax:
QObject.connect(source, SIGNAL("canResume(KIO::filesize_t)"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("connected()"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("data(const QByteArray&)"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("dataReq()"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("error(int, const QString&)"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("errorPage()"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("finished()"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("infoMessage(const QString&)"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("listEntries(const KIO::UDSEntryList&)"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("metaData(const KIO::MetaData&)"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("mimeType(const QString&)"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("needSubUrlData()"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("open()"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("position(KIO::filesize_t)"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("processedSize(KIO::filesize_t)"), target_slot)
redirection |
( |
self, |
|
|
|
KUrl |
a0 |
|
) |
|
|
|
- Signal syntax:
QObject.connect(source, SIGNAL("redirection(const KUrl&)"), target_slot)
sendResumeAnswer |
( |
self, |
|
|
|
bool |
resume |
|
) |
|
|
|
- Signal syntax:
QObject.connect(source, SIGNAL("slaveStatus(pid_t, const QByteArray&, const QString&, bool)"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("speed(unsigned long)"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("statEntry(const KIO::UDSEntry&)"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("totalSize(KIO::filesize_t)"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("warning(const QString&)"), target_slot)
- Signal syntax:
QObject.connect(source, SIGNAL("written(KIO::filesize_t)"), target_slot)