#include <jobclasses.h>

Signals | |
void | redirection (TDEIO::Job *job, const KURL &url) |
void | permanentRedirection (TDEIO::Job *job, const KURL &fromUrl, const KURL &toUrl) |
Public Member Functions | |
StatJob (const KURL &url, int command, const TQByteArray &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 TDEIO::UDSEntry &entry) |
void | slotRedirection (const KURL &url) |
virtual void | slotFinished () |
virtual void | slotMetaData (const TDEIO::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 |
Detailed Description
A TDEIO job that retrieves information about a file or directory.
- See also:
- TDEIO::stat()
Definition at line 688 of file jobclasses.h.
Constructor & Destructor Documentation
StatJob::StatJob | ( | const KURL & | url, |
int | command, | ||
const TQByteArray & | packedArgs, | ||
bool | showProgressInfo | ||
) |
Do not use this constructor to create a StatJob, use TDEIO::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
Member Function Documentation
void TDEIO::StatJob::permanentRedirection | ( | TDEIO::Job * | job, |
const KURL & | fromUrl, | ||
const KURL & | toUrl | ||
) | [signal] |
Signals a permanent redirection.
The redirection itself is handled internally.
- Parameters:
-
job the job that is redirected fromUrl the original URL toUrl the new URL
- Since:
- 3.1
void TDEIO::StatJob::redirection | ( | TDEIO::Job * | job, |
const KURL & | url | ||
) | [signal] |
Signals a redirection.
Use to update the URL shown to the user. The redirection itself is handled internally.
- Parameters:
-
job the job that is redirected url the new url
void TDEIO::StatJob::setDetails | ( | short int | details | ) | [inline] |
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
Definition at line 720 of file jobclasses.h.
void TDEIO::StatJob::setSide | ( | bool | source | ) | [inline] |
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 tdeioslave's behavior (e.g. with FTP).
- Parameters:
-
source true for "source" mode, false for "dest" mode
Definition at line 709 of file jobclasses.h.
void StatJob::slotFinished | ( | ) | [protected, virtual, slot] |
Called when the slave marks the job as finished.
Reimplemented from TDEIO::SimpleJob.
void StatJob::slotMetaData | ( | const TDEIO::MetaData & | _metaData | ) | [protected, virtual, slot] |
MetaData from the slave is received.
- Parameters:
-
_metaData the meta data
- See also:
- metaData()
Reimplemented from TDEIO::SimpleJob.
const UDSEntry& TDEIO::StatJob::statResult | ( | ) | const [inline] |
Call this in the slot connected to result, and only after making sure no error happened.
- Returns:
- the result of the stat
Definition at line 727 of file jobclasses.h.
The documentation for this class was generated from the following files: