KCModuleInfo Class Reference
A class that provides information about a KCModule. More...
#include <kcmoduleinfo.h>
Collaboration diagram for KCModuleInfo:

Public Member Functions | |
KCModuleInfo (const QString &desktopFile) | |
KCModuleInfo (KService::Ptr moduleInfo) | |
KCModuleInfo (const KCModuleInfo &rhs) | |
KCModuleInfo & | operator= (const KCModuleInfo &rhs) |
bool | operator== (const KCModuleInfo &rhs) const |
bool | operator!= (const KCModuleInfo &rhs) const |
~KCModuleInfo () | |
QString | fileName () const |
const QStringList & | keywords () const |
QString | moduleName () const |
KService::Ptr | service () const |
QString | comment () const |
QString | icon () const |
QString | docPath () const |
QString | library () const |
QString | handle () const |
int | weight () const |
bool | needsRootPrivileges () const |
bool | isHiddenByDefault () const KDE_DEPRECATED |
Protected Member Functions | |
void | setKeywords (const QStringList &keyword) |
void | setName (const QString &name) |
void | setComment (const QString &comment) |
void | setIcon (const QString &icon) |
void | setLibrary (const QString &lib) |
void | setHandle (const QString &handle) |
void | setWeight (int weight) |
void | setNeedsRootPrivileges (bool needsRootPrivileges) |
void | setIsHiddenByDefault (bool isHiddenByDefault) |
void | setDocPath (const QString &p) |
void | loadAll () |
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.
Definition at line 48 of file kcmoduleinfo.h.
Constructor & Destructor Documentation
|
Constructs a KCModuleInfo.
Definition at line 33 of file kcmoduleinfo.cpp. References kdWarning(), KService::Ptr, and KService::serviceByStorageId(). |
|
Same as above but takes a KService::Ptr as argument.
Definition at line 48 of file kcmoduleinfo.cpp. References k_funcinfo, kdDebug(), and KService::Ptr. |
|
Same as above but takes a KCModuleInfo as argument.
Definition at line 57 of file kcmoduleinfo.cpp. |
|
Default constructor.
Definition at line 96 of file kcmoduleinfo.cpp. |
Member Function Documentation
|
Assignment operator.
Definition at line 66 of file kcmoduleinfo.cpp. References _allLoaded, _comment, _doc, _fileName, _handle, _icon, _isHiddenByDefault, _keywords, _lib, _name, _needsRootPrivileges, and _service. |
|
Equal operator.
Definition at line 86 of file kcmoduleinfo.cpp. References _fileName, _lib, and _name. Referenced by operator!=(). |
|
Definition at line 91 of file kcmoduleinfo.cpp. References operator==(). |
|
Definition at line 103 of file kcmoduleinfo.h. Referenced by KCModuleLoader::loadModule(). |
|
Definition at line 108 of file kcmoduleinfo.h. |
|
Definition at line 113 of file kcmoduleinfo.h. Referenced by KCMultiDialog::addModule(). |
|
Definition at line 119 of file kcmoduleinfo.h. References KService::Ptr. Referenced by KCMultiDialog::addModule(). |
|
Definition at line 124 of file kcmoduleinfo.h. Referenced by KCMultiDialog::addModule(). |
|
Definition at line 129 of file kcmoduleinfo.h. Referenced by KCMultiDialog::addModule(). |
|
Definition at line 147 of file kcmoduleinfo.cpp. |
|
Definition at line 139 of file kcmoduleinfo.h. Referenced by KCModuleLoader::loadModule(), and KCModuleLoader::unloadModule(). |
|
Definition at line 156 of file kcmoduleinfo.cpp. |
|
Definition at line 168 of file kcmoduleinfo.cpp. |
|
Definition at line 177 of file kcmoduleinfo.cpp. |
|
Definition at line 186 of file kcmoduleinfo.cpp. |
|
Sets the object's keywords.
Definition at line 169 of file kcmoduleinfo.h. |
|
Sets the object's name.
Definition at line 175 of file kcmoduleinfo.h. |
|
Sets the object's name.
Definition at line 181 of file kcmoduleinfo.h. |
|
Sets the object's icon.
Definition at line 187 of file kcmoduleinfo.h. |
|
Set the object's library.
Definition at line 193 of file kcmoduleinfo.h. |
|
Sets the factory name.
Definition at line 199 of file kcmoduleinfo.h. Referenced by loadAll(). |
|
Sets the object's weight property which determines in what order modules will be displayed. Default is 100.
Definition at line 207 of file kcmoduleinfo.h. Referenced by loadAll(). |
|
Toggles whether the represented module needs root privileges. Use with caution.
Definition at line 214 of file kcmoduleinfo.h. Referenced by loadAll(). |
|
Definition at line 220 of file kcmoduleinfo.h. Referenced by loadAll(). |
|
Sets the object's documentation path.
Definition at line 227 of file kcmoduleinfo.h. Referenced by loadAll(). |
|
Reads the service entries specific for KCModule from the desktop file. The usual desktop entries are read in
Definition at line 117 of file kcmoduleinfo.cpp. References setDocPath(), setHandle(), setIsHiddenByDefault(), setNeedsRootPrivileges(), and setWeight(). |
The documentation for this class was generated from the following files: