# class KFileMetaInfo

###

Module | kio
Namespace |
Class | KFileMetaInfo
Inherits |

KFileMetaInfo provides metadata extracted from a file or other resource.

When instantiating an instance of this class, the metadata related to it will be retrieved and stored in the instance. The data can be inspected through KFileMetaDataItem objects.

### enums

- What { Fastest, TechnicalInfo, ContentInfo, ExternalSources, Thumbnail, LinkedData, Everything }
  typesafe object: WhatFlags

enum details

### methods

- KFileMetaInfo (path, mimetype, w)

  returns ctor
  KDE 4.1.0 and later only

  Argument | Type | Default
  --- | --- | ---
  path | QString |
  mimetype | QString | QString()
  w | KFileMetaInfo.WhatFlags | KFileMetaInfo.Everything

  Construct a KFileMetaInfo that contains metainformation about the resource pointed to by path.

- KFileMetaInfo (url)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  url | KUrl |

  Construct a KFileMetaInfo that contains metainformation about the resource pointed to by url.

- KFileMetaInfo ( )

  returns ctor

  Construct an empty, invalid KFileMetaInfo instance.

- KFileMetaInfo (a0)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  a0 | KFileMetaInfo |

  Construct a KFileMetaInfo instance from another one.

- KFileMetaInfo (a0, a1, a2)

  returns ctor
  before KDE 4.1.0 only

  Argument | Type | Default
  --- | --- | ---
  a0 | QString |
  a1 | QString | QString()
  a2 | KFileMetaInfo.WhatFlags | KFileMetaInfo.Everything

- applyChanges ( )

  returns bool

  Save the changes made to this KFileMetaInfo instance.

- groups ( )

  returns KFileMetaInfoGroupList
  Not implemented

- isValid ( )

  returns bool

- item (key)

  returns KFileMetaInfoItem

  Argument | Type | Default
  --- | --- | ---
  key | QString |

- item (key)

  returns KFileMetaInfoItem
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  key | QString |

- items ( )

  returns QHash<QString,KFileMetaInfoItem>

  Retrieve all the items.

- keys ( )

  returns QStringList

- preferredGroups ( )

  returns KFileMetaInfoGroupList
  Not implemented

  Deprecated

- preferredKeys ( )

  returns QStringList

  Deprecated

- supportedGroups ( )

  returns KFileMetaInfoGroupList
  Not implemented

  Deprecated

- supportedKeys ( )

  returns QStringList

  Deprecated

- url ( )

  returns KUrl

### enums - detail

- What { Fastest, TechnicalInfo, ContentInfo, ExternalSources, Thumbnail, LinkedData, Everything }

  This is used to specify what a KFileMetaInfo object should read, so you can specify if you want to read "expensive" items or not. This is like a preset which can be customized by passing additional parameters to constructors.

  typesafe object: WhatFlags

Fastest - 0x1 -
TechnicalInfo - 0x4 -
ContentInfo - 0x8 -
ExternalSources - 0x10 -
Thumbnail - 0x20 -
LinkedData - 0x80 -
Everything - 0xffff -