KIO::StatJob Class Reference
#include <jobclasses.h>
Inheritance diagram for KIO::StatJob:

Detailed Description
A KIO job that retrieves information about a file or directory.
- See also:
- KIO::stat()
Definition at line 676 of file jobclasses.h.
Signals | |
void | redirection (KIO::Job *job, const KURL &url) |
void | permanentRedirection (KIO::Job *job, const KURL &fromUrl, const KURL &toUrl) |
Public Member Functions | |
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) |
Protected Slots | |
void | slotStatEntry (const KIO::UDSEntry &entry) |
void | slotRedirection (const KURL &url) |
virtual void | slotFinished () |
virtual void | slotMetaData (const KIO::MetaData &_metaData) |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Protected Attributes | |
UDSEntry | m_statResult |
KURL | m_redirectionURL |
bool | m_bSource |
short int | m_details |
Constructor & Destructor Documentation
|
Do not use this constructor to create a StatJob, use KIO::stat() instead.
|
Member Function Documentation
|
Signals a permanent redirection. The redirection itself is handled internally.
|
|
Signals a redirection. Use to update the URL shown to the user. The redirection itself is handled internally.
|
|
Selects the level of 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.
Definition at line 708 of file jobclasses.h. |
|
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).
Definition at line 697 of file jobclasses.h. |
|
Called when the slave marks the job as finished.
Reimplemented from KIO::SimpleJob. |
|
MetaData from the slave is received.
Reimplemented from KIO::SimpleJob. |
|
Call this in the slot connected to result, and only after making sure no error happened.
Definition at line 715 of file jobclasses.h. |
The documentation for this class was generated from the following files: