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

Detailed Description
Definition at line 46 of file slave.h.
Public Slots | |
| void | accept () |
| void | gotInput () |
| void | timeout () |
Signals | |
| void | slaveDied (KIO::Slave *slave) |
Public Member Functions | |
| Slave (const QString &protocol, QObject *parent=0) | |
| virtual | ~Slave () |
| void | setPID (pid_t) |
| int | slave_pid () |
| void | kill () |
| bool | isAlive () |
| virtual void | setHost (const QString &host, quint16 port, const QString &user, const QString &passwd) |
| void | resetHost () |
| virtual void | setConfig (const MetaData &config) |
| QString | protocol () |
| void | setProtocol (const QString &protocol) |
| QString | slaveProtocol () |
| QString | host () |
| quint16 | port () |
| QString | user () |
| QString | passwd () |
| virtual void | suspend () |
| virtual void | resume () |
| virtual bool | suspended () |
| virtual void | send (int cmd, const QByteArray &arr=QByteArray()) |
| virtual void | hold (const KUrl &url) |
| time_t | idleTime () |
| void | setIdle () |
| bool | isConnected () |
| void | setConnected (bool c) |
| 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) |
Constructor & Destructor Documentation
Member Function Documentation
| bool Slave::isAlive | ( | ) |
| void Slave::setHost | ( | const QString & | host, | |
| quint16 | port, | |||
| const QString & | user, | |||
| const QString & | passwd | |||
| ) | [virtual] |
Set host for url.
- Parameters:
-
host to connect to. port to connect to. user to login as passwd to login with
Reimplemented in KIO::DataSlave.
| void Slave::setConfig | ( | const MetaData & | config | ) | [virtual] |
| QString Slave::protocol | ( | ) |
| QString Slave::slaveProtocol | ( | ) |
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.
- Returns:
- the actual protocol (io-slave) that handled the request
| QString Slave::host | ( | ) |
| quint16 Slave::port | ( | ) |
| QString Slave::user | ( | ) |
| void Slave::suspend | ( | ) | [virtual] |
| void Slave::resume | ( | ) | [virtual] |
| bool Slave::suspended | ( | ) | [virtual] |
Tells wether the kioslave is suspended.
- Returns:
- true if the kioslave is suspended.
Reimplemented in KIO::DataSlave.
| void Slave::send | ( | int | cmd, | |
| const QByteArray & | arr = QByteArray() | |||
| ) | [virtual] |
Sends the given command to the kioslave.
- Parameters:
-
cmd command id arr byte array containing data
Reimplemented in KIO::DataSlave.
| void Slave::hold | ( | const KUrl & | url | ) | [virtual] |
| time_t Slave::idleTime | ( | ) |
| void KIO::Slave::slaveDied | ( | KIO::Slave * | slave | ) | [signal] |
The documentation for this class was generated from the following files:
KDE 4.0 API Reference