KIO
KIO::StatJob Class Reference
A KIO job that retrieves information about a file or directory. More...
#include <jobclasses.h>

Public Types | |
enum | StatSide { SourceSide, DestinationSide } |
Signals | |
void | permanentRedirection (KIO::Job *job, const KUrl &fromUrl, const KUrl &toUrl) |
void | redirection (KIO::Job *job, const KUrl &url) |
Public Member Functions | |
void | setDetails (short int details) |
KDE_DEPRECATED void | setSide (bool source) |
void | setSide (StatSide side) |
const UDSEntry & | statResult () const |
~StatJob () | |
Protected Slots | |
virtual void | slotFinished () |
virtual void | slotMetaData (const KIO::MetaData &_metaData) |
Protected Member Functions | |
StatJob (StatJobPrivate &dd) |
Detailed Description
A KIO job that retrieves information about a file or directory.
- See also:
- KIO::stat()
Definition at line 422 of file jobclasses.h.
Member Enumeration Documentation
Definition at line 427 of file jobclasses.h.
Constructor & Destructor Documentation
Member Function Documentation
void KIO::StatJob::permanentRedirection | ( | KIO::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
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 StatJob::setDetails | ( | short int | 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
void StatJob::setSide | ( | bool | 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
void StatJob::setSide | ( | StatSide | side | ) |
void StatJob::slotFinished | ( | ) | [protected, virtual, slot] |
Called when the slave marks the job as finished.
Reimplemented from KIO::SimpleJob.
void StatJob::slotMetaData | ( | const KIO::MetaData & | _metaData | ) | [protected, virtual, slot] |
MetaData from the slave is received.
- Parameters:
-
_metaData the meta data
- See also:
- metaData()
Reimplemented from KIO::SimpleJob.
const UDSEntry & StatJob::statResult | ( | ) | const |
The documentation for this class was generated from the following files: