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.

Parameters
parentOptional QObject parent of this QObject.

Definition at line 40 of file plugin.cpp.

EcmaPlugin::~EcmaPlugin ( )
virtual

Destructor.

Definition at line 47 of file plugin.cpp.

Member Function Documentation

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

Initializes this extension.

Parameters
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
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-2020 The KDE developers.
Generated on Wed Sep 23 2020 22:59:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.