|
| 1 | +// This file is part of Heimer. |
| 2 | +// Copyright (C) 2024 Jussi Lind <jussi.lind@iki.fi> |
| 3 | +// |
| 4 | +// Heimer is free software: you can redistribute it and/or modify |
| 5 | +// it under the terms of the GNU General Public License as published by |
| 6 | +// the Free Software Foundation, either version 3 of the License, or |
| 7 | +// (at your option) any later version. |
| 8 | +// Heimer is distributed in the hope that it will be useful, |
| 9 | +// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | +// GNU General Public License for more details. |
| 12 | +// |
| 13 | +// You should have received a copy of the GNU General Public License |
| 14 | +// along with Heimer. If not, see <http://www.gnu.org/licenses/>. |
| 15 | + |
| 16 | +#include "constants.hpp" |
| 17 | + |
| 18 | +namespace Constants::Application { |
| 19 | + |
| 20 | +QString applicationName() |
| 21 | +{ |
| 22 | + return APPLICATION_NAME; |
| 23 | +} |
| 24 | + |
| 25 | +QString applicationPackageType() |
| 26 | +{ |
| 27 | +#ifndef PACKAGE_TYPE |
| 28 | + return QStringLiteral("N/A"); |
| 29 | +#else |
| 30 | + return QStringLiteral(PACKAGE_TYPE); |
| 31 | +#endif |
| 32 | +} |
| 33 | + |
| 34 | +QString applicationVersion() |
| 35 | +{ |
| 36 | + return APPLICATION_VERSION; |
| 37 | +} |
| 38 | + |
| 39 | +IO::AlzFormatVersion alzFormatVersion() |
| 40 | +{ |
| 41 | + return IO::AlzFormatVersion::V2; |
| 42 | +} |
| 43 | + |
| 44 | +QString copyright() |
| 45 | +{ |
| 46 | + return "Copyright (c) 2018-2024 Jussi Lind"; |
| 47 | +} |
| 48 | + |
| 49 | +QString fileExtension() |
| 50 | +{ |
| 51 | + return ".alz"; |
| 52 | +} |
| 53 | + |
| 54 | +QString qsettingsCompanyName() |
| 55 | +{ |
| 56 | + return "Heimer"; |
| 57 | +} |
| 58 | + |
| 59 | +QString webSiteUrl() |
| 60 | +{ |
| 61 | + return "http://juzzlin.github.io/Heimer"; |
| 62 | +} |
| 63 | + |
| 64 | +QString qsettingsSoftwareName() |
| 65 | +{ |
| 66 | + return applicationName(); |
| 67 | +} |
| 68 | + |
| 69 | +QString releasesUrl() |
| 70 | +{ |
| 71 | + return "https://github.com/juzzlin/Heimer/releases"; |
| 72 | +} |
| 73 | + |
| 74 | +QString supportSiteUrl() |
| 75 | +{ |
| 76 | + return "https://paypal.me/juzzlin"; |
| 77 | +} |
| 78 | + |
| 79 | +QString translationsResourceBase() |
| 80 | +{ |
| 81 | + return ":/translations/heimer_"; |
| 82 | +} |
| 83 | + |
| 84 | +} // namespace Constants::Application |
0 commit comments