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 (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
- 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)
| error |
( |
int |
a0, |
|
|
QString |
a1 |
|
) |
|
|
|
- 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)
| infoMessage |
( |
QString |
a0 |
|
) |
|
|
|
- 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)
| processedSize |
( |
long |
a0 |
|
) |
|
|
|
- Signal syntax:
QObject.connect(source, SIGNAL("processedSize(KIO::filesize_t)"), target_slot)
- 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)
- 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)
Method Documentation
| 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 |
|
) |
|
|
|
| requestNetwork |
( |
self, |
|
|
|
QString |
a0, |
|
|
QString |
a1 |
|
) |
|
|
|
| sendResumeAnswer |
( |
self, |
|
|
|
bool |
resume |
|
) |
|
|
|
| setOffset |
( |
self, |
|
|
|
long |
offset |
|
) |
|
|
|