Kross

core/script.cpp
1 /***************************************************************************
2  * script.cpp
3  * This file is part of the KDE project
4  * copyright (C)2004-2006 by Sebastian Sauer ([email protected])
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 {
29 
31 class Script::Private
32 {
33 public:
37  Action *action;
38 };
39 
40 }
41 
43  : QObject()
44  , ErrorInterface()
45  , d(new Private())
46 {
47  //setObjectName( action->objectName() );
48  d->interpreter = interpreter;
49  d->action = action;
50 }
51 
53 {
54  delete d;
55 }
56 
58 {
59  return d->interpreter;
60 }
61 
63 {
64  return d->action;
65 }
66 
Interface for error-handling.
Definition: action.cpp:36
Script(Interpreter *interpreter, Action *action)
Constructor.
Definition: core/script.cpp:42
virtual ~Script()
Destructor.
Definition: core/script.cpp:52
Interpreter * interpreter() const
Definition: core/script.cpp:57
Base class for interpreter implementations.
Action * action() const
Definition: core/script.cpp:62
The Action class is an abstract container to deal with scripts like a single standalone script file...
Definition: action.h:95
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Sep 19 2020 22:58:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.