# class Category

###

Module | knewstuff
Namespace | KNS
Class | Category
Inherits |

KNewStuff category.

Author Josef Spillner (spillner@kde.org)

### methods

- Category ( )

  returns ctor

  Constructor.

- Category (a0)

  returns ctor
  Not implemented

  Argument | Type | Default
  --- | --- | ---
  a0 | KNS.Category |

- description ( )

  returns KNS.KTranslatable

  Retrieve the description of the category.

  Returns category description

- icon ( )

  returns KUrl

  Retrieve the icon of the category.

  Returns category icon

- id ( )

  returns QString

  Retrieve the unique id of the category.

  Returns category id

- name ( )

  returns KNS.KTranslatable

  Retrieve the name of the category.

  Returns category name (potentially translated)

- setDescription (type)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  type | KNS.KTranslatable |

  Sets the category description.

- setIcon (icon)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  icon | KUrl |

  Sets the icon.

- setId (id)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  id | QString |

  Sets the unique id for this category.

- setName (name)

  returns Nothing

  Argument | Type | Default
  --- | --- | ---
  name | KNS.KTranslatable |

  Sets the name for this category.