• 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
  • core
core/script.cpp
Go to the documentation of this file.
1 /***************************************************************************
2  * script.cpp
3  * This file is part of the KDE project
4  * copyright (C)2004-2006 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 "script.h"
21 #include "interpreter.h"
22 #include "action.h"
23 #include "krossconfig.h"
24 
25 using namespace Kross;
26 
27 namespace Kross {
28 
30  class Script::Private
31  {
32  public:
34  Interpreter* interpreter;
36  Action* action;
37  };
38 
39 }
40 
41 Script::Script(Interpreter* interpreter, Action* action)
42  : QObject()
43  , ErrorInterface()
44  , d( new Private() )
45 {
46  //setObjectName( action->objectName() );
47  d->interpreter = interpreter;
48  d->action = action;
49 }
50 
51 Script::~Script()
52 {
53  delete d;
54 }
55 
56 Interpreter* Script::interpreter() const
57 {
58  return d->interpreter;
59 }
60 
61 Action* Script::action() const
62 {
63  return d->action;
64 }
65 
66 #include "script.moc"
Kross::ErrorInterface
Interface for error-handling.
Definition: errorinterface.h:32
QObject
Kross::Script::Script
Script(Interpreter *interpreter, Action *action)
Constructor.
Definition: core/script.cpp:41
interpreter.h
Kross::Script::~Script
virtual ~Script()
Destructor.
Definition: core/script.cpp:51
script.h
action.h
Kross::Script::interpreter
Interpreter * interpreter() const
Definition: core/script.cpp:56
Kross::Interpreter
Base class for interpreter implementations.
Definition: core/interpreter.h:177
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
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