KCoreAddons

kosrelease.h
1 /*
2  SPDX-FileCopyrightText: 2014-2019 Harald Sitter <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef KOSRELEASE_H
8 #define KOSRELEASE_H
9 
10 #include <kcoreaddons_export.h>
11 
12 #include <QString>
13 #include <QStringList>
14 
25 class KCOREADDONS_EXPORT KOSRelease Q_DECL_FINAL
26 {
27 public:
39  explicit KOSRelease(const QString &filePath = QString());
40  ~KOSRelease();
41 
43  QString name() const;
45  QString version() const;
47  QString id() const;
49  QStringList idLike() const;
51  QString versionCodename() const;
53  QString versionId() const;
55  QString prettyName() const;
57  QString ansiColor() const;
59  QString cpeName() const;
61  QString homeUrl() const;
63  QString documentationUrl() const;
65  QString supportUrl() const;
67  QString bugReportUrl() const;
69  QString privacyPolicyUrl() const;
71  QString buildId() const;
73  QString variant() const;
75  QString variantId() const;
77  QString logo() const;
78 
82  QStringList extraKeys() const;
83 
85  QString extraValue(const QString &key) const;
86 
87 private:
88  Q_DISABLE_COPY(KOSRelease)
89 
90  class Private;
91  Private *const d = nullptr;
92 };
93 
94 #endif // KOSRELEASE_H
The OSRelease class parses /etc/os-release files.
Definition: kosrelease.h:25
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Jul 8 2020 23:00:38 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.