File indexing completed on 2022-10-04 15:12:36

0001 /* This file is part of KDevelop
0002 
0003    Copyright 2016 Anton Anikin <anton.anikin@htower.ru>
0004 
0005    This program is free software; you can redistribute it and/or
0006    modify it under the terms of the GNU General Public
0007    License as published by the Free Software Foundation; either
0008    version 2 of the License, or (at your option) any later version.
0009 
0010    This program is distributed in the hope that it will be useful,
0011    but WITHOUT ANY WARRANTY; without even the implied warranty of
0012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0013    General Public License for more details.
0014 
0015    You should have received a copy of the GNU General Public License
0016    along with this program; see the file COPYING.  If not, write to
0017    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
0018    Boston, MA 02110-1301, USA.
0019 */
0020 
0021 #ifndef VERAPP_RULES_H
0022 #define VERAPP_RULES_H
0023 
0024 #include <QString>
0025 
0026 namespace verapp
0027 {
0028 
0029 namespace rules
0030 {
0031     enum Type
0032     {
0033         F001,
0034         F002,
0035 
0036         L001,
0037         L002,
0038         L003,
0039         L004,
0040         L005,
0041         L006,
0042 
0043         T001,
0044         T002,
0045         T003,
0046         T004,
0047         T005,
0048         T006,
0049         T007,
0050         T008,
0051         T009,
0052         T010,
0053         T011,
0054         T012,
0055         T013,
0056         T014,
0057         T015,
0058         T016,
0059         T017,
0060         T018,
0061         T019,
0062 
0063         FIRST = F001,
0064         LAST  = T019,
0065         COUNT
0066     };
0067 
0068     QString name(Type type);
0069     Type type(const QString& name);
0070 
0071     QString title(Type type);
0072     QString title(const QString& type);
0073 
0074     QString explanation(Type type);
0075     QString explanation(const QString& type);
0076 
0077     void init();
0078 }
0079 
0080 }
0081 
0082 #endif