Kross::EcmaPlugin

Search for usage in LXR

Kross::EcmaPlugin Class Reference

#include <plugin.h>

Inherits QScriptExtensionPlugin.

Public Member Functions

 EcmaPlugin (QObject *parent=nullptr)
 
 ~EcmaPlugin () override
 
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::EcmaPlugin ( QObject parent = nullptr)

Constructor.

Parameters
parentOptional QObject parent of this QObject.

Definition at line 40 of file plugin.cpp.

◆ ~EcmaPlugin()

EcmaPlugin::~EcmaPlugin ( )
override

Destructor.

Definition at line 47 of file plugin.cpp.

Member Function Documentation

◆ initialize()

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

Initializes this extension.

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

Definition at line 53 of file plugin.cpp.

◆ keys()

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-2023 The KDE developers.
Generated on Thu Sep 21 2023 04:02:21 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.