KIO::Slave Class Reference
Inheritance diagram for KIO::Slave:

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) | |
virtual | ~Slave () |
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 &arr=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) |
Classes | |
struct | HoldParams |
struct | SendParams |
struct | SetConfigParams |
struct | SetHostParams |
struct | SuspendedParams |
Detailed Description
Definition at line 43 of file slave.h.
Constructor & Destructor Documentation
|
Use this constructor if you derive your own class from Slave
Definition at line 160 of file slave.cpp. References accept(), and QObject::connect(). Referenced by createSlave(), and holdSlave(). |
Member Function Documentation
|
Force termination.
Definition at line 317 of file slave.cpp. References endl(), and kdDebug(). Referenced by timeout(), and KIO::SimpleJob::~SimpleJob(). |
|
Definition at line 75 of file slave.h. Referenced by KIO::Scheduler::slotSlaveDied(). |
|
Set host for url.
Reimplemented in KIO::DataSlave. Definition at line 328 of file slave.cpp. References KIO::Connection::send(). Referenced by KIO::Scheduler::setupSlave(), and KIO::Scheduler::slotScheduleCoSlave(). |
|
Clear host info.
Definition at line 342 of file slave.cpp. Referenced by KIO::Scheduler::process(). |
|
Configure slave.
Reimplemented in KIO::DataSlave. Definition at line 347 of file slave.cpp. References KIO::Connection::send(). Referenced by KIO::Scheduler::setupSlave(), and KIO::Scheduler::slotScheduleCoSlave(). |
|
The protocol this slave handles.
Definition at line 102 of file slave.h. Referenced by KIO::Scheduler::slotScheduleCoSlave(). |
|
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.
Definition at line 117 of file slave.h. Referenced by KIO::Scheduler::process(), and KIO::Scheduler::slotSlaveDied(). |
|
Definition at line 122 of file slave.h. Referenced by KIO::Scheduler::setupSlave(), and KIO::Scheduler::slotScheduleCoSlave(). |
|
Definition at line 127 of file slave.h. Referenced by KIO::Scheduler::setupSlave(), and KIO::Scheduler::slotScheduleCoSlave(). |
|
Definition at line 132 of file slave.h. Referenced by KIO::Scheduler::setupSlave(). |
|
Definition at line 137 of file slave.h. Referenced by KIO::Scheduler::setupSlave(). |
|
Creates a new slave.
Definition at line 355 of file slave.cpp. References QString::arg(), DCOPClient::attach(), DCOPClient::call(), KProcess::DontCare, QFile::encodeName(), endl(), KProtocolInfo::exec(), KLibLoader::findLibrary(), QString::fromLatin1(), KURL::host(), KGlobal::instance(), DCOPClient::isAttached(), DCOPClient::isAttachedToForeignServer(), QString::isEmpty(), kdDebug(), QString::latin1(), KApplication::launcher(), locate(), locateLocal(), KTempFile::name(), KProcess::pid(), setPID(), QTimer::singleShot(), Slave(), KProcess::start(), KTempFile::status(), and timeout(). |
|
Suspends the operation of the attached kioslave.
Reimplemented in KIO::DataSlave. Definition at line 254 of file slave.cpp. References KIO::Connection::suspend(), and virtual_hook(). Referenced by KIO::TransferJob::start(), and KIO::TransferJob::suspend(). |
|
Resumes the operation of the attached kioslave.
Reimplemented in KIO::DataSlave. Definition at line 264 of file slave.cpp. References KIO::Connection::resume(), and virtual_hook(). Referenced by KIO::TransferJob::resume(), and KIO::TransferJob::start(). |
|
Tells wether the kioslave is suspended.
Reimplemented in KIO::DataSlave. Definition at line 274 of file slave.cpp. References KIO::Slave::SuspendedParams::retval, KIO::Connection::suspended(), and virtual_hook(). Referenced by KIO::TransferJob::start(). |
|
Sends the given command to the kioslave.
Reimplemented in KIO::DataSlave. Definition at line 285 of file slave.cpp. References KIO::Slave::SendParams::arr, KIO::Slave::SendParams::cmd, KIO::Connection::send(), and virtual_hook(). Referenced by KIO::Scheduler::process(), KIO::TransferJob::sendAsyncData(), KIO::MultiGetJob::slotMimetype(), and KIO::SimpleJob::start(). |
|
Puts the kioslave associated with
Reimplemented in KIO::DataSlave. Definition at line 216 of file slave.cpp. References DCOPClient::attach(), DCOPClient::call(), KIO::Connection::close(), deref(), DCOPClient::isAttached(), KApplication::launcher(), ref(), KIO::Connection::send(), KIO::Slave::HoldParams::url, and virtual_hook(). |
|
Definition at line 206 of file slave.cpp. Referenced by KIO::Scheduler::slotCleanIdleSlaves(). |
|
Marks this slave as idle.
|
|
Definition at line 203 of file slave.h. Referenced by KIO::Scheduler::slotCleanIdleSlaves(). |
The documentation for this class was generated from the following files: