| 1 | /**************************************************************************** |
| 2 | ** |
| 3 | ** Copyright (C) 2016 The Qt Company Ltd. |
| 4 | ** Contact: https://www.qt.io/licensing/ |
| 5 | ** |
| 6 | ** This file is part of the test suite of the Qt Toolkit. |
| 7 | ** |
| 8 | ** $QT_BEGIN_LICENSE:GPL-EXCEPT$ |
| 9 | ** Commercial License Usage |
| 10 | ** Licensees holding valid commercial Qt licenses may use this file in |
| 11 | ** accordance with the commercial license agreement provided with the |
| 12 | ** Software or, alternatively, in accordance with the terms contained in |
| 13 | ** a written agreement between you and The Qt Company. For licensing terms |
| 14 | ** and conditions see https://www.qt.io/terms-conditions. For further |
| 15 | ** information use the contact form at https://www.qt.io/contact-us. |
| 16 | ** |
| 17 | ** GNU General Public License Usage |
| 18 | ** Alternatively, this file may be used under the terms of the GNU |
| 19 | ** General Public License version 3 as published by the Free Software |
| 20 | ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT |
| 21 | ** included in the packaging of this file. Please review the following |
| 22 | ** information to ensure the GNU General Public License requirements will |
| 23 | ** be met: https://www.gnu.org/licenses/gpl-3.0.html. |
| 24 | ** |
| 25 | ** $QT_END_LICENSE$ |
| 26 | ** |
| 27 | ****************************************************************************/ |
| 28 | |
| 29 | #ifndef PatternistSDK_ExitCode_H |
| 30 | #define PatternistSDK_ExitCode_H |
| 31 | |
| 32 | #include "Global.h" |
| 33 | |
| 34 | QT_BEGIN_NAMESPACE |
| 35 | |
| 36 | namespace QPatternistSDK |
| 37 | { |
| 38 | /** |
| 39 | * @short Houses program exit codes for PatternistSDK utilities. |
| 40 | * |
| 41 | * @ingroup PatternistSDK |
| 42 | * @author Frans Englich <frans.englich@nokia.com> |
| 43 | */ |
| 44 | class ExitCode |
| 45 | { |
| 46 | public: |
| 47 | /** |
| 48 | * Exit codes for programs part of PatternistSDK. The values for the enums are specified |
| 49 | * to make it easily understandable what number a symbol corresponds to. |
| 50 | */ |
| 51 | enum Code |
| 52 | { |
| 53 | Success = 0, |
| 54 | InvalidArgCount = 1, |
| 55 | InvalidArgs = 2, |
| 56 | |
| 57 | /** |
| 58 | * Used in @c patternistrunsuite |
| 59 | */ |
| 60 | InvalidCatalogFile = 3, |
| 61 | FileNotExists = 4, |
| 62 | OpenError = 5, |
| 63 | WriteError = 6, |
| 64 | |
| 65 | /** |
| 66 | * Used in the test program used for comparing files on the byte level. |
| 67 | */ |
| 68 | NotEqual = 7, |
| 69 | UnevenTestCount = 8, |
| 70 | InternalError = 9, |
| 71 | Regression = 10 |
| 72 | }; |
| 73 | |
| 74 | private: |
| 75 | /** |
| 76 | * This constructor is private and has no implementation, because this |
| 77 | * class is not supposed to be instantiated. |
| 78 | */ |
| 79 | inline ExitCode(); |
| 80 | |
| 81 | Q_DISABLE_COPY(ExitCode) |
| 82 | }; |
| 83 | } |
| 84 | |
| 85 | QT_END_NAMESPACE |
| 86 | |
| 87 | #endif |
| 88 | // vim: et:ts=4:sw=4:sts=4 |
| 89 | |