org.kde.koala
public class KCModuleLoader extends Object implements QtSupport
UNKNOWN: Loads a KControl Module. KCModuleLoader tries in several ways to locate and load a KCModule. If loading fails a zero pointer is returned. \n It is very unlikely KCModuleLoader is what you want and KCModuleProxy suits your needs. @class Loads a KControl Module.
Field Summary | |
---|---|
static int | Both |
static int | Dialog |
static int | Inline |
static int | None
Determines the way errors are reported |
Constructor Summary | |
---|---|
protected | KCModuleLoader(Class dummy) |
KCModuleLoader() |
Method Summary | |
---|---|
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
protected void | finalize() Deletes the wrapped C++ instance |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
static KCModule | loadModule(KCModuleInfo module, int report, boolean withFallback, QWidget parent, String name, String[] args)
Loads a KCModule. |
static KCModule | loadModule(KCModuleInfo module, int report, boolean withFallback, QWidget parent, String name) |
static KCModule | loadModule(KCModuleInfo module, int report, boolean withFallback, QWidget parent) |
static KCModule | loadModule(KCModuleInfo module, int report, boolean withFallback) |
static KCModule | loadModule(KCModuleInfo module, int report) |
static KCModule | loadModule(String module, int report, QWidget parent, String name, String[] args)
Loads a KCModule. |
static KCModule | loadModule(String module, int report, QWidget parent, String name) |
static KCModule | loadModule(String module, int report, QWidget parent) |
static KCModule | loadModule(String module, int report) |
static KCModule | reportError(int report, String text, String details, QWidget parent)
Returns a KCModule containing the messages report and text. |
static boolean | testModule(String module)
Checks whether an KCModule should be shown by running its
test function. |
static boolean | testModule(KCModuleInfo module)
Convenience function, essentially the same as above. |
static void | unloadModule(KCModuleInfo mod)
Unloads the module's library |
UNKNOWN: Determines the way errors are reported
Parameters: module what module to load report see ErrorReporting withFallback if true and loading failed a separate window with the module may appear and a zero pointer is a returned
Returns: a pointer to the loaded @ref KCModule
UNKNOWN: Loads a @ref KCModule.
Parameters: module what module to load report see ErrorReporting with the module may appear and a zero pointer is a returned
Returns: a pointer to the loaded @ref KCModule
UNKNOWN: Loads a @ref KCModule.
report
and text.
Parameters: report the type of error reporting, see ErrorReporting text the main message details any additional details
UNKNOWN: Returns a KCModule containing the messages report
and text.
extern "C" { boolean 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.
Parameters: module the module to check
Returns: true if the module should be loaded
UNKNOWN: Checks whether an KCModule should be shown by running its test function.
Parameters: module the module to check
Returns: true if the module should be loaded
UNKNOWN: Convenience function, essentially the same as above.
Parameters: mod What module to unload for
UNKNOWN: Unloads the module's library