Kross::EcmaPlugin
Kross::EcmaPlugin Class Reference
#include <plugin.h>
Inherits QScriptExtensionPlugin.
Public Member Functions | |
EcmaPlugin (QObject *parent=nullptr) | |
virtual | ~EcmaPlugin () |
void | initialize (const QString &key, QScriptEngine *engine) override |
QStringList | keys () const override |
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".
Definition at line 45 of file qts/plugin.h.
Constructor & Destructor Documentation
EcmaPlugin::EcmaPlugin | ( | QObject * | parent = nullptr | ) |
Constructor.
Definition at line 40 of file plugin.cpp.
|
virtual |
Destructor.
Definition at line 47 of file plugin.cpp.
Member Function Documentation
|
override |
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 53 of file plugin.cpp.
|
override |
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 69 of file plugin.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Jan 21 2021 23:01:38 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Jan 21 2021 23:01:38 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.