Search for usage in LXR

KOSRelease Class Referencefinal

#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.


os-release is a free desktop standard for describing an operating system. This class parses and models os-release files.


Definition at line 27 of file kosrelease.h.

Constructor & Destructor Documentation

KOSRelease::KOSRelease ( const QString filePath = QString())

Constructs a new OSRelease instance.

Parsing happens in the constructor and the data is not cached across instances.

The format specification makes no assertions about trailing # comments being supported. They result in undefined behavior.
filePathThe 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

QString KOSRelease::ansiColor ( ) const
QString KOSRelease::bugReportUrl ( ) const
QString KOSRelease::buildId ( ) const
QString KOSRelease::cpeName ( ) const
QString KOSRelease::documentationUrl ( ) const
QStringList KOSRelease::extraKeys ( ) const

Extra keys are keys that are unknown or specified by a vendor.

Definition at line 278 of file kosrelease.cpp.

QString KOSRelease::extraValue ( const QString key) const

Extra values are values assoicated with keys that are unknown.

Definition at line 283 of file kosrelease.cpp.

QString KOSRelease::homeUrl ( ) const
QString KOSRelease::id ( ) const
QStringList KOSRelease::idLike ( ) const
QString KOSRelease::logo ( ) const
QString KOSRelease::name ( ) const
QString KOSRelease::prettyName ( ) const
QString KOSRelease::privacyPolicyUrl ( ) const
QString KOSRelease::supportUrl ( ) const
QString KOSRelease::variant ( ) const
QString KOSRelease::variantId ( ) const
QString KOSRelease::version ( ) const
QString KOSRelease::versionCodename ( ) const
QString KOSRelease::versionId ( ) const

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Apr 13 2021 23:01:32 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.