KCModuleInfo Class Reference
A class that provides information about a KCModule. More...
#include <kcmoduleinfo.h>
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 49 of file kcmoduleinfo.h.
Constructor & Destructor Documentation
|
Constructs a KCModuleInfo.
Definition at line 33 of file kcmoduleinfo.cpp. References endl(), kdWarning(), and KService::serviceByStorageId(). |
|
Same as above but takes a KService::Ptr as argument.
Definition at line 48 of file kcmoduleinfo.cpp. References endl(), k_funcinfo, and kdDebug(). |
|
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 104 of file kcmoduleinfo.h. |
|
Definition at line 109 of file kcmoduleinfo.h. |
|
Definition at line 114 of file kcmoduleinfo.h. Referenced by KCMultiDialog::addModule(). |
|
Definition at line 120 of file kcmoduleinfo.h. Referenced by KCMultiDialog::addModule(). |
|
Definition at line 125 of file kcmoduleinfo.h. Referenced by KCMultiDialog::addModule(). |
|
Definition at line 130 of file kcmoduleinfo.h. Referenced by KCMultiDialog::addModule(). |
|
Definition at line 147 of file kcmoduleinfo.cpp. |
|
Definition at line 140 of file kcmoduleinfo.h. Referenced by 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 170 of file kcmoduleinfo.h. |
|
Sets the object's name.
Definition at line 176 of file kcmoduleinfo.h. |
|
Sets the object's name.
Definition at line 182 of file kcmoduleinfo.h. |
|
Sets the object's icon.
Definition at line 188 of file kcmoduleinfo.h. |
|
Set the object's library.
Definition at line 194 of file kcmoduleinfo.h. |
|
Sets the factory name.
Definition at line 200 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 208 of file kcmoduleinfo.h. Referenced by loadAll(). |
|
Toggles whether the represented module needs root privileges. Use with caution.
Definition at line 215 of file kcmoduleinfo.h. Referenced by loadAll(). |
|
Definition at line 221 of file kcmoduleinfo.h. Referenced by loadAll(). |
|
Sets the object's documentation path.
Definition at line 228 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: