hyperion.ng/include/utils/SysInfo.h
LordGrey a8492d6586
Additional information on system used (#1045)
* Allow --version, even if hyperion is already running

* Add CPU-Model to SysInfo

* Add additional CPUInfos

* Use fileUtils & RegEx on CPU-Info

* Add CPU - Hardware info

* Update changelog

* Suppress empty CPU info elements
2020-10-20 20:18:51 +02:00

36 lines
557 B
C++

#pragma once
#include <QObject>
#include <QString>
class SysInfo : public QObject
{
public:
struct HyperionSysInfo
{
QString kernelType;
QString kernelVersion;
QString architecture;
QString cpuModelName;
QString cpuModelType;
QString cpuRevision;
QString cpuHardware;
QString wordSize;
QString productType;
QString productVersion;
QString prettyName;
QString hostName;
QString domainName;
};
static HyperionSysInfo get();
private:
SysInfo();
void getCPUInfo();
static SysInfo* _instance;
HyperionSysInfo _sysinfo;
};