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 49 of file kcmoduleinfo.h.
Constructor & Destructor Documentation
|
Constructs a KCModuleInfo.
References endl(), kdWarning(), KService::Ptr, and KService::serviceByStorageId(). |
|
Same as above but takes a KService::Ptr as argument.
References endl(), k_funcinfo, kdDebug(), and KService::Ptr. |
|
Same as above but takes a KCModuleInfo as argument.
|
|
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.
References _fileName, _lib, and _name. Referenced by operator!=(). |
|
References operator==(). |
|
Referenced by KCModuleLoader::loadModule(). |
|
|
|
Referenced by KCMultiDialog::addModule(). |
|
References KService::Ptr. Referenced by KCMultiDialog::addModule(). |
|
Referenced by KCMultiDialog::addModule(). |
|
Referenced by KCMultiDialog::addModule(). |
|
|
|
Referenced by KCModuleLoader::loadModule(), and KCModuleLoader::unloadModule(). |
|
|
|
|
|
|
|
|
|
Sets the object's keywords.
|
|
Sets the object's name.
|
|
Sets the object's name.
|
|
Sets the object's icon.
|
|
Set the object's library.
|
|
Sets the factory name.
Referenced by loadAll(). |
|
Sets the object's weight property which determines in what order modules will be displayed. Default is 100.
Referenced by loadAll(). |
|
Toggles whether the represented module needs root privileges. Use with caution.
Referenced by loadAll(). |
|
Definition at line 221 of file kcmoduleinfo.h. Referenced by loadAll(). |
|
Sets the object's documentation path.
Referenced by loadAll(). |
|
Reads the service entries specific for KCModule from the desktop file. The usual desktop entries are read in
References setDocPath(), setHandle(), setIsHiddenByDefault(), setNeedsRootPrivileges(), and setWeight(). |
The documentation for this class was generated from the following files: