/* This file is part of KDevelop Copyright 2009 Andreas Pakulat Copyright 2009 Niko Sams This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This library 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 Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifndef PLASMOIDEXECUTIONJOB_H #define PLASMOIDEXECUTIONJOB_H #include #include class KUrl; class ExecutePlasmoidPlugin; namespace KDevelop { class ILaunchConfiguration; class ProcessLineMaker; class OutputModel; class CommandExecutor; } class KProcess; class PlasmoidExecutionJob : public KDevelop::OutputJob { Q_OBJECT public: PlasmoidExecutionJob( ExecutePlasmoidPlugin* parent, KDevelop::ILaunchConfiguration* cfg ); virtual void start(); virtual bool doKill(); KDevelop::OutputModel* model(); static QString executable(KDevelop::ILaunchConfiguration* cfg); static QStringList arguments(KDevelop::ILaunchConfiguration* cfg); static QString workingDirectory(KDevelop::ILaunchConfiguration* cfg); public slots: void slotCompleted(int); void slotFailed(QProcess::ProcessError); private: KDevelop::CommandExecutor* m_process; }; #endif