interfaces
ShellScript Class Reference
#include <shellscript.h>
Public Member Functions | |
void | kill () |
void | run (QObject *context=0, const QVariant &arg=0) |
QString | script () const |
void | setScript (const QString &scriptLibFile, const QString &method) |
void | setScript (const QString &scriptFile) |
ShellScript (KScriptClientInterface *parent, const char *name, const QStringList &args) | |
virtual | ~ShellScript () |
Detailed Description
Definition at line 27 of file shellscript.h.
Constructor & Destructor Documentation
ShellScript::ShellScript | ( | KScriptClientInterface * | parent, | |
const char * | name, | |||
const QStringList & | args | |||
) |
ShellScript::~ShellScript | ( | ) | [virtual] |
Definition at line 41 of file shellscript.cpp.
Member Function Documentation
void ShellScript::kill | ( | ) | [virtual] |
Run the actual script code This can both take a context object that will be shared between the main application and a variant that will contain the arguments.
Implements KScriptInterface.
Definition at line 61 of file shellscript.cpp.
QString ShellScript::script | ( | ) | const [virtual] |
Return the current script code data.
- Returns:
- QString containing the currenly runable code
Implements KScriptInterface.
Definition at line 45 of file shellscript.cpp.
Sets the path to the script library that we are going to embed.
The second argument is the function from the script library that we wish to call.
Implements KScriptInterface.
Definition at line 56 of file shellscript.cpp.
void ShellScript::setScript | ( | const QString & | scriptFile | ) | [virtual] |
Sets the path to the script library that we are going to embed.
Implements KScriptInterface.
Definition at line 50 of file shellscript.cpp.
The documentation for this class was generated from the following files: