Changeset View
Changeset View
Standalone View
Standalone View
Modules/about-distro/src/OSRelease.h
1 | /* | 1 | /* | ||
---|---|---|---|---|---|
2 | Copyright (C) 2014 Harald Sitter <apachelogger@ubuntu.com> | 2 | Copyright (C) 2014-2019 Harald Sitter <sitter@kde.org> | ||
3 | 3 | | |||
4 | This program is free software; you can redistribute it and/or | 4 | This program is free software; you can redistribute it and/or | ||
5 | modify it under the terms of the GNU General Public License as | 5 | modify it under the terms of the GNU General Public License as | ||
6 | published by the Free Software Foundation; either version 2 of | 6 | published by the Free Software Foundation; either version 2 of | ||
7 | the License or (at your option) version 3 or any later version | 7 | the License or (at your option) version 3 or any later version | ||
8 | accepted by the membership of KDE e.V. (or its successor approved | 8 | accepted by the membership of KDE e.V. (or its successor approved | ||
9 | by the membership of KDE e.V.), which shall act as a proxy | 9 | by the membership of KDE e.V.), which shall act as a proxy | ||
10 | defined in Section 14 of version 3 of the license. | 10 | defined in Section 14 of version 3 of the license. | ||
Show All 11 Lines | |||||
22 | #define OSRELEASE_H | 22 | #define OSRELEASE_H | ||
23 | 23 | | |||
24 | #include <QString> | 24 | #include <QString> | ||
25 | #include <QStringList> | 25 | #include <QStringList> | ||
26 | 26 | | |||
27 | class OSRelease | 27 | class OSRelease | ||
28 | { | 28 | { | ||
29 | public: | 29 | public: | ||
30 | OSRelease(); | 30 | OSRelease(const QString &filePath = defaultFilePath()); | ||
31 | | ||||
32 | static QString defaultFilePath(); | ||||
31 | 33 | | |||
32 | QString name; | 34 | QString name; | ||
33 | QString version; | 35 | QString version; | ||
34 | QString id; | 36 | QString id; | ||
35 | QStringList idLike; | 37 | QStringList idLike; | ||
38 | QString versionCodename; | ||||
36 | QString versionId; | 39 | QString versionId; | ||
37 | QString prettyName; | 40 | QString prettyName; | ||
38 | QString ansiColor; | 41 | QString ansiColor; | ||
39 | QString cpeName; | 42 | QString cpeName; | ||
40 | // TODO: url struct or map? | 43 | // TODO: url struct or map? | ||
41 | QString homeUrl; | 44 | QString homeUrl; | ||
45 | QString documentationUrl; | ||||
42 | QString supportUrl; | 46 | QString supportUrl; | ||
43 | QString bugReportUrl; | 47 | QString bugReportUrl; | ||
48 | QString privacyPolicyUrl; | ||||
49 | | ||||
44 | QString buildId; | 50 | QString buildId; | ||
51 | QString variant; | ||||
52 | QString variantId; | ||||
53 | QString logo; | ||||
45 | }; | 54 | }; | ||
46 | 55 | | |||
47 | #endif // OSRELEASE_H | 56 | #endif // OSRELEASE_H |