File indexing completed on 2024-04-21 04:34:33

0001 /*
0002  * This file is part of KDevelop Krazy2 Plugin.
0003  *
0004  * Copyright 2012 Daniel Calviño Sánchez <danxuliu@gmail.com>
0005  *
0006  * This program is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU General Public License
0008  * as published by the Free Software Foundation; either version 2
0009  * of the 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 License
0017  * along with this program. If not, see <http://www.gnu.org/licenses/>.
0018  */
0019 
0020 #include "issue.h"
0021 
0022 Issue::Issue():
0023     m_line(-1),
0024     m_checker(nullptr) {
0025 }
0026 
0027 QString Issue::message() const {
0028     return m_message;
0029 }
0030 
0031 void Issue::setMessage(const QString& message) {
0032     m_message = message;
0033 }
0034 
0035 QString Issue::fileName() const {
0036     return m_fileName;
0037 }
0038 
0039 void Issue::setFileName(const QString& fileName) {
0040     m_fileName = fileName;
0041 }
0042 
0043 int Issue::line() const {
0044     return m_line;
0045 }
0046 
0047 void Issue::setLine(int line) {
0048     m_line = line;
0049 }
0050 
0051 const Checker* Issue::checker() const {
0052     return m_checker;
0053 }
0054 
0055 void Issue::setChecker(const Checker* checker) {
0056     Q_ASSERT(checker);
0057 
0058     m_checker = checker;
0059 }