# class StatJob

###

Module | kio
Namespace | KIO
Class | StatJob
Inherits | KIO::SimpleJob

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

See also KIO.stat()

### enums

- StatSide { SourceSide, DestinationSide }

enum details

### methods

- StatJob (dd)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  dd | StatJobPrivate |

- StatJob ( )

  returns ctor
  Not implemented
  before KDE 4.1.0 only

- permanentRedirection (job, fromUrl, toUrl)

  returns Nothing
  SIGNAL ("permanentRedirection (Job*, const KUrl&, const KUrl&)")

  Argument | Type | Default
  --- | --- | ---
  job | KIO.Job |
  fromUrl | KUrl |
  toUrl | KUrl |

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

  job - the job that is redirected

  fromUrl - the original URL

  toUrl - the new URL

- redirection (job, url)

  returns Nothing
  SIGNAL ("redirection (Job*, const KUrl&)")

  Argument | Type | Default
  --- | --- | ---
  job | KIO.Job |
  url | KUrl |

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

  job - the job that is redirected

  url - the new url

- setDetails (details)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  details | short |

  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.

  details - 2 for all details, 1 for simple, 0 for very simple

- setSide (side)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  side | KIO::StatJob.StatSide |

  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).

  side - SourceSide or DestinationSide

- setSide (source)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  source | bool |

  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).

  source - true for "source" mode, false for "dest" mode

- slotFinished ( )

  returns Nothing

- slotMetaData (_metaData)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  _metaData | KIO.MetaData |

- statResult ( )

  returns KIO.UDSEntry

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

### enums - detail

- StatSide { SourceSide, DestinationSide }

  | SourceSide | - | - |
  | DestinationSide | - | - |