Kross::EcmaPlugin Class Reference
#include <plugin.h>
Inheritance diagram for Kross::EcmaPlugin:

Public Member Functions | |
| EcmaPlugin (QObject *parent=0) | |
| virtual | ~EcmaPlugin () |
| virtual void | initialize (const QString &key, QScriptEngine *engine) |
| virtual QStringList | keys () const |
Detailed Description
Kross QtScript Extension that provides access to the Kross Scripting Framework within the QtScript scripting language.
This EcmaPlugin does implement the extension named "kross".
Constructor & Destructor Documentation
| EcmaPlugin::EcmaPlugin | ( | QObject * | parent = 0 | ) |
Constructor.
Definition at line 42 of file qts/plugin.cpp.
| EcmaPlugin::~EcmaPlugin | ( | ) | [virtual] |
Destructor.
Definition at line 49 of file qts/plugin.cpp.
Member Function Documentation
| void EcmaPlugin::initialize | ( | const QString & | key, |
| QScriptEngine * | engine | ||
| ) | [virtual] |
Initializes this extension.
- Parameters:
-
key The key to differ between etensions. We provide the extension which key is "kross". engine The QScriptEngine instance.
Definition at line 55 of file qts/plugin.cpp.
| QStringList EcmaPlugin::keys | ( | ) | const [virtual] |
Returns the list of keys this plugin supports.
- Returns:
- a QStringList with the single item "kross" to let QtScript know, that we provide an extension with that key.
Definition at line 71 of file qts/plugin.cpp.
The documentation for this class was generated from the following files:
KDE 4.7 API Reference