Warning, file /kdevelop/kdevelop/plugins/custom-definesandincludes/compilerprovider/icompiler.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /* 0002 SPDX-FileCopyrightText: 2014 Sergey Kalinichev <kalinichev.so.0@gmail.com> 0003 0004 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 0005 */ 0006 0007 #include "icompiler.h" 0008 0009 using namespace KDevelop; 0010 0011 ICompiler::ICompiler(const QString& name, const QString& path, const QString& factoryName, bool editable): 0012 m_editable(editable), 0013 m_name(name), 0014 m_path(path), 0015 m_factoryName(factoryName) 0016 {} 0017 0018 void ICompiler::setPath(const QString& path) 0019 { 0020 if (editable()) { 0021 m_path = path; 0022 } 0023 } 0024 0025 QString ICompiler::path() const 0026 { 0027 return m_path; 0028 } 0029 0030 void ICompiler::setName(const QString& name) 0031 { 0032 if (editable()) { 0033 m_name = name; 0034 } 0035 } 0036 0037 QString ICompiler::name() const 0038 { 0039 return m_name; 0040 } 0041 0042 bool ICompiler::editable() const 0043 { 0044 return m_editable; 0045 } 0046 0047 QString ICompiler::factoryName() const 0048 { 0049 return m_factoryName; 0050 }