org.kde.koala

Class StatJob

public class StatJob extends SimpleJob

A KIO job that retrieves information about a file or directory. See StatJobSignals for signals emitted by StatJob

See Also: StatJob

UNKNOWN: A KIO job that retrieves information about a file or directory.

Constructor Summary
protected StatJob(Class dummy)
StatJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo)
Do not use this constructor to create a StatJob, use KIO.stat() instead.
Method Summary
StringclassName()
QMetaObjectmetaObject()
voidsetDetails(short details)
Selects the level of details we want.
voidsetSide(boolean source)
A stat() can have two meanings.
protected voidslotFinished()
protected voidslotRedirection(KURL url)
voidstart(Slave slave)
Called by the scheduler when a slave gets to work on this job.

Constructor Detail

StatJob

protected StatJob(Class dummy)

StatJob

public StatJob(KURL url, int command, byte[] packedArgs, boolean showProgressInfo)
Do not use this constructor to create a StatJob, use KIO.stat() instead.

Parameters: url the url of the file or directory to check command the command to issue packedArgs the arguments showProgressInfo true to show progress information to the user

UNKNOWN: Do not use this constructor to create a StatJob, use KIO.stat() instead.

Method Detail

className

public String className()

metaObject

public QMetaObject metaObject()

setDetails

public void setDetails(short details)
Selects the level of details we want. By default this is 2 (all details wanted, including modification time, size, etc.), setDetails(1) is used when deleting: we don't need all the information if it takes too much time, no need to follow symlinks etc. setDetails(0) is used for very simple probing: we'll only get the answer "it's a file or a directory, or it doesn't exist". This is used by KRun.

Parameters: details 2 for all details, 1 for simple, 0 for very simple

UNKNOWN: Selects the level of details we want.

setSide

public void setSide(boolean source)
A stat() can have two meanings. Either we want to read from this URL, or to check if we can write to it. First case is "source", second is "dest". It is necessary to know what the StatJob is for, to tune the kioslave's behavior (e.g. with FTP).

Parameters: source true for "source" mode, false for "dest" mode

UNKNOWN: A stat() can have two meanings.

slotFinished

protected void slotFinished()

slotRedirection

protected void slotRedirection(KURL url)

start

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

Parameters: slave the slave that starts working on this job

UNKNOWN: