org.kde.koala

Class SimpleJob

public class SimpleJob extends Job

A simple job (one url and one command). This is the base class for all jobs that are scheduled. Other jobs are high-level jobs (CopyJob, DeleteJob, FileCopyJob...) that manage subjobs but aren't scheduled directly.

UNKNOWN: A simple job (one url and one command).

Constructor Summary
protected SimpleJob(Class dummy)
SimpleJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo)
Creates a new simple job.
Method Summary
StringclassName()
intcommand()
voidkill(boolean quietly)
Abort job.
voidkill()
QMetaObjectmetaObject()
voidputOnHold()
Abort job.
static voidremoveOnHold()
Discard suspended slave.
Slaveslave()
Slave in use by this job.
voidslaveDone()
Called to detach a slave from a job.
protected voidslotConnected()
Called on a slave's connected signal.
voidslotError(int arg1, String arg2)
Called on a slave's error.
protected voidslotFinished()
Called when the slave marks the job as finished.
protected voidslotInfoMessage(String s)
Called on a slave's info message.
protected voidslotNeedProgressId()
protected voidslotProcessedSize(long data_size)
Forward signal from the slave.
protected voidslotSpeed(long speed)
Forward signal from the slave.
voidslotTotalSize(long data_size)
Forward signal from the slave Can also be called by the parent job, when it knows the size.
protected voidslotWarning(String arg1)
Called on a slave's warning.
voidstart(Slave slave)
Called by the scheduler when a slave gets to work on this job.
protected voidstoreSSLSessionFromJob(KURL m_redirectionURL)
KURLurl()
Returns the SimpleJob's URL

Constructor Detail

SimpleJob

protected SimpleJob(Class dummy)

SimpleJob

public SimpleJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo)
Creates a new simple job. You don't need to use this constructor, unless you create a new job that inherits from SimpleJob.

Parameters: url the url of the job command the command of the job packedArgs the arguments showProgressInfo true to show progress information to the user

UNKNOWN: Creates a new simple job.

Method Detail

className

public String className()

command

public int command()

UNKNOWN:

kill

public void kill(boolean quietly)
Abort job. This kills all subjobs and deletes the job.

Parameters: quietly if true, Job will emit signal result Should only be set to false when the user kills the job (from kio_uiserver), not when you want to abort a job.

UNKNOWN: Abort job.

kill

public void kill()

metaObject

public QMetaObject metaObject()

putOnHold

public void putOnHold()
Abort job. Suspends slave to be reused by another job for the same request.

UNKNOWN: Abort job.

removeOnHold

public static void removeOnHold()
Discard suspended slave.

UNKNOWN: Discard suspended slave.

slave

public Slave slave()
Slave in use by this job.

UNKNOWN:

slaveDone

public void slaveDone()
Called to detach a slave from a job.

UNKNOWN:

slotConnected

protected void slotConnected()
Called on a slave's connected signal.

See Also: SimpleJob

UNKNOWN: Called on a slave's connected signal.

slotError

public void slotError(int arg1, String arg2)
Called on a slave's error. Made public for the scheduler.

UNKNOWN:

slotFinished

protected void slotFinished()
Called when the slave marks the job as finished.

UNKNOWN: Called when the slave marks the job as finished.

slotInfoMessage

protected void slotInfoMessage(String s)
Called on a slave's info message.

Parameters: s the info message

See Also: SimpleJob

UNKNOWN: Called on a slave's info message.

slotNeedProgressId

protected void slotNeedProgressId()

UNKNOWN:

slotProcessedSize

protected void slotProcessedSize(long data_size)
Forward signal from the slave.

Parameters: data_size the processed size in bytes

See Also: SimpleJob

UNKNOWN: Forward signal from the slave.

slotSpeed

protected void slotSpeed(long speed)
Forward signal from the slave.

Parameters: speed the speed in bytes/s

See Also: SimpleJob

UNKNOWN: Forward signal from the slave.

slotTotalSize

public void slotTotalSize(long data_size)
Forward signal from the slave Can also be called by the parent job, when it knows the size.

Parameters: data_size the total size

UNKNOWN: Forward signal from the slave Can also be called by the parent job, when it knows the size.

slotWarning

protected void slotWarning(String arg1)
Called on a slave's warning.

UNKNOWN:

start

public void start(Slave slave)
Called by the scheduler when a slave gets to work on this job.

UNKNOWN:

storeSSLSessionFromJob

protected void storeSSLSessionFromJob(KURL m_redirectionURL)

url

public KURL url()
Returns the SimpleJob's URL

Returns: the url

UNKNOWN: Returns the SimpleJob's URL