KIO
#include <slave.h>
|
void | calcSpeed () |
|
| SlaveInterface (SlaveInterfacePrivate &dd, QObject *parent=0) |
|
virtual bool | dispatch () |
|
virtual bool | dispatch (int _cmd, const QByteArray &data) |
|
void | dropNetwork (const QString &, const QString &) |
|
void | messageBox (int type, const QString &text, const QString &caption, const QString &buttonYes, const QString &buttonNo) |
|
void | messageBox (int type, const QString &text, const QString &caption, const QString &buttonYes, const QString &buttonNo, const QString &dontAskAgainName) |
|
void | requestNetwork (const QString &, const QString &) |
|
SlaveInterfacePrivate *const | d_ptr |
|
Definition at line 48 of file slave.h.
bool Slave::checkForHeldSlave |
( |
const KUrl & |
url | ) |
|
|
static |
Returns true if klauncher is holding a slave for url
.
- Since
- 4.7
Definition at line 508 of file slave.cpp.
Creates a new slave.
- Parameters
-
protocol | the protocol |
url | is the url |
error | is the error code on failure and undefined else. |
error_text | is the error text on failure and undefined else. |
- Returns
- 0 on failure, or a pointer to a slave otherwise.
Definition at line 410 of file slave.cpp.
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.
Definition at line 294 of file slave.cpp.
Requests a slave on hold for ths url, from klauncher, if there is such a job.
See hold()
Definition at line 484 of file slave.cpp.
- Returns
- Host this slave is (was?) connected to
Definition at line 193 of file slave.cpp.
time_t Slave::idleTime |
( |
| ) |
|
- Returns
- The time this slave has been idle.
Definition at line 252 of file slave.cpp.
- Returns
- true if the slave survived the last mission.
Definition at line 288 of file slave.cpp.
bool Slave::isConnected |
( |
| ) |
|
Force termination.
Definition at line 361 of file slave.cpp.
- Returns
- Passwd used to log in
Definition at line 211 of file slave.cpp.
- Returns
- port this slave is (was?) connected to
Definition at line 199 of file slave.cpp.
The protocol this slave handles.
- Returns
- name of protocol handled by this slave, as seen by the user
Definition at line 175 of file slave.cpp.
void Slave::resetHost |
( |
| ) |
|
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.
Definition at line 332 of file slave.cpp.
void Slave::setConfig |
( |
const MetaData & |
config | ) |
|
|
virtual |
void Slave::setConnected |
( |
bool |
c | ) |
|
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.
Definition at line 378 of file slave.cpp.
Marks this slave as idle.
Definition at line 217 of file slave.cpp.
void Slave::setPID |
( |
pid_t |
pid | ) |
|
void Slave::setProtocol |
( |
const QString & |
protocol | ) |
|
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
Definition at line 187 of file slave.cpp.
bool Slave::suspended |
( |
| ) |
|
|
virtual |
Tells whether the kioslave is suspended.
- Returns
- true if the kioslave is suspended.
Reimplemented in KIO::DataSlave.
Definition at line 326 of file slave.cpp.
- Returns
- User this slave is (was?) logged in as
Definition at line 205 of file slave.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:05 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.