1
/***************************************************************************
3
* This file is part of the KDE project
4
* copyright (C)2004-2005 by Sebastian Sauer (mail@dipe.org)
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., 59 Temple Place - Suite 330,
17
* Boston, MA 02111-1307, USA.
18
***************************************************************************/
20
#include "kjsinterpreter.h"
22
//#include <kjsembed/kjsembedpart.h>
23
//#include <kjs/object.h>
25
using namespace Kross::Kjs;
27
namespace Kross { namespace Kjs {
29
class KjsInterpreterPrivate
32
//::KJSEmbed::KJSEmbedPart* kjspart;
37
KjsInterpreter::KjsInterpreter(Kross::Api::Manager* manager, const QString& interpretername)
38
: Kross::Api::Interpreter(manager, interpretername)
40
d = new KjsInterpreterPrivate();
41
//d->kjspart = new ::KJSEmbed::KJSEmbedPart(0L, "console", this, "krosskjs");
42
//d->kjspart = new ::KJSEmbed::KJSEmbedPart(0L, "console", 0, "krosskjs");
45
KjsInterpreter::~KjsInterpreter()
51
const QStringList KjsInterpreter::mimeTypes()
53
return QStringList() << "application/x-javascript";
56
Kross::Api::Script* KjsInterpreter::createScript(Kross::Api::ScriptContainer* scriptcontainer)