SlaveInterface Class Reference
from PyKDE4.kio import *
Inherits: QObject
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 (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, SlaveInterfacePrivate dd, QObject parent=0) | |
__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
__init__ | ( | self, | ||
SlaveInterfacePrivate | dd, | |||
QObject | parent=0 | |||
) |
__init__ | ( | self ) |
calcSpeed | ( | self ) |
canResume | ( | self, | ||
KIO.filesize_t | a0 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("canResume(filesize_t)"), target_slot)
connected | ( | self ) |
- Signal syntax:
QObject.connect(source, SIGNAL("connected()"), target_slot)
KIO.Connection connection | ( | self ) |
data | ( | self, | ||
QByteArray | a0 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("data(const QByteArray&)"), target_slot)
dataReq | ( | self ) |
- Signal syntax:
QObject.connect(source, SIGNAL("dataReq()"), target_slot)
bool dispatch | ( | self ) |
bool dispatch | ( | self, | ||
int | _cmd, | |||
QByteArray | data | |||
) |
error | ( | self, | ||
int | a0, | |||
QString | a1 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("error(int, const QString&)"), target_slot)
errorPage | ( | self ) |
- Signal syntax:
QObject.connect(source, SIGNAL("errorPage()"), target_slot)
finished | ( | self ) |
- Signal syntax:
QObject.connect(source, SIGNAL("finished()"), target_slot)
infoMessage | ( | self, | ||
QString | a0 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("infoMessage(const QString&)"), target_slot)
listEntries | ( | self, | ||
KIO.UDSEntryList | a0 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("listEntries(const UDSEntryList&)"), target_slot)
metaData | ( | self, | ||
KIO.MetaData | a0 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("metaData(const MetaData&)"), target_slot)
mimeType | ( | self, | ||
QString | a0 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("mimeType(const QString&)"), target_slot)
needSubUrlData | ( | self ) |
- Signal syntax:
QObject.connect(source, SIGNAL("needSubUrlData()"), target_slot)
KIO.filesize_t offset | ( | self ) |
open | ( | self ) |
- Signal syntax:
QObject.connect(source, SIGNAL("open()"), target_slot)
position | ( | self, | ||
KIO.filesize_t | a0 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("position(filesize_t)"), target_slot)
processedSize | ( | self, | ||
KIO.filesize_t | a0 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("processedSize(filesize_t)"), target_slot)
redirection | ( | self, | ||
KUrl | a0 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("redirection(const KUrl&)"), target_slot)
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 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("slaveStatus(pid_t, const QByteArray&, const QString&, bool)"), target_slot)
speed | ( | self, | ||
long | a0 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("speed(unsigned long)"), target_slot)
statEntry | ( | self, | ||
KIO.UDSEntry | a0 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("statEntry(const UDSEntry&)"), target_slot)
totalSize | ( | self, | ||
KIO.filesize_t | a0 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("totalSize(filesize_t)"), target_slot)
warning | ( | self, | ||
QString | a0 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("warning(const QString&)"), target_slot)
written | ( | self, | ||
KIO.filesize_t | a0 | |||
) |
- Signal syntax:
QObject.connect(source, SIGNAL("written(filesize_t)"), target_slot)