KCModuleInfo Class Reference
from PyKDE4.kutils import *
Detailed Description
A class that provides information about a KCModule
KCModuleInfo provides various technical information, such as icon, library
etc. about a KCModule.n
- Note:
- 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>
Method Documentation
__init__ |
( |
self, |
|
|
|
QString |
desktopFile |
|
) |
|
|
|
Constructs a KCModuleInfo.
- Note:
- a KCModuleInfo object will have to be manually deleted, it is not
done automatically for you.
- Parameters:
-
| desktopFile | the desktop file representing the module, or
the name of the module.
|
__init__ |
( |
self, |
|
|
|
KService.Ptr |
moduleInfo |
|
) |
|
|
|
Same as above but takes a KService.Ptr as argument.
- Note:
- moduleInfo must be a valid pointer.
- Parameters:
-
| moduleInfo | specifies the module
|
Same as above but takes a KCModuleInfo as argument.
- Parameters:
-
Same as above but creates an empty KCModuleInfo.
You should not normally call this.
- Returns:
- the module's (translated) comment field
- Returns:
- the path of the module's documentation
- Returns:
- the filename of the .desktop file that describes the KCM
- Returns:
- a handle (the contents of the X-KDE-FactoryName field if it exists,
else the same as the library name)
- Returns:
- the module's icon name
- Returns:
- the keywords associated with this KCM.
- Returns:
- the library name
- Returns:
- the module\'s (translated) name
- Returns:
- true if rhs is not equal itself
Returns true if rhs describes the same KCModule as this object.
KService.Ptr service |
( |
|
self ) |
|
- Returns:
- a KSharedPtr to KService created from the modules .desktop file
- 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.