• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

KIO::StatJob

KIO::StatJob Class Reference

#include <jobclasses.h>

Inheritance diagram for KIO::StatJob:

Inheritance graph
[legend]

List of all members.


Detailed Description

A KIO job that retrieves information about a file or directory.

See also:
KIO::stat()

Definition at line 421 of file 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)
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)

Member Enumeration Documentation

enum KIO::StatJob::StatSide

Enumerator:
SourceSide 
DestinationSide 

Definition at line 426 of file jobclasses.h.


Constructor & Destructor Documentation

StatJob::~StatJob (  ) 

Definition at line 781 of file job.cpp.

StatJob::StatJob ( StatJobPrivate &  dd  )  [protected]

Definition at line 776 of file job.cpp.


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

void KIO::StatJob::redirection ( KIO::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 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

Definition at line 795 of file job.cpp.

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

Definition at line 785 of file job.cpp.

void StatJob::setSide ( StatSide  side  ) 

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:
side SourceSide or DestinationSide

Definition at line 790 of file job.cpp.

void StatJob::slotFinished (  )  [protected, virtual, slot]

Called when the slave marks the job as finished.

Reimplemented from KIO::SimpleJob.

Definition at line 844 of file job.cpp.

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.

Definition at line 867 of file job.cpp.

const UDSEntry & StatJob::statResult (  )  const

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 800 of file job.cpp.


The documentation for this class was generated from the following files:
  • jobclasses.h
  • job.cpp

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal