mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
2f573a117f
* Allow build, if no grabbers are enabled * Align available functions to right Qt version * Update to next development version * Align available functions to right Qt version * fix workflows (apt/nightly) * Disable QNetworkConfigurationManager deprecation warnings * Initial go on Smart Pointers * Add Deallocation * Correct QT_WARNING_DISABLE_DEPRECATED (available since 5.9) * Cluster Build Variables * Hyperion Light * Address build warnings * Hyperion Light - UI * Update Protobuf to latest master * Removed compiler warnings * Added restart ability to systray * Correct Protobuf * Ignore 'no-return' warning on protobuf build * hyperion-remote: Fix auto discovery of hyperion server * Fix Qt version override * Update changelog * Remove Grabber Components, if no Grabber exists * Standalone Grabber - Fix fps default * Remote Control - Have Source Selction accrosswhole screen * Enable Blackborder detection only, if relevant input sources available * Enable Blackborder detection only, if relevant input sources available * Remote UI - rearrange containers * - QT5/6 path for arm64 added - Remove ZLib Dependency - Fix macOS bundle info details - Cleanup Co-authored-by: Paulchen Panther <16664240+Paulchen-Panther@users.noreply.github.com> Co-authored-by: Paulchen Panther <Paulchen-Panter@protonmail.com>
43 lines
711 B
C++
43 lines
711 B
C++
#pragma once
|
|
#include <memory>
|
|
|
|
#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;
|
|
bool isUserAdmin;
|
|
QString qtVersion;
|
|
QString pyVersion;
|
|
};
|
|
|
|
static HyperionSysInfo get();
|
|
|
|
static bool isUserAdmin();
|
|
static QString userName();
|
|
|
|
private:
|
|
SysInfo();
|
|
void getCPUInfo();
|
|
|
|
static std::unique_ptr <SysInfo> _instance;
|
|
|
|
HyperionSysInfo _sysinfo;
|
|
};
|