|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KCModuleLoader
public class KCModuleLoader
Field Summary | |
---|---|
static int |
Both
|
static int |
Dialog
|
static int |
Inline
|
static int |
None
Determines the way errors are reported |
Constructor Summary | |
---|---|
|
KCModuleLoader()
|
protected |
KCModuleLoader(java.lang.Class dummy)
|
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)
|
static KCModule |
loadModule(KCModuleInfo module,
int report,
boolean withFallback)
|
static KCModule |
loadModule(KCModuleInfo module,
int report,
boolean withFallback,
org.kde.qt.QWidget parent)
|
static KCModule |
loadModule(KCModuleInfo module,
int report,
boolean withFallback,
org.kde.qt.QWidget parent,
java.lang.String name)
|
static KCModule |
loadModule(KCModuleInfo module,
int report,
boolean withFallback,
org.kde.qt.QWidget parent,
java.lang.String name,
java.lang.String[] args)
Loads a KCModule . |
static KCModule |
loadModule(java.lang.String module,
int report)
|
static KCModule |
loadModule(java.lang.String module,
int report,
org.kde.qt.QWidget parent)
|
static KCModule |
loadModule(java.lang.String module,
int report,
org.kde.qt.QWidget parent,
java.lang.String name)
|
static KCModule |
loadModule(java.lang.String module,
int report,
org.kde.qt.QWidget parent,
java.lang.String name,
java.lang.String[] args)
Loads a KCModule . |
static KCModule |
reportError(int report,
java.lang.String text,
java.lang.String details,
org.kde.qt.QWidget parent)
Returns a KCModule containing the messages report and text. |
static boolean |
testModule(KCModuleInfo module)
Convenience function, essentially the same as above. |
static boolean |
testModule(java.lang.String module)
Checks whether an KCModule should be shown by running its test function. |
static void |
unloadModule(KCModuleInfo mod)
Unloads the module's library |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int None
public static final int Inline
public static final int Dialog
public static final int Both
Constructor Detail |
---|
protected KCModuleLoader(java.lang.Class dummy)
public KCModuleLoader()
Method Detail |
---|
public static KCModule loadModule(KCModuleInfo module, int report, boolean withFallback, org.kde.qt.QWidget parent, java.lang.String name, java.lang.String[] args)
KCModule
. If loading fails a zero pointer is returned.
module
- what module to loadreport
- see ErrorReportingwithFallback
- if true and loading failed a separate window
with the module may appear and a zero pointer is a returned
public static KCModule loadModule(KCModuleInfo module, int report, boolean withFallback, org.kde.qt.QWidget parent, java.lang.String name)
public static KCModule loadModule(KCModuleInfo module, int report, boolean withFallback, org.kde.qt.QWidget parent)
public static KCModule loadModule(KCModuleInfo module, int report, boolean withFallback)
public static KCModule loadModule(KCModuleInfo module, int report)
public static KCModule loadModule(java.lang.String module, int report, org.kde.qt.QWidget parent, java.lang.String name, java.lang.String[] args)
KCModule
. If loading fails a zero pointer is returned.
module
- what module to loadreport
- see ErrorReporting
with the module may appear and a zero pointer is a returned
public static KCModule loadModule(java.lang.String module, int report, org.kde.qt.QWidget parent, java.lang.String name)
public static KCModule loadModule(java.lang.String module, int report, org.kde.qt.QWidget parent)
public static KCModule loadModule(java.lang.String module, int report)
public static void unloadModule(KCModuleInfo mod)
mod
- What module to unload forpublic static boolean testModule(java.lang.String module)
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.
module
- the module to check
public static boolean testModule(KCModuleInfo module)
module
- the module to check
public static KCModule reportError(int report, java.lang.String text, java.lang.String details, org.kde.qt.QWidget parent)
report
and text.
report
- the type of error reporting, see ErrorReportingtext
- the main messagedetails
- any additional detailsprotected void finalize() throws java.lang.InternalError
finalize
in class java.lang.Object
java.lang.InternalError
public void dispose()
public boolean isDisposed()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |