diff --git a/src/scripting/CMakeLists.txt b/src/scripting/CMakeLists.txt --- a/src/scripting/CMakeLists.txt +++ b/src/scripting/CMakeLists.txt @@ -1,11 +1,13 @@ set(scripting_SRCS + script.cpp scripthandler.cpp + scriptmanager.cpp taskaction.cpp ) add_library(scripting STATIC ${scripting_SRCS}) target_link_libraries(scripting - Qt5::Core Qt5::Qml + Qt5::Widgets ) diff --git a/src/scripting/script.h b/src/scripting/script.h new file mode 100644 --- /dev/null +++ b/src/scripting/script.h @@ -0,0 +1,58 @@ +#ifndef SCRIPT_H +/* This file is part of Zanshin + + Copyright 2017 Cedric Bonhomme + Copyright 2017 Yann Cetois + + 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 2 of + the License or (at your option) version 3 or any later version + accepted by the membership of KDE e.V. (or its successor approved + by the membership of KDE e.V.), which shall act as a proxy + defined in Section 14 of version 3 of the license. + + 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, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, + USA. +*/ + + +#define SCRIPT_H + +#include +#include +#include "scriptmanager.h" + +class Script : public QObject +{ + Q_OBJECT +public: + typedef QSharedPointer