# class KCModuleInfo

###

Module | kutils
Namespace |
Class | KCModuleInfo
Inherits |

A class that provides information about a KCModule

KCModuleInfo provides various technical information, such as icon, library etc. about a KCModule.n Any values set with the set* functions is not written back with KCModuleInfo it only reads value from the desktop file.

Internal Author Matthias Hoelzer-Kluepfel <mhk@kde.org> Author Matthias Elter <elter@kde.org> Author Daniel Molkentin <molkentin@kde.org>

### methods

- KCModuleInfo (desktopFile)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  desktopFile | QString |

  Constructs a KCModuleInfo. a KCModuleInfo object will have to be manually deleted, it is not done automatically for you.

  desktopFile - the desktop file representing the module, or the name of the module.

- KCModuleInfo (moduleInfo)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  moduleInfo | KService.Ptr |

  Same as above but takes a KService.Ptr as argument.

  moduleInfo must be a valid pointer.

  moduleInfo - specifies the module

- KCModuleInfo (rhs)

  returns ctor

  Argument | Type | Default
  --- | --- | ---
  rhs | KCModuleInfo |

  Same as above but takes a KCModuleInfo as argument.

  rhs - specifies the module

- KCModuleInfo ( )

  returns ctor

  Same as above but creates an empty KCModuleInfo. You should not normally call this.

- comment ( )

  returns QString

  Returns the module's (translated) comment field

- docPath ( )

  returns QString

  Returns the path of the module's documentation

- fileName ( )

  returns QString

  Returns the filename of the .desktop file that describes the KCM

- handle ( )

  returns QString

  Returns a handle (the contents of the X-KDE-FactoryName field if it exists, else the same as the library name)

- icon ( )

  returns QString

  Returns the module's icon name

- keywords ( )

  returns QStringList

  Returns the keywords associated with this KCM.

- library ( )

  returns QString

  Returns the library name

- moduleName ( )

  returns QString

  Returns the module\'s (translated) name

- operator != (rhs)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  rhs | KCModuleInfo |

  Returns true if rhs is not equal itself

- operator == (rhs)

  returns bool

  Argument | Type | Default
  --- | --- | ---
  rhs | KCModuleInfo |

  Returns true if rhs describes the same KCModule as this object.

- service ( )

  returns KService.Ptr

  Returns a KSharedPtr to KService created from the modules .desktop file

- weight ( )

  returns int

  Returns the weight of the module which determines the order of the pages in the KCMultiDialog. It's set by the X-KDE-Weight field.