KOSRelease
#include <kosrelease.h>
Public Member Functions | |
KOSRelease (const QString &filePath=QString()) | |
QString | ansiColor () const |
QString | bugReportUrl () const |
QString | buildId () const |
QString | cpeName () const |
QString | documentationUrl () const |
QStringList | extraKeys () const |
QString | extraValue (const QString &key) const |
QString | homeUrl () const |
QString | id () const |
QStringList | idLike () const |
QString | logo () const |
QString | name () const |
QString | prettyName () const |
QString | privacyPolicyUrl () const |
QString | supportUrl () const |
QString | variant () const |
QString | variantId () const |
QString | version () const |
QString | versionCodename () const |
QString | versionId () const |
Detailed Description
The OSRelease class parses /etc/os-release files.
https://www.freedesktop.org/software/systemd/man/os-release.html
os-release is a free desktop standard for describing an operating system. This class parses and models os-release files.
- Since
- 5.58.0
Definition at line 27 of file kosrelease.h.
Constructor & Destructor Documentation
◆ KOSRelease()
Constructs a new OSRelease instance.
Parsing happens in the constructor and the data is not cached across instances.
- Note
- The format specification makes no assertions about trailing # comments being supported. They result in undefined behavior.
- Parameters
-
filePath The path to the os-release file. By default the first available file of the paths specified in the os-release manpage is parsed.
Definition at line 181 of file kosrelease.cpp.
Member Function Documentation
◆ ansiColor()
QString KOSRelease::ansiColor | ( | ) | const |
Definition at line 223 of file kosrelease.cpp.
◆ bugReportUrl()
QString KOSRelease::bugReportUrl | ( | ) | const |
Definition at line 248 of file kosrelease.cpp.
◆ buildId()
QString KOSRelease::buildId | ( | ) | const |
Definition at line 258 of file kosrelease.cpp.
◆ cpeName()
QString KOSRelease::cpeName | ( | ) | const |
Definition at line 228 of file kosrelease.cpp.
◆ documentationUrl()
QString KOSRelease::documentationUrl | ( | ) | const |
Definition at line 238 of file kosrelease.cpp.
◆ extraKeys()
QStringList KOSRelease::extraKeys | ( | ) | const |
Extra keys are keys that are unknown or specified by a vendor.
Definition at line 278 of file kosrelease.cpp.
◆ extraValue()
Extra values are values assoicated with keys that are unknown.
Definition at line 283 of file kosrelease.cpp.
◆ homeUrl()
QString KOSRelease::homeUrl | ( | ) | const |
Definition at line 233 of file kosrelease.cpp.
◆ id()
QString KOSRelease::id | ( | ) | const |
Definition at line 198 of file kosrelease.cpp.
◆ idLike()
QStringList KOSRelease::idLike | ( | ) | const |
Definition at line 203 of file kosrelease.cpp.
◆ logo()
QString KOSRelease::logo | ( | ) | const |
Definition at line 273 of file kosrelease.cpp.
◆ name()
QString KOSRelease::name | ( | ) | const |
Definition at line 188 of file kosrelease.cpp.
◆ prettyName()
QString KOSRelease::prettyName | ( | ) | const |
Definition at line 218 of file kosrelease.cpp.
◆ privacyPolicyUrl()
QString KOSRelease::privacyPolicyUrl | ( | ) | const |
Definition at line 253 of file kosrelease.cpp.
◆ supportUrl()
QString KOSRelease::supportUrl | ( | ) | const |
Definition at line 243 of file kosrelease.cpp.
◆ variant()
QString KOSRelease::variant | ( | ) | const |
Definition at line 263 of file kosrelease.cpp.
◆ variantId()
QString KOSRelease::variantId | ( | ) | const |
Definition at line 268 of file kosrelease.cpp.
◆ version()
QString KOSRelease::version | ( | ) | const |
Definition at line 193 of file kosrelease.cpp.
◆ versionCodename()
QString KOSRelease::versionCodename | ( | ) | const |
Definition at line 208 of file kosrelease.cpp.
◆ versionId()
QString KOSRelease::versionId | ( | ) | const |
Definition at line 213 of file kosrelease.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:08:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.