# class KIconCache

###

Module | kdeui
Namespace |
Class | KIconCache
Inherits | KPixmapCache

Icon cache for KDE.

Note that this is the KDE-wide cache for storing icons and should only be used by KIconLoader. If you want to cache your own pixmaps you should look at KPixmapCache instead.

### methods

- KIconCache ( )

  returns ctor
  KDE 4.1.0 and later only

  Constucts the icon cache object.

- KIconCache ( )

  returns ctor
  before KDE 4.1.0 only

- defaultIconSize (group)

  returns int

  Argument | Type | Default
  --- | --- | ---
  group | KIconLoader.Group |

  The default size of current theme for a certain icon group.

  group - The icon group. See KIconLoader.Group. Returns The default size in pixels for the given icon group.

- deleteCache ( )

  returns Nothing
  static

  Deletes the icon cache.

- existingIconThemeDirs (themeNames)

  returns QSet<QString>

  Argument | Type | Default
  --- | --- | ---
  themeNames | QStringList |

- find (key, pix, path)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  key | QString |
  pix | QPixmap |
  path | QString |

- find (key, pix)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  key | QString |
  pix | QPixmap |

- insert (key, pix, path)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  key | QString |
  pix | QPixmap |
  path | QString |

- insert (key, pix)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  key | QString |
  pix | QPixmap |

- loadCustomData (stream)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  stream | QDataStream |

- loadCustomIndexHeader (stream)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  stream | QDataStream |

- mostRecentMTime (dirNames)

  returns unsigned int

  Argument | Type | Default
  --- | --- | ---
  dirNames | QSet<QString> |

- setThemeInfo (themes)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  themes | QList<KIconTheme |

- writeCustomData (stream)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  stream | QDataStream |

- writeCustomIndexHeader (stream)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  stream | QDataStream |