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)


parentOptional QObject parent of this QObject.

Definition at line 40 of file plugin.cpp.

EcmaPlugin::~EcmaPlugin ( )


Definition at line 47 of file plugin.cpp.

Member Function Documentation

void EcmaPlugin::initialize ( const QString key,
QScriptEngine *  engine 

Initializes this extension.

keyThe key to differ between etensions. We provide the extension which key is "kross".
engineThe QScriptEngine instance.

Definition at line 53 of file plugin.cpp.

QStringList EcmaPlugin::keys ( ) const

Returns the list of keys this plugin supports.

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

KDE's Doxygen guidelines are available online.