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 184 of file kosrelease.cpp.
Member Function Documentation
◆ ansiColor()
QString KOSRelease::ansiColor | ( | ) | const |
Definition at line 226 of file kosrelease.cpp.
◆ bugReportUrl()
QString KOSRelease::bugReportUrl | ( | ) | const |
Definition at line 251 of file kosrelease.cpp.
◆ buildId()
QString KOSRelease::buildId | ( | ) | const |
Definition at line 261 of file kosrelease.cpp.
◆ cpeName()
QString KOSRelease::cpeName | ( | ) | const |
Definition at line 231 of file kosrelease.cpp.
◆ documentationUrl()
QString KOSRelease::documentationUrl | ( | ) | const |
Definition at line 241 of file kosrelease.cpp.
◆ extraKeys()
QStringList KOSRelease::extraKeys | ( | ) | const |
Extra keys are keys that are unknown or specified by a vendor.
Definition at line 281 of file kosrelease.cpp.
◆ extraValue()
Extra values are values assoicated with keys that are unknown.
Definition at line 286 of file kosrelease.cpp.
◆ homeUrl()
QString KOSRelease::homeUrl | ( | ) | const |
Definition at line 236 of file kosrelease.cpp.
◆ id()
QString KOSRelease::id | ( | ) | const |
Definition at line 201 of file kosrelease.cpp.
◆ idLike()
QStringList KOSRelease::idLike | ( | ) | const |
Definition at line 206 of file kosrelease.cpp.
◆ logo()
QString KOSRelease::logo | ( | ) | const |
Definition at line 276 of file kosrelease.cpp.
◆ name()
QString KOSRelease::name | ( | ) | const |
Definition at line 191 of file kosrelease.cpp.
◆ prettyName()
QString KOSRelease::prettyName | ( | ) | const |
Definition at line 221 of file kosrelease.cpp.
◆ privacyPolicyUrl()
QString KOSRelease::privacyPolicyUrl | ( | ) | const |
Definition at line 256 of file kosrelease.cpp.
◆ supportUrl()
QString KOSRelease::supportUrl | ( | ) | const |
Definition at line 246 of file kosrelease.cpp.
◆ variant()
QString KOSRelease::variant | ( | ) | const |
Definition at line 266 of file kosrelease.cpp.
◆ variantId()
QString KOSRelease::variantId | ( | ) | const |
Definition at line 271 of file kosrelease.cpp.
◆ version()
QString KOSRelease::version | ( | ) | const |
Definition at line 196 of file kosrelease.cpp.
◆ versionCodename()
QString KOSRelease::versionCodename | ( | ) | const |
Definition at line 211 of file kosrelease.cpp.
◆ versionId()
QString KOSRelease::versionId | ( | ) | const |
Definition at line 216 of file kosrelease.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:52 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.