KCModuleInfo Class Reference
#include <kcmoduleinfo.h>
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.
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 () |
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 61 of file kcmoduleinfo.cpp. |
|
Same as above but takes a KCModuleInfo as argument.
Definition at line 66 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 117 of file kcmoduleinfo.cpp. |
Member Function Documentation
|
Definition at line 141 of file kcmoduleinfo.h. |
|
Definition at line 183 of file kcmoduleinfo.cpp. |
|
Returns the module's factory name, if it's set. If not, the library name is returned.
Definition at line 95 of file kcmoduleinfo.cpp. |
|
Definition at line 112 of file kcmoduleinfo.h. |
|
Definition at line 192 of file kcmoduleinfo.cpp. |
|
Definition at line 146 of file kcmoduleinfo.h. |
|
Definition at line 222 of file kcmoduleinfo.cpp. |
|
Definition at line 117 of file kcmoduleinfo.h. |
|
Definition at line 156 of file kcmoduleinfo.h. |
|
Reads the service entries specific for KCModule from the desktop file. The usual desktop entries are read in init. Definition at line 150 of file kcmoduleinfo.cpp. |
|
Definition at line 130 of file kcmoduleinfo.h. |
|
Definition at line 213 of file kcmoduleinfo.cpp. |
|
Definition at line 230 of file kcmoduleinfo.cpp. |
|
Definition at line 112 of file kcmoduleinfo.cpp. |
|
Assignment operator.
Definition at line 75 of file kcmoduleinfo.cpp. |
|
Equal operator.
Definition at line 107 of file kcmoduleinfo.cpp. |
|
Definition at line 136 of file kcmoduleinfo.h. |
|
Sets the object's name.
Definition at line 207 of file kcmoduleinfo.h. |
|
Sets the object's documentation path.
Definition at line 261 of file kcmoduleinfo.h. |
|
Sets the factory name.
Definition at line 225 of file kcmoduleinfo.h. |
|
Sets the object's icon.
Definition at line 213 of file kcmoduleinfo.h. |
|
Definition at line 254 of file kcmoduleinfo.h. |
|
Sets the object's keywords.
Definition at line 195 of file kcmoduleinfo.h. |
|
Set the object's library.
Definition at line 219 of file kcmoduleinfo.h. |
|
Sets the object's name.
Definition at line 201 of file kcmoduleinfo.h. |
|
Toggles whether the represented module needs root privileges. Use with caution.
Definition at line 248 of file kcmoduleinfo.h. |
|
Sets if the module should be tested for loading.
Definition at line 235 of file kcmoduleinfo.cpp. |
|
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. |
|
Definition at line 204 of file kcmoduleinfo.cpp. |
The documentation for this class was generated from the following files: