|
| 1 | +/* |
| 2 | + * Cppcheck - A tool for static C/C++ code analysis |
| 3 | + * Copyright (C) 2007-2011 Daniel Marjamäki and Cppcheck team. |
| 4 | + * |
| 5 | + * This program is free software: you can redistribute it and/or modify |
| 6 | + * it under the terms of the GNU General Public License as published by |
| 7 | + * the Free Software Foundation, either version 3 of the License, or |
| 8 | + * (at your option) any later version. |
| 9 | + * |
| 10 | + * This program is distributed in the hope that it will be useful, |
| 11 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | + * GNU General Public License for more details. |
| 14 | + * |
| 15 | + * You should have received a copy of the GNU General Public License |
| 16 | + * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 17 | + */ |
| 18 | + |
1 | 19 | #ifndef APPLICATION_H |
2 | 20 | #define APPLICATION_H |
3 | 21 |
|
| 22 | +#include <QString> |
| 23 | + |
4 | 24 | /** |
5 | 25 | * @brief A class containing information of the application to execute. |
6 | 26 | * |
7 | 27 | */ |
8 | 28 | class Application |
9 | 29 | { |
10 | 30 | public: |
| 31 | + Application(const QString &name, const QString &path, const QString ¶ms); |
| 32 | + |
| 33 | + /** |
| 34 | + * @brief Get application name. |
| 35 | + * @return Application name. |
| 36 | + */ |
| 37 | + QString getName() const |
| 38 | + { |
| 39 | + return mName; |
| 40 | + } |
| 41 | + |
| 42 | + /** |
| 43 | + * @brief Get application path. |
| 44 | + * @return Application path. |
| 45 | + */ |
| 46 | + QString getPath() const |
| 47 | + { |
| 48 | + return mPath; |
| 49 | + } |
| 50 | + |
| 51 | + /** |
| 52 | + * @brief Get application command line parameters. |
| 53 | + * @return Application command line parameters. |
| 54 | + */ |
| 55 | + QString getParameters() const |
| 56 | + { |
| 57 | + return mParameters; |
| 58 | + } |
| 59 | + |
| 60 | + /** |
| 61 | + * @brief Set application name. |
| 62 | + * @param name Application name. |
| 63 | + */ |
| 64 | + void setName(const QString &name) |
| 65 | + { |
| 66 | + mName = name; |
| 67 | + } |
| 68 | + |
| 69 | + /** |
| 70 | + * @brief Set application path. |
| 71 | + * @param path Application path. |
| 72 | + */ |
| 73 | + void setPath(const QString &path) |
| 74 | + { |
| 75 | + mPath = path; |
| 76 | + } |
| 77 | + |
| 78 | + /** |
| 79 | + * @brief Set application command line parameters. |
| 80 | + * @param parameters Application command line parameters. |
| 81 | + */ |
| 82 | + void setParameters(const QString ¶meters) |
| 83 | + { |
| 84 | + mParameters = parameters; |
| 85 | + } |
| 86 | + |
| 87 | +private: |
| 88 | + |
11 | 89 | /** |
12 | 90 | * @brief Application's name |
13 | | - * |
14 | 91 | */ |
15 | | - QString Name; |
| 92 | + QString mName; |
16 | 93 |
|
17 | 94 | /** |
18 | 95 | * @brief Application's path |
19 | | - * |
20 | 96 | */ |
21 | | - QString Path; |
| 97 | + QString mPath; |
22 | 98 |
|
23 | 99 | /** |
24 | 100 | * @brief Application's parameters |
25 | | - * |
26 | 101 | */ |
27 | | - QString Parameters; |
| 102 | + QString mParameters; |
28 | 103 | }; |
29 | 104 |
|
30 | 105 | #endif // APPLICATION_H |
0 commit comments