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 () | |
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 | factoryName () 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 |
bool | needsTest () const |
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 | setNeedsTest (bool val) |
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 54 of file kcmoduleinfo.cpp. |
|
Same as above but takes a KService::Ptr as argument.
Definition at line 59 of file kcmoduleinfo.cpp. |
|
Same as above but takes a KCModuleInfo as argument.
Definition at line 64 of file kcmoduleinfo.cpp. |
|
Same as above but creates an empty KCModuleInfo. You should not normally call this.
Definition at line 48 of file kcmoduleinfo.cpp. |
|
Default destructor.
Definition at line 115 of file kcmoduleinfo.cpp. |
Member Function Documentation
|
Assignment operator.
Definition at line 73 of file kcmoduleinfo.cpp. |
|
Equal operator.
Definition at line 105 of file kcmoduleinfo.cpp. Referenced by operator!=(). |
|
Definition at line 110 of file kcmoduleinfo.cpp. References operator==(). |
|
Definition at line 112 of file kcmoduleinfo.h. |
|
Definition at line 117 of file kcmoduleinfo.h. |
|
Returns the module's factory name, if it's set. If not, the library name is returned.
Definition at line 93 of file kcmoduleinfo.cpp. References library(). |
|
Definition at line 130 of file kcmoduleinfo.h. Referenced by KCModuleContainer::addModule(). |
|
Definition at line 136 of file kcmoduleinfo.h. Referenced by KCModuleProxy::runAsRoot(). |
|
Definition at line 141 of file kcmoduleinfo.h. Referenced by KCModuleContainer::addModule(). |
|
Definition at line 146 of file kcmoduleinfo.h. Referenced by KCModuleContainer::addModule(). |
|
Definition at line 181 of file kcmoduleinfo.cpp. |
|
Definition at line 156 of file kcmoduleinfo.h. Referenced by factoryName(). |
|
Definition at line 190 of file kcmoduleinfo.cpp. References QString::isEmpty(). Referenced by KCModuleProxy::realModule(). |
|
Definition at line 202 of file kcmoduleinfo.cpp. |
|
Definition at line 211 of file kcmoduleinfo.cpp. Referenced by KCModuleContainer::addModule(). |
|
Definition at line 220 of file kcmoduleinfo.cpp. |
|
Definition at line 228 of file kcmoduleinfo.cpp. |
|
Sets the object's keywords.
Definition at line 195 of file kcmoduleinfo.h. |
|
Sets the object's name.
Definition at line 201 of file kcmoduleinfo.h. |
|
Sets the object's name.
Definition at line 207 of file kcmoduleinfo.h. |
|
Sets the object's icon.
Definition at line 213 of file kcmoduleinfo.h. |
|
Set the object's library.
Definition at line 219 of file kcmoduleinfo.h. |
|
Sets the factory name.
Definition at line 225 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 233 of file kcmoduleinfo.h. Referenced by loadAll(). |
|
Sets if the module should be tested for loading.
Definition at line 233 of file kcmoduleinfo.cpp. Referenced by loadAll(). |
|
Toggles whether the represented module needs root privileges. Use with caution.
Definition at line 248 of file kcmoduleinfo.h. Referenced by loadAll(). |
|
Definition at line 254 of file kcmoduleinfo.h. Referenced by loadAll(). |
|
Sets the object's documentation path.
Definition at line 261 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 148 of file kcmoduleinfo.cpp. References QVariant::asBool(), QVariant::isValid(), setDocPath(), setHandle(), setIsHiddenByDefault(), setNeedsRootPrivileges(), setNeedsTest(), setWeight(), QVariant::toBool(), and QVariant::toInt(). |
The documentation for this class was generated from the following files: