Kross
Kross::EcmaScript Class Reference
#include <script.h>
Inheritance diagram for Kross::EcmaScript:

Detailed Description
The EcmaScript class implements a Kross::Script to handle a single script.Each script and script file will have its own EcmaScript instance as container for a Ecma QtScript that is managed by the Kross::Action class.
Definition at line 38 of file qts/script.h.
Public Slots | |
virtual QVariant | callFunction (const QString &name, const QVariantList &args=QVariantList()) |
QObject * | engine () const |
virtual void | execute () |
virtual QStringList | functionNames () |
Public Member Functions | |
EcmaScript (Kross::Interpreter *interpreter, Kross::Action *action) | |
virtual | ~EcmaScript () |
Constructor & Destructor Documentation
EcmaScript::EcmaScript | ( | Kross::Interpreter * | interpreter, | |
Kross::Action * | action | |||
) |
Constructor.
- Parameters:
-
interpreter The EcmaInterpreter instance this script belongs to. action The Kross::Action instance that contains details about the script and that decorates this script.
Definition at line 154 of file qts/script.cpp.
EcmaScript::~EcmaScript | ( | ) | [virtual] |
Member Function Documentation
QVariant EcmaScript::callFunction | ( | const QString & | name, | |
const QVariantList & | args = QVariantList() | |||
) | [virtual, slot] |
Execute a function.
- Parameters:
-
name The name of the function that should be called. args The optional arguments for the function.
- Returns:
- The return value of the function.
Implements Kross::Script.
Definition at line 214 of file qts/script.cpp.
QObject * EcmaScript::engine | ( | ) | const [slot] |
void EcmaScript::execute | ( | ) | [virtual, slot] |
QStringList EcmaScript::functionNames | ( | ) | [virtual, slot] |
- Returns:
- a list of function-names.
Implements Kross::Script.
Definition at line 197 of file qts/script.cpp.
The documentation for this class was generated from the following files: