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 44 of file script.h.
Public Member Functions | |
| Script (Interpreter *interpreter, Action *action) | |
| virtual | ~Script () |
| Interpreter * | interpreter () const |
| Action * | action () const |
| virtual void | execute ()=0 |
| virtual QStringList | functionNames ()=0 |
| virtual QVariant | callFunction (const QString &name, const QVariantList &args=QVariantList())=0 |
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 script.cpp.
| Script::~Script | ( | ) | [virtual] |
Member Function Documentation
| Interpreter * Script::interpreter | ( | ) | const |
- Returns:
- the Interpreter instance that was used to created this Script .
Definition at line 56 of file script.cpp.
| Action * Script::action | ( | ) | const |
| virtual void Kross::Script::execute | ( | ) | [pure virtual] |
| virtual QStringList Kross::Script::functionNames | ( | ) | [pure virtual] |
| virtual QVariant Kross::Script::callFunction | ( | const QString & | name, | |
| const QVariantList & | args = QVariantList() | |||
| ) | [pure virtual] |
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.
The documentation for this class was generated from the following files:
KDE 4.0 API Reference