LeechCraft  0.6.70-13729-g7046a9d2a7
Modular cross-platform feature rich live environment.
LC::Util::SysInfo::OSInfo Struct Reference

Describes the OS running LeechCraft. More...

#include "sysinfo.h"

Public Member Functions

UTIL_SYS_API OSInfo (const QString &arch, const QString &name, const QString &version)
 Constructs the OSInfo object. More...
 
UTIL_SYS_API OSInfo (const QString &arch, const QString &flavour, const QString &name, const QString &version)
 Constructs the OSInfo object. More...
 

Public Attributes

QString Name_
 The name of the OS, including the distribution. More...
 
QString Version_
 The full version of the OS. More...
 
QString Flavour_
 The OS flavour, or name of the OS without any distribution. More...
 
QString Arch_
 Describes the CPU architecture of the OS. More...
 

Detailed Description

Describes the OS running LeechCraft.

Definition at line 49 of file sysinfo.h.

Constructor & Destructor Documentation

◆ OSInfo() [1/2]

LC::Util::SysInfo::OSInfo::OSInfo ( const QString &  arch,
const QString &  name,
const QString &  version 
)

Constructs the OSInfo object.

Sets both the Name_ and the Flavour_ of the OS to name.

Parameters
[in]archInitializer for the Arch_ field.
[in]nameInitializer for the Name_ and Flavour_ fields.
[in]versionInitializer for the Version_ field.

Definition at line 47 of file sysinfo.cpp.

◆ OSInfo() [2/2]

LC::Util::SysInfo::OSInfo::OSInfo ( const QString &  arch,
const QString &  flavour,
const QString &  name,
const QString &  version 
)

Constructs the OSInfo object.

Parameters
[in]archInitializer for the Arch_ field.
[in]flavourInitializer for the Flavour_ field.
[in]nameInitializer for the Name_ field.
[in]versionInitializer for the Version_ field.

Definition at line 52 of file sysinfo.cpp.

Member Data Documentation

◆ Arch_

QString LC::Util::SysInfo::OSInfo::Arch_

Describes the CPU architecture of the OS.

This describes the architecture of the OS, not the machine itself. Thus, a 32-bit Linux running on a 64-bit CPU will still be reported as x86 instead of x86_64.

Definition at line 95 of file sysinfo.h.

◆ Flavour_

QString LC::Util::SysInfo::OSInfo::Flavour_

The OS flavour, or name of the OS without any distribution.

Typical values are:

  • Linux
  • Mac OS X
  • Windows
  • FreeBSD

On non-Linux systems this typically matches the Name_ field.

See also
Name_

Definition at line 87 of file sysinfo.h.

◆ Name_

QString LC::Util::SysInfo::OSInfo::Name_

The name of the OS, including the distribution.

Typical values are:

  • Gentoo/Linux
  • openSUSE 13.1 (Bottle) (x86_64)
  • Mac OS X
  • Windows

On non-Linux systems this field typically matches the Flavour_ field. On Linux it also includes the distribution name and possibly version.

See also
Flavour_

Definition at line 65 of file sysinfo.h.

◆ Version_

QString LC::Util::SysInfo::OSInfo::Version_

The full version of the OS.

This possibly includes the architecture, the OS release and OS-dependent version components like kernel version on Linux.

Definition at line 72 of file sysinfo.h.


The documentation for this struct was generated from the following files: