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

Detailed Description
Base class for interpreter dependent functionality each script provides.Each Action holds a pointer to a class that implements the Script functionality for the defined Interpreter .
Definition at line 43 of file core/script.h.
Public Slots | |
Action * | action () const |
virtual QVariant | callFunction (const QString &name, const QVariantList &args=QVariantList())=0 |
virtual void | execute ()=0 |
virtual QStringList | functionNames ()=0 |
Interpreter * | interpreter () const |
Public Member Functions | |
Script (Interpreter *interpreter, Action *action) | |
virtual | ~Script () |
Constructor & Destructor Documentation
Script::Script | ( | Interpreter * | interpreter, | |
Action * | action | |||
) |
Constructor.
- Parameters:
-
interpreter The Interpreter instance that was used to created this Script instance. Action The Action instance this script is associated with.
Definition at line 41 of file core/script.cpp.
Script::~Script | ( | ) | [virtual] |
Member Function Documentation
Action * Script::action | ( | ) | const [slot] |
virtual QVariant Kross::Script::callFunction | ( | const QString & | name, | |
const QVariantList & | args = QVariantList() | |||
) | [pure virtual, slot] |
Call a function in the script.
- Parameters:
-
name The name of the function which should be called. args The optional list of arguments.
Implemented in Kross::KjsScript, and Kross::EcmaScript.
virtual void Kross::Script::execute | ( | ) | [pure virtual, slot] |
virtual QStringList Kross::Script::functionNames | ( | ) | [pure virtual, slot] |
Interpreter * Script::interpreter | ( | ) | const [slot] |
- Returns:
- the Interpreter instance that was used to created this Script .
Definition at line 56 of file core/script.cpp.
The documentation for this class was generated from the following files: