class StatJob

# class StatJob |
Full name | `KIO::StatJob`
Definition | `#include <jobclasses.h>`
Inherits | KIO::SimpleJob [public ]
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- StatJob (const KURL& url, int command, const QByteArray &packedArgs, bool showProgressInfo)
- void setSide ( bool source )
- void setDetails ( short int details )
- const UDSEntry & statResult () const
- virtual void start ( Slave *slave )

#### Signals

- void redirection ( KIO::Job *, const KURL &url )
- void permanentRedirection ( KIO::Job *, const KURL &fromUrl, const KURL &toUrl )

#### Protected Methods

- virtual void virtual_hook ( int id, void* data )

#### Protected Slots

- void slotStatEntry ( const KIO::UDSEntry & entry )
- void slotRedirection ( const KURL &url)
- virtual void slotFinished ()

#### Protected Members

- UDSEntry m_statResult
- KURL m_redirectionURL
- bool m_bSource
- short int m_details

## Detailed Description

StatJob (const KURL& url, int command, const QByteArray &packedArgs, bool showProgressInfo) | ### StatJob

void setSide ( bool source ) | ### setSide

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 behaviour (e.g. with FTP)

void setDetails ( short int details ) | ### setDetails

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.

const UDSEntry & statResult () | ### statResult

[const]

Call this in the slot connected to result, and only after making sure no error happened.

void start ( Slave *slave ) | ### start

[virtual]

Called by the scheduler when a slave gets to work on this job.

Reimplemented from SimpleJob.

void redirection ( KIO::Job *, const KURL &url ) | ### redirection

[signal]

Signals a redirection. Use to update the URL shown to the user. The redirection itself is handled internally.

void permanentRedirection ( KIO::Job *, const KURL &fromUrl, const KURL &toUrl ) | ### permanentRedirection

[signal]

Signals a permanent redirection. The redirection itself is handled internally.

void slotStatEntry ( const KIO::UDSEntry & entry ) | ### slotStatEntry

[protected slots slot]

void slotRedirection ( const KURL &url) | ### slotRedirection

[protected slots slot]

void slotFinished () | ### slotFinished

[protected slots virtual slot]

Reimplemented from SimpleJob.

UDSEntry m_statResult | ### m_statResult

[protected]

KURL m_redirectionURL | ### m_redirectionURL

[protected]

bool m_bSource | ### m_bSource

[protected]

short int m_details | ### m_details

[protected]

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

Reimplemented from SimpleJob.

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:36:57 2003, using kdoc 2.0a54.