File indexing completed on 2024-04-14 04:29:47
0001 /* 0002 * This file is part of KDevelop project 0003 * Copyright 2016 Patrick José Pereira <patrickelectric@gmail.com> 0004 * Copyright 2009 Andreas Pakulat <apaku@gmx.de> 0005 * 0006 * This program is free software; you can redistribute it and/or modify 0007 * it under the terms of the GNU Library General Public License as 0008 * published by the Free Software Foundation; either version 2 of the 0009 * License, or (at your option) any later version. 0010 * 0011 * This program is distributed in the hope that it will be useful, 0012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 0013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0014 * GNU General Public License for more details. 0015 * 0016 * You should have received a copy of the GNU General Public 0017 * License along with this program; if not, write to the 0018 * Free Software Foundation, Inc., 0019 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 0020 */ 0021 0022 #pragma once 0023 0024 #include <outputview/outputexecutejob.h> 0025 0026 namespace KDevelop 0027 { 0028 class ILaunchConfiguration; 0029 } 0030 0031 class LauncherJob : public KDevelop::OutputExecuteJob 0032 { 0033 Q_OBJECT 0034 0035 public: 0036 LauncherJob(QObject* parent, KDevelop::ILaunchConfiguration* cfg); 0037 0038 void start() override; 0039 0040 private: 0041 QString m_cfgname; 0042 0043 void output(const QStringList& l); 0044 KDevelop::OutputModel* model(); 0045 };