class Slave


Full nameKIO::Slave
Definition#include <slave.h>
InheritsKIO::SlaveInterface [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Slots

Signals

Public Static Methods


Detailed Description

 Slave (KServerSocket *unixdomain, const QString &protocol, const QString &socketname)

Slave

 ~Slave ()

~Slave

[virtual]

void  setPID (pid_t)

setPID

int  slave_pid ()

slave_pid

void  kill ()

kill

Force termination

bool  isAlive ()

isAlive

Returns: true if the slave survided the last mission.

void  setHost ( const QString &host, int port, const QString &user, const QString &passwd)

setHost

Set host for url

Parameters:
hostto connect to.
portto connect to.
userto login as
passwdto login with

void  resetHost ()

resetHost

Clear host info.

void  setConfig (const MetaData &config)

setConfig

Configure slave

QString  protocol ()

protocol

The protocol this slave handles.

Returns: name of protocol handled by this slave, as seen by the user

void  setProtocol (const QString & protocol)

setProtocol

QString  slaveProtocol ()

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  host ()

host

Returns: Host this slave is (was?) connected to

int  port ()

port

Returns: port this slave is (was?) connected to

QString  user ()

user

Returns: User this slave is (was?) logged in as

QString  passwd ()

passwd

Returns: Passwd used to log in

Slave*  createSlave ( const QString &protocol, const KURL& url, int& error, QString& error_text )

createSlave

[static]

Creates a new slave.

Parameters:
_erroris the error code on failure and undefined else.
_error_textis the error text on failure and undefined else.

Returns: 0 on failure, or a pointer to a slave otherwise.

Slave*  createSlave ( const KURL& url, int& error, QString& error_text )

createSlave

[static]

void  queueOnly (bool queue)

queueOnly

void  suspend ()

suspend

void  resume ()

resume

bool  suspended ()

suspended

time_t  idleTime ()

idleTime

Returns: The time this slave has been idle.

void  setIdle ()

setIdle

Marks this slave as idle.

bool  isConnected ()

isConnected

void  setConnected (bool c)

setConnected

Connection * connection ()

connection

Reimplemented from SlaveInterface.

void  ref ()

ref

void  deref ()

deref

void  accept (KSocket *socket)

accept

[slot]

void  gotInput ()

gotInput

[slot]

void  gotAnswer ()

gotAnswer

[slot]

void  timeout ()

timeout

[slot]

void  slaveDied (KIO::Slave *slave)

slaveDied

[signal]


Generated by: dfaure on kde.faure.org on Thu Jan 17 22:16:53 2002, using kdoc 2.0a53.