• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

Kross

  • kross
  • qts
qts/interpreter.cpp
Go to the documentation of this file.
1/***************************************************************************
2 * interpreter.cpp
3 * This file is part of the KDE project
4 * copyright (C)2007-2008 by Sebastian Sauer (mail@dipe.org)
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17 * Boston, MA 02110-1301, USA.
18 ***************************************************************************/
19
20#include "interpreter.h"
21#include "script.h"
22
23// The in krossconfig.h defined KROSS_EXPORT_INTERPRETER macro defines an
24// exported C function used as factory for Kross::EcmaInterpreter instances.
25KROSS_EXPORT_INTERPRETER( Kross::EcmaInterpreter )
26
27using namespace Kross;
28
29namespace Kross {
30
32 class EcmaInterpreter::Private
33 {
34 public:
35 };
36
37}
38
39EcmaInterpreter::EcmaInterpreter(Kross::InterpreterInfo* info)
40 : Kross::Interpreter(info)
41 , d(new Private())
42{
43 //krossdebug( QString("EcmaInterpreter::EcmaInterpreter") );
44}
45
46EcmaInterpreter::~EcmaInterpreter()
47{
48 //krossdebug( QString("EcmaInterpreter::~EcmaInterpreter") );
49 delete d;
50}
51
52Kross::Script* EcmaInterpreter::createScript(Kross::Action* action)
53{
54 return new EcmaScript(this, action);
55}
56
Kross::Action
The Action class is an abstract container to deal with scripts like a single standalone script file.
Definition: action.h:99
Kross::EcmaInterpreter
The EcmaInterpreter class implements a Kross::Interpreter to provide a factory for EcmaScript instanc...
Definition: qts/interpreter.h:38
Kross::EcmaInterpreter::EcmaInterpreter
EcmaInterpreter(Kross::InterpreterInfo *info)
Constructor.
Definition: qts/interpreter.cpp:39
Kross::EcmaInterpreter::createScript
virtual Kross::Script * createScript(Kross::Action *action)
Factory method to create a new EcmaScript instance.
Definition: qts/interpreter.cpp:52
Kross::EcmaInterpreter::~EcmaInterpreter
virtual ~EcmaInterpreter()
Destructor.
Definition: qts/interpreter.cpp:46
Kross::EcmaInterpreter::EcmaScript
friend class EcmaScript
Definition: qts/interpreter.h:39
Kross::InterpreterInfo
The InterpreterInfo class provides abstract information about a Interpreter before the interpreter-ba...
Definition: core/interpreter.h:44
Kross::Interpreter
Base class for interpreter implementations.
Definition: core/interpreter.h:178
Kross::Script
Base class for interpreter dependent functionality each script provides.
Definition: core/script.h:44
KROSS_EXPORT_INTERPRETER
#define KROSS_EXPORT_INTERPRETER(InterpreterImpl)
Definition: krossconfig.h:64
Kross
Definition: action.cpp:36
interpreter.h
script.h
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kross

Skip menu "Kross"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal