1/*
2 * Copyright (c) 2009 Igor Trindade Oliveira <igor_trindade@yahoo.com.br>
3 *
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Lesser General Public
6 * License as published by the Free Software Foundation; either
7 * version 2.1 of the License, or (at your option) any later version.
8 *
9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * Lesser General Public License for more details.
13 *
14 * You should have received a copy of the GNU Lesser General Public
15 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18#ifndef SCRIPT_H
19#define SCRIPT_H
20
21#include <kross/core/action.h>
22#include <QHash>
23
24class Script : public QObject
25{
26 Q_OBJECT
27 public:
28 Script();
29 void configure(const QString &path);
30 void insertObject(QObject *object, const QString &objectName);
31
32 public slots:
33 Q_SCRIPTABLE void include( const QString &path );
34 Q_SCRIPTABLE QString absoluteFileName( const QString &path );
35
36 private slots:
37 void start();
38 void finished( Kross::Action *action );
39
40 private:
41 Kross::Action *action;
42};
43
44#endif
45