#include <scriptmanager.h>
Inheritance diagram for KScriptManager:

Public Slots | |
| void | runScript (const QString &scriptName, QObject *context=0, const QVariant &arg=0) |
Signals | |
| void | scriptError (const QString &msg) |
| void | scriptWarning (const QString &msg) |
| void | scriptOutput (const QString &msg) |
| void | scriptProgress (int percent) |
| void | scriptDone (KScriptClientInterface::Result result, const QVariant &returned) |
Public Methods | |
| KScriptManager (QObject *parent, const char *name) | |
| virtual | ~KScriptManager () |
| bool | addScript (const QString &scriptDesktopFile) |
| bool | removeScript (const QString &scriptName) |
| QStringList | scripts () |
| void | clear () |
| void | error (const QString &msg) |
| void | warning (const QString &msg) |
| void | output (const QString &msg) |
| void | progress (int percent) |
| void | done (KScriptClientInterface::Result result, const QVariant &returned) |
Definition at line 37 of file scriptmanager.h.
|
||||||||||||
|
Create a new instance of the script engine. |
|
|
Destroy the current script engine. |
|
|
Add a new script instance to the script engine. This should be the full name and path to the desktop file. |
|
|
Clear all script intstances in memory |
|
||||||||||||
|
This function will allow feedback on completion of the script. It turns the result as a KScriptInteface::Result, and a return value as a QVariant Implements KScriptClientInterface. Definition at line 97 of file scriptmanager.h. References scriptDone(). |
|
|
This function will allow the main application of any errors that have occured during processing of the script. Implements KScriptClientInterface. Definition at line 74 of file scriptmanager.h. References scriptError(). |
|
|
This function will allow the main application of any normal output that has occured during the processing of the script. Implements KScriptClientInterface. Definition at line 84 of file scriptmanager.h. References scriptOutput(). |
|
|
This function will allow feedback to any progress bars in the main application as to how far along the script is. This is very useful when a script is processing files or doing some long operation that is of a known duration. Implements KScriptClientInterface. Definition at line 91 of file scriptmanager.h. References scriptProgress(). |
|
|
Remove a script instance from the script engine.
|
|
||||||||||||||||
|
Run the selected script |
|
||||||||||||
|
Send out a signal of the exit status of the script Referenced by done(). |
|
|
Send out a signal of the error message from the current running script. Referenced by error(). |
|
|
Send out a signal of the output message from the current running script. Referenced by output(). |
|
|
Send out a signal of the progress of the current running script. Referenced by progress(). |
|
|
Access the names of script instances from the script engine.
|
|
|
Send out a signal of the warning message from the current running script. Referenced by warning(). |
|
|
This function will allow the main application of any warnings that have occured during the processing of the script. Implements KScriptClientInterface. Definition at line 79 of file scriptmanager.h. References scriptWarning(). |
1.2.18