# class MetaInfoJob

###

Module | kio
Namespace | KIO
Class | MetaInfoJob
Inherits | KIO::Job

MetaInfoJob is a KIO Job to retrieve meta information from files.

KIO Job to retrieve meta information from files.

### methods

- MetaInfoJob (items, w, iocost, cpucost, requiredfields, requestedfields)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  items | KFileItemList |
  w | KFileMetaInfo.WhatFlags | KFileMetaInfo.Everything
  iocost | int | 3
  cpucost | int | 6
  requiredfields | QStringList | QStringList()
  requestedfields | QStringList | QStringList()

  Creates a new MetaInfoJob.

  items - A list of KFileItems to get the metainfo for

  w - Flags which serve as a preset which can be customized with other parameters.

  iocost - The allowed cost in terms of io to retrieve the metainfo. The approximate maximum number of bytes to be read is 10^iocost. Negative values mean that there is no limit on the cost. 0 means that no fields other than the required fields will be retrieved. The default value of 3 means about 1024 bytes per file may be read. This is merely a suggestion and not a hard limit.

  cpucost - The allowed cost in terms of cpu to determine the information in the fields. The number mean the amount of instructions allowed is 10^cpucost and is a suggestion only. The default value of 6 means that about a million instructions (10^6) are allowed. This is useful for expensive fields like md5 or thumbnails.

  requiredfields - The names of fields or groups of fields that should be retrieved regardless of cost.

  requestedfields - The names of fields or groups of fields that should be retrieved first.

- MetaInfoJob (a0, a1, a2, a3, a4, a5)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | KFileItemList |
  a1 | KFileMetaInfo.WhatFlags | KFileMetaInfo.Everything
  a2 | int | 3
  a3 | int | 6
  a4 | QStringList | QStringList()
  a5 | QStringList | QStringList()

- MetaInfoJob ( )

  returns ctor
  Not implemented
  before KDE 4.1.0 only

- failed (item)

  returns Nothing
  SIGNAL ("failed (const KFileItem&)")

  Argument | Type | Default
  --- | --- | ---
  item | KFileItem |

  Emitted when metainfo for item could not be extracted, either because a plugin for its MIME type does not exist, or because something went wrong.

  item - the KFileItem of the file that failed

- getMetaInfo ( )

  returns Nothing

- gotMetaInfo (item)

  returns Nothing
  SIGNAL ("gotMetaInfo (const KFileItem&)")

  Argument | Type | Default
  --- | --- | ---
  item | KFileItem |

  Emitted when the meta info for item has been successfully retrieved.

  item - the KFileItem describing the fetched item

- removeItem (item)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  item | KFileItem |

  Removes an item from metainfo extraction.

  item - the item that should be removed from the queue

- slotResult (job)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  job | KJob |