#include <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 | deref () |
| virtual void | hold (const KUrl &url) |
| QString | host () |
| time_t | idleTime () |
| bool | isAlive () |
| bool | isConnected () |
| KIO::SimpleJob * | job () const |
| void | kill () |
| QString | passwd () |
| quint16 | port () |
| QString | protocol () |
| void | ref () |
| void | resetHost () |
| virtual void | resume () |
| virtual void | send (int cmd, const QByteArray &arr=QByteArray()) |
| virtual void | setConfig (const MetaData &config) |
| void | setConnected (bool c) |
| virtual void | setHost (const QString &host, quint16 port, const QString &user, const QString &passwd) |
| void | setIdle () |
| void | setJob (KIO::SimpleJob *job) |
| void | setPID (pid_t) |
| void | setProtocol (const QString &protocol) |
| int | slave_pid () |
| QString | slaveProtocol () |
| virtual void | suspend () |
| virtual bool | suspended () |
| QString | user () |
Static Public Member Functions | |
| static bool | checkForHeldSlave (const KUrl &url) |
| static Slave * | createSlave (const QString &protocol, const KUrl &url, int &error, QString &error_text) |
| static Slave * | holdSlave (const QString &protocol, const KUrl &url) |
Detailed Description
Constructor & Destructor Documentation
| Slave::Slave | ( | const QString & | protocol, |
| QObject * | parent = 0 |
||
| ) | [explicit] |
| Slave::~Slave | ( | ) | [virtual] |
Member Function Documentation
| void Slave::accept | ( | ) | [slot] |
| bool Slave::checkForHeldSlave | ( | const KUrl & | url | ) | [static] |
| Slave * Slave::createSlave | ( | const QString & | protocol, |
| const KUrl & | url, | ||
| int & | error, | ||
| QString & | error_text | ||
| ) | [static] |
| void Slave::deref | ( | ) |
| void Slave::gotInput | ( | ) | [slot] |
| void Slave::hold | ( | const KUrl & | url | ) | [virtual] |
Puts the kioslave associated with url at halt, and return it to klauncher, in order to let another application connect to it and finish the job.
This is for the krunner case: type a URL in krunner, it will start downloading to find the mimetype (KRun), and then hold the slave, publish the held slave using, this method, and the final application can continue the same download by requesting the same URL.
Reimplemented in KIO::DataSlave.
| Slave * Slave::holdSlave | ( | const QString & | protocol, |
| const KUrl & | url | ||
| ) | [static] |
| QString Slave::host | ( | ) |
| time_t Slave::idleTime | ( | ) |
| bool Slave::isAlive | ( | ) |
| KIO::SimpleJob * Slave::job | ( | ) | const |
| void Slave::kill | ( | ) |
| QString Slave::passwd | ( | ) |
| quint16 Slave::port | ( | ) |
| void Slave::ref | ( | ) |
| void Slave::resetHost | ( | ) |
| void Slave::resume | ( | ) | [virtual] |
Resumes the operation of the attached kioslave.
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::setConfig | ( | const MetaData & | config | ) | [virtual] |
| void Slave::setConnected | ( | bool | c | ) |
| 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::setIdle | ( | ) |
| void Slave::setJob | ( | KIO::SimpleJob * | job | ) |
| void Slave::setPID | ( | pid_t | pid | ) |
| void Slave::setProtocol | ( | const QString & | protocol | ) |
| int Slave::slave_pid | ( | ) |
| void KIO::Slave::slaveDied | ( | KIO::Slave * | slave | ) | [signal] |
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
| void Slave::suspend | ( | ) | [virtual] |
Suspends the operation of the attached kioslave.
Reimplemented in KIO::DataSlave.
| bool Slave::suspended | ( | ) | [virtual] |
Tells whether the kioslave is suspended.
- Returns:
- true if the kioslave is suspended.
Reimplemented in KIO::DataSlave.
| void Slave::timeout | ( | ) | [slot] |
| QString Slave::user | ( | ) |
The documentation for this class was generated from the following files:
KDE 4.8 API Reference