1 /* 2 Actiona 3 Copyright (C) 2005 Jonathan Mercier-Ganady 4 5 Actiona is free software: you can redistribute it and/or modify 6 it under the terms of the GNU General Public License as published by 7 the Free Software Foundation, either version 3 of the License, or 8 (at your option) any later version. 9 10 Actiona 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 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with this program. If not, see <http://www.gnu.org/licenses/>. 17 18 Contact : jmgr@jmgr.info 19 */ 20 21 #pragma once 22 23 #include "actioninstance.h" 24 25 namespace Actions 26 { 27 class NoopInstance : public ActionTools::ActionInstance 28 { 29 Q_OBJECT 30 31 public: 32 NoopInstance(const ActionTools::ActionDefinition *definition, QObject *parent = nullptr) ActionInstance(definition,parent)33 : ActionTools::ActionInstance(definition, parent) {} 34 startExecution()35 void startExecution() override 36 { 37 executionEnded(); 38 } 39 40 private: 41 Q_DISABLE_COPY(NoopInstance) 42 }; 43 } 44 45