KCModuleLoader Class Reference
Loads a KControl Module. More...
#include <kcmoduleloader.h>
Static Public Member Functions | |
static KCModule * | loadModule (const KCModuleInfo &mod, bool withfallback=true, QWidget *parent=0, const char *name=0, const QStringList &args=QStringList()) |
static KCModule * | loadModule (const QString &module, QWidget *parent=0, const char *name=0, const QStringList &args=QStringList()) |
static void | unloadModule (const KCModuleInfo &mod) |
static void | showLastLoaderError (QWidget *parent) |
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>
- Since:
- 3.2
Definition at line 43 of file kcmoduleloader.h.
Member Function Documentation
|
Loads a KCModule. If loading fails a zero pointer is returned.
Definition at line 75 of file kcmoduleloader.cpp. References endl(), KLibLoader::findLibrary(), kdWarning(), KLibLoader::self(), and KApplication::startServiceByDesktopPath(). Referenced by loadModule(). |
|
Same as above but takes a QString instead of a KCModuleInfo as module specifier.
Definition at line 115 of file kcmoduleloader.cpp. References endl(), kdError(), loadModule(), and KService::serviceByDesktopName(). |
|
Unloads the module's library.
Definition at line 130 of file kcmoduleloader.cpp. References KCModuleInfo::library(), KLibLoader::self(), and KLibLoader::unloadLibrary(). Referenced by KCMultiDialog::addModule(). |
|
Display a message box explaining an error occured and possible reasons to why.
Definition at line 143 of file kcmoduleloader.cpp. References KMessageBox::detailedError(), and KLibLoader::self(). |
The documentation for this class was generated from the following files: