KCModuleLoader Class Reference
[KControl module classes]
#include <kcmoduleloader.h>
Detailed Description
Loads a KControl Module.
KCModuleLoader tries in several ways to locate and load a KCModule. If loading fails a zero pointer is returned.
It is very unlikely KCModuleLoader is what you want and KCModuleProxy suits your needs.
- Author:
- Matthias Hoelzer-Kluepfel <mhk@kde.org>
Frans Englich <frans.englich@telia.com>
- Since:
- 3.2
Definition at line 45 of file kcmoduleloader.h.
Public Types | |
enum | ErrorReporting { None = 0, Inline = 1, Dialog = 2, Both = 3 } |
Static Public Member Functions | |
static KCModule * | loadModule (const KCModuleInfo &module, bool withFallback=true, QWidget *parent=0, const char *name=0, const QStringList &args=QStringList()) KDE_DEPRECATED |
static KCModule * | loadModule (const QString &module, QWidget *parent=0, const char *name=0, const QStringList &args=QStringList()) KDE_DEPRECATED |
static KCModule * | loadModule (const KCModuleInfo &module, ErrorReporting report, bool withFallback=true, QWidget *parent=0, const char *name=0, const QStringList &args=QStringList()) |
static KCModule * | loadModule (const QString &module, ErrorReporting report, QWidget *parent=0, const char *name=0, const QStringList &args=QStringList()) |
static void | unloadModule (const KCModuleInfo &mod) |
static void | showLastLoaderError (QWidget *parent) KDE_DEPRECATED |
static bool | testModule (const QString &module) |
static bool | testModule (const KCModuleInfo &module) |
static KCModule * | reportError (ErrorReporting report, const QString &text, QString details, QWidget *parent) |
Member Enumeration Documentation
|
Determines the way errors are reported.
Definition at line 84 of file kcmoduleloader.h. |
Member Function Documentation
|
Loads a KCModule. If loading fails a zero pointer is returned.
Definition at line 184 of file kcmoduleloader.cpp. |
|
Loads a KCModule. If loading fails a zero pointer is returned.
Definition at line 121 of file kcmoduleloader.cpp. |
|
Loads a KCModule. If loading fails a zero pointer is returned.
Definition at line 178 of file kcmoduleloader.cpp. |
|
Loads a KCModule. If loading fails a zero pointer is returned.
Definition at line 116 of file kcmoduleloader.cpp. |
|
Returns a KCModule containing the messages
Definition at line 270 of file kcmoduleloader.cpp. |
|
Display a message box explaining an error occured and possible reasons to why.
Definition at line 203 of file kcmoduleloader.cpp. |
|
Convenience function, essentially the same as above.
Definition at line 221 of file kcmoduleloader.cpp. |
|
Checks whether an KCModule should be shown by running its test function. If it is unsure whether a module should be shown, it should be made available, leaving the decision to the user. If false is returned, the module should not be loaded in any interface. A module declares it needs to be tested by having "X-KDE-Test-Module=true" in its desktop file. When that line exists, the following code must be available in the module's library:
extern "C" { bool test_moduleName() { // Code testing for hardware/software presence. return true; // and the modue will be loaded. } } where moduleName is the library name for the module.
Definition at line 216 of file kcmoduleloader.cpp. |
|
Unloads the module's library.
Definition at line 190 of file kcmoduleloader.cpp. |
The documentation for this class was generated from the following files: