KIO::Slave Class Reference
#include <slave.h>
Inheritance diagram for KIO::Slave:

Detailed Description
Attention developers: If you change the implementation of KIO::Slave, do *not* use connection() or slaveconn but the respective KIO::Slave accessor methods.Otherwise classes derived from Slave might break. (LS)
Definition at line 44 of file slave.h.
Public Slots | |
| void | accept (KSocket *socket) |
| void | gotInput () |
| void | timeout () |
Signals | |
| void | slaveDied (KIO::Slave *slave) |
Public Member Functions | |
| Slave (KServerSocket *unixdomain, const QString &protocol, const QString &socketname) | |
| void | setPID (pid_t) |
| int | slave_pid () |
| void | kill () |
| bool | isAlive () |
| void | setHost (const QString &host, int port, const QString &user, const QString &passwd) |
| void | resetHost () |
| void | setConfig (const MetaData &config) |
| QString | protocol () |
| void | setProtocol (const QString &protocol) |
| QString | slaveProtocol () |
| QString | host () |
| int | port () |
| QString | user () |
| QString | passwd () |
| void | suspend () |
| void | resume () |
| bool | suspended () |
| void | send (int cmd, const QByteArray &data=QByteArray()) |
| void | hold (const KURL &url) |
| time_t | idleTime () |
| void | setIdle () |
| bool | isConnected () |
| void | setConnected (bool c) |
| KDE_DEPRECATED Connection * | connection () |
| void | ref () |
| void | deref () |
Static Public Member Functions | |
| static Slave * | createSlave (const QString &protocol, const KURL &url, int &error, QString &error_text) |
| static Slave * | holdSlave (const QString &protocol, const KURL &url) |
Protected Types | |
| enum | { VIRTUAL_SUSPEND = 0x200, VIRTUAL_RESUME, VIRTUAL_SEND, VIRTUAL_HOLD, VIRTUAL_SUSPENDED, VIRTUAL_SET_HOST, VIRTUAL_SET_CONFIG } |
Protected Member Functions | |
| Slave (bool derived, KServerSocket *unixdomain, const QString &protocol, const QString &socketname) | |
| void | unlinkSocket () |
| virtual void | virtual_hook (int id, void *data) |
Constructor & Destructor Documentation
|
||||||||||||||||||||
|
Use this constructor if you derive your own class from Slave
|
Member Function Documentation
|
|
|
|
||||||||||||||||||||
|
Creates a new slave.
|
|
|
Puts the kioslave associated with
Reimplemented in KIO::DataSlave. |
|
|
|
|
|
|
|
|
|
|
|
Force termination.
|
|
|
|
|
|
|
|
|
The protocol this slave handles.
|
|
|
Clear host info.
|
|
|
Resumes the operation of the attached kioslave.
Reimplemented in KIO::DataSlave. |
|
||||||||||||
|
Sends the given command to the kioslave.
Reimplemented in KIO::DataSlave. |
|
|
Configure slave.
Reimplemented in KIO::DataSlave. |
|
||||||||||||||||||||
|
Set host for url.
Reimplemented in KIO::DataSlave. |
|
|
Marks this slave as idle.
|
|
|
The actual protocol used to handle the request. This method will return a different protocol than the one obtained by using protocol() if a proxy-server is used for the given protocol. This usually means that this method will return "http" when the actuall request was to retrieve a resource from an "ftp" server by going through a proxy server.
|
|
|
Suspends the operation of the attached kioslave.
Reimplemented in KIO::DataSlave. |
|
|
Tells wether the kioslave is suspended.
Reimplemented in KIO::DataSlave. |
|
|
|
The documentation for this class was generated from the following files:

