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

QString  protocol ()

protocol

Returns: Protocol handled by this slave, as seen by the user (For FTP-proxy, this is FTP)

QString  slaveProtocol ()

slaveProtocol

Returns: Protocol handled by this slave, internally (For FTP-proxy, this is HTTP)

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 KURL& url, int& error, QString& error_text )

createSlave

[static]

Creates a new slave if the KIOSlavePool has no matching one. m_pSlave and m_strSlaveProtocol are set accordingly on success.

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

Returns: m_pSlave on success or 0L on failure.

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.

Connection * connection ()

connection

Reimplemented from SlaveInterface.

void  accept (KSocket *socket)

accept

[slot]

void  gotInput ()

gotInput

[slot]

void  gotAnswer ()

gotAnswer

[slot]

void  slaveDied (KIO::Slave *slave)

slaveDied

[signal]


Generated by: faure on ftp.kde.com on Wed Jun 20 13:26:37 2001, using kdoc 2.0a53.