diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-02-05 22:12:38 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-02-05 22:12:38 -0500 |
commit | 7f38027c62f3a6b6d7d7b43e542ecc114407e98b (patch) | |
tree | a57da6a7f30d817049674d7278de8310f457f3d1 /sigencore/RunScript.h | |
parent | 377ba703ae26fab07102724de5d45303e952f1ab (diff) | |
download | sigen-7f38027c62f3a6b6d7d7b43e542ecc114407e98b.tar.gz sigen-7f38027c62f3a6b6d7d7b43e542ecc114407e98b.tar.xz sigen-7f38027c62f3a6b6d7d7b43e542ecc114407e98b.zip |
Added function to handle running of scripts
Diffstat (limited to 'sigencore/RunScript.h')
-rw-r--r-- | sigencore/RunScript.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sigencore/RunScript.h b/sigencore/RunScript.h new file mode 100644 index 00000000..119f13a6 --- /dev/null +++ b/sigencore/RunScript.h @@ -0,0 +1,47 @@ +/* + * Copyright 2009 Ben Boeckel <MathStuf@gmail.com> + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License along + * with this program. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef SIGENCORE_RUNSCRIPT +#define SIGENCORE_RUNSCRIPT + +// Sigencore includes +#include "Global.h" + +// Qt includes +#include <QtCore/QMap> + +// Forward declarations +namespace Sigcore +{ +class Script; +} +namespace Kross +{ +class Action; +class ActionCollection; +} +class QObject; +class QString; + +namespace Sigencore +{ +typedef QMap<QString, QObject*> ObjectMap; + +SIGENCORE_EXPORT Kross::Action* runScript(const QString& name, const Sigcore::Script& script, const ObjectMap& objects, Kross::ActionCollection* collection); +} + +#endif |