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

Kross

  • sources
  • kde-4.12
  • kdelibs
  • kross
  • qts
qts/script.h
Go to the documentation of this file.
1 /***************************************************************************
2  * script.h
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 #ifndef KROSS_QTS_SCRIPT_H
21 #define KROSS_QTS_SCRIPT_H
22 
23 #include <kross/core/krossconfig.h>
24 #include <kross/core/interpreter.h>
25 #include <kross/core/manager.h>
26 #include <kross/core/script.h>
27 #include <kross/core/action.h>
28 #include <kross/core/object.h>
29 
30 namespace Kross {
31 
38  class EcmaScript : public Kross::Script
39  {
40  Q_OBJECT
41  public:
42 
51  EcmaScript(Kross::Interpreter* interpreter, Kross::Action* action);
52 
56  virtual ~EcmaScript();
57 
58  public Q_SLOTS:
59 
63  virtual void execute();
64 
68  virtual QStringList functionNames();
69 
77  virtual QVariant callFunction(const QString& name, const QVariantList& args = QVariantList());
78 
85  virtual QVariant evaluate(const QByteArray& code);
86 
90  QObject* engine() const;
91 
92  private:
93  class Private;
94  Private* const d;
95  };
96 
97 }
98 
99 #endif
QVariant
Kross::EcmaScript::functionNames
virtual QStringList functionNames()
Definition: qts/script.cpp:210
Kross::EcmaScript::execute
virtual void execute()
Executes the script.
Definition: qts/script.cpp:178
Kross::Script
Base class for interpreter dependent functionality each script provides.
Definition: core/script.h:43
Kross::EcmaScript::callFunction
virtual QVariant callFunction(const QString &name, const QVariantList &args=QVariantList())
Execute a function.
Definition: qts/script.cpp:227
name
const char * name(StandardAction id)
QString
QObject
interpreter.h
Kross::EcmaScript::engine
QObject * engine() const
Definition: qts/script.cpp:269
script.h
action.h
QStringList
Kross::Script::interpreter
Interpreter * interpreter() const
Definition: core/script.cpp:56
manager.h
Kross::Interpreter
Base class for interpreter implementations.
Definition: core/interpreter.h:177
Kross::EcmaScript::~EcmaScript
virtual ~EcmaScript()
Destructor.
Definition: qts/script.cpp:172
Kross::EcmaScript::evaluate
virtual QVariant evaluate(const QByteArray &code)
Evaluate some scripting code.
Definition: qts/script.cpp:254
object.h
krossconfig.h
Kross::Script::action
Action * action() const
Definition: core/script.cpp:61
Kross::Action
The Action class is an abstract container to deal with scripts like a single standalone script file...
Definition: action.h:94
Kross::EcmaScript
The EcmaScript class implements a Kross::Script to handle a single script.
Definition: qts/script.h:38
Kross::EcmaScript::EcmaScript
EcmaScript(Kross::Interpreter *interpreter, Kross::Action *action)
Constructor.
Definition: qts/script.cpp:167
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:49:54 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



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