org.kde.koala
public class StatJob extends SimpleJob
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 | |
---|---|
String | className() |
QMetaObject | metaObject() |
void | setDetails(short details)
Selects the level of details we want.
|
void | setSide(boolean source)
A stat() can have two meanings. |
protected void | slotFinished() |
protected void | slotRedirection(KURL url) |
void | start(Slave slave)
Called by the scheduler when a slave gets to
work on this job. |
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.
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.
Parameters: source true for "source" mode, false for "dest" mode
UNKNOWN: A stat() can have two meanings.
slave
gets to
work on this job.Parameters: slave the slave that starts working on this job
UNKNOWN: