File indexing completed on 2024-04-14 04:31:19
0001 /* This file is part of KDevelop 0002 Copyright 2017 Anton Anikin <anton@anikin.xyz> 0003 0004 This program is free software; you can redistribute it and/or 0005 modify it under the terms of the GNU General Public 0006 License as published by the Free Software Foundation; either 0007 version 2 of the License, or (at your option) any later version. 0008 0009 This program is distributed in the hope that it will be useful, 0010 but WITHOUT ANY WARRANTY; without even the implied warranty of 0011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 0012 General Public License for more details. 0013 0014 You should have received a copy of the GNU General Public License 0015 along with this program; see the file COPYING. If not, write to 0016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 0017 Boston, MA 02110-1301, USA. 0018 */ 0019 0020 #include "tool.h" 0021 0022 #include "private/launcher.h" 0023 0024 namespace Valgrind 0025 { 0026 0027 Tool::Tool( 0028 const QString& id, 0029 const QString& name, 0030 const QString& fullName, 0031 const QString& valgrindToolName, 0032 const QString& menuActionName, 0033 bool hasView) 0034 0035 : m_id(id) 0036 , m_name(name) 0037 , m_fullName(fullName) 0038 , m_valgrindToolName(valgrindToolName) 0039 , m_menuActionName(menuActionName) 0040 , m_hasView(hasView) 0041 { 0042 } 0043 0044 QString Tool::name() const 0045 { 0046 return m_name; 0047 } 0048 0049 QString Tool::fullName() const 0050 { 0051 return m_fullName; 0052 } 0053 0054 QString Tool::valgrindToolName() const 0055 { 0056 return m_valgrindToolName; 0057 } 0058 0059 QString Tool::id() const 0060 { 0061 return m_id; 0062 } 0063 0064 QString Tool::menuActionName() const 0065 { 0066 return m_menuActionName; 0067 } 0068 0069 bool Tool::hasView() const 0070 { 0071 return m_hasView; 0072 } 0073 0074 KDevelop::ILauncher* Tool::createLauncher() const 0075 { 0076 return new Launcher(this); 0077 } 0078 0079 }